LibreOffice Module hwpfilter (master) 1
hcode.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23
24#include <rtl/ustring.hxx>
25
26#include "hwplib.h"
27
32enum { KSSM, KS, UNICODE };
36DLLEXPORT int hcharconv(hchar ch, hchar *dest, int codeType) ;
37
41DLLEXPORT OUString hstr2OUString(hchar const* hstr);
45DLLEXPORT ::std::string hstr2ksstr(hchar const* hstr);
46
51
55DLLEXPORT ::std::string urltounix(const char *src);
56
60#ifdef _WIN32
61DLLEXPORT ::std::string urltowin(const char *src);
62#endif
63
67DLLEXPORT OUString hcolor2str(uchar color, uchar shade, bool bIsChar = false);
68DLLEXPORT OUString rgb2str(unsigned char red, unsigned char green, unsigned char blue);
69DLLEXPORT OUString rgb2str(int32_t rgb);
70
71DLLEXPORT OUString base64_encode_string( const uchar *buf, unsigned int len );
72DLLEXPORT double calcAngle(double x1, double y1, double x2, double y2);
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@ KS
Definition: hcode.h:32
@ UNICODE
Definition: hcode.h:32
@ KSSM
Definition: hcode.h:32
DLLEXPORT OUString hcolor2str(uchar color, uchar shade, bool bIsChar=false)
hwp의 경로를 windows형태로 바꾼다.
Definition: hcode.cxx:1241
DLLEXPORT int kssm_hangul_to_ucs2(hchar ch, hchar *dest)
Definition: hcode.cxx:1069
DLLEXPORT OUString hstr2OUString(hchar const *hstr)
Definition: hcode.cxx:1171
DLLEXPORT::std::string urltounix(const char *src)
hwp의 경로를 unix형태로 바꾼다.
Definition: hcode.cxx:1307
DLLEXPORT hchar ksc5601_han_to_ucs2(hchar)
Definition: hcode.cxx:1158
DLLEXPORT double calcAngle(double x1, double y1, double x2, double y2)
Definition: hcode.cxx:1402
DLLEXPORT hchar_string kstr2hstr(uchar const *src)
한글을 포함할 수 있는 char형스트링을 한컴스트링으로 변환한다.
Definition: hcode.cxx:1217
DLLEXPORT OUString rgb2str(unsigned char red, unsigned char green, unsigned char blue)
Definition: hcode.cxx:1296
DLLEXPORT int hcharconv(hchar ch, hchar *dest, int codeType)
Transfer combination-code for internal using of hwp to ascii.
Definition: hcode.cxx:898
DLLEXPORT::std::string hstr2ksstr(hchar const *hstr)
한컴스트링을 완성형스트링으로 변환한다.
Definition: hcode.cxx:1186
DLLEXPORT OUString base64_encode_string(const uchar *buf, unsigned int len)
Definition: hcode.cxx:1395
DLLEXPORT hchar ksc5601_sym_to_ucs2(hchar)
Definition: hcode.cxx:1146
::std::basic_string< hchar > hchar_string
Definition: hwplib.h:44
char16_t hchar
size of hunit is 4 since hwp96 version
Definition: hwplib.h:36
unsigned char uchar
Definition: hwplib.h:40
#define DLLEXPORT
Definition: hwplib.h:201