This commit is contained in:
parent
4d768455bc
commit
8fc51bd1e4
11 changed files with 218 additions and 65 deletions
|
|
@ -11,9 +11,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
MWDECL char* MWAPI MwACPToUTF8(const char* input);
|
||||
MWDECL char* MWAPI MwACPTextToUTF8Text(const char* input);
|
||||
|
||||
MWDECL char* MWAPI MwUTF8ToACP(const char* input);
|
||||
MWDECL char* MWAPI MwUTF8TextToACPText(const char* input);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,22 @@ extern "C" {
|
|||
*/
|
||||
MWDECL int MWAPI MwUTF8ToUTF32(const char* input, int* output);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-8 to UTF-16
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this multibyte takes
|
||||
* @note Output gets NUL terminated
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF8ToUTF16(const char* input, wchar_t* output);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-8 text to UTF-16 text
|
||||
* @brief input Input
|
||||
* @return Output
|
||||
*/
|
||||
MWDECL wchar_t* MWAPI MwUTF8TextToUTF16Text(const char* input);
|
||||
|
||||
/*!
|
||||
* @brief Calculates UTF-8 string length
|
||||
* @brief input Input
|
||||
|
|
@ -38,11 +54,33 @@ MWDECL int MWAPI MwUTF8Length(const char* input);
|
|||
*/
|
||||
MWDECL int MWAPI MwUTF8Copy(const char* src, int srcskip, char* dst, int dstskip, int len);
|
||||
|
||||
/*!
|
||||
* @brief Returns the count current word takes
|
||||
* @brief input Input
|
||||
* @return Count
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF16Count(const wchar_t* input);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-16 to UTF-8
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this multibyte takes
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF16ToUTF8(const wchar_t* input, char* output);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-16 text to UTF-8 text
|
||||
* @brief input Input
|
||||
* @return Output
|
||||
*/
|
||||
MWDECL char* MWAPI MwUTF16TextToUTF8Text(const wchar_t* input);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-32 to UTF-8
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this wide byte takes
|
||||
* @return Bytes this multibyte takes
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF32ToUTF8(int input, char* output);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue