mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
Dactyloidae Milsko Widget initial commit
This commit is contained in:
parent
2e7355c0ef
commit
91b45c0d14
410 changed files with 204246 additions and 0 deletions
53
widget/milsko/milskosrc/include/Mw/Unicode.h
Normal file
53
widget/milsko/milskosrc/include/Mw/Unicode.h
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/*!
|
||||
* @file Mw/Unicode.h
|
||||
* @brief Handles UTF8 stuff
|
||||
*/
|
||||
#ifndef __MW_UNICODE_H__
|
||||
#define __MW_UNICODE_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-8 to UTF-32
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this multibyte takes
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF8ToUTF32(const char* input, int* output);
|
||||
|
||||
/*!
|
||||
* @brief Calculates UTF-8 string length
|
||||
* @brief input Input
|
||||
* @return Length
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF8Length(const char* input);
|
||||
|
||||
/*!
|
||||
* @brief Copies UTF-8 string to other string
|
||||
* @brief src Source
|
||||
* @brief srcskip Length to be skipped
|
||||
* @brief dst Destination
|
||||
* @brief dstskip Length to be skipped
|
||||
* @brief len Length
|
||||
* @return Copied length in bytes
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF8Copy(const char* src, int srcskip, char* dst, int dstskip, int len);
|
||||
|
||||
/*!
|
||||
* @brief Converts UTF-32 to UTF-8
|
||||
* @brief input Input
|
||||
* @brief output Output
|
||||
* @return Bytes this wide byte takes
|
||||
*/
|
||||
MWDECL int MWAPI MwUTF32ToUTF8(int input, char* output);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue