forked from mbuilov/libutf16
-
Notifications
You must be signed in to change notification settings - Fork 0
utf8 <-> utf16 conversion library
License
datrilla/libutf16
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Description. small library for converting utf16 strings to utf8 and back. Author. Copyright (C) 2018-2020 Michael M. Builov, https://github.com/mbuilov/libutf16 License. Apache License v2.0, see LICENSE.TXT. Optional dependencies. "sal_defs.h" from https://github.com/mbuilov/cmn_headers Notes. 1) The library do not performs endianess conversion of utf16-characters, assuming UTF-16LE - on Little-endian platforms and UTF-16BE - on Big-endian platforms. 2) Byte Order Marks (BOM) are not supported. Building. You need any c99 compiler, for example gcc: gcc -g -O2 -I. -c ./src/utf16_to_utf8.c gcc -g -O2 -I. -c ./src/utf8_to_utf16.c gcc -g -O2 -I. -c ./src/utf8_to_utf16_one.c gcc -g -O2 -I. -c ./src/utf16_to_utf8_one.c ar -crs libutf16.a ./utf16_to_utf8.o ./utf8_to_utf16.o ./utf8_to_utf16_one.o ./utf16_to_utf8_one.o or MSVC: cl /O2 /I. /c .\src\utf16_to_utf8.c cl /O2 /I. /c .\src\utf8_to_utf16.c cl /O2 /I. /c .\src\utf8_to_utf16_one.c cl /O2 /I. /c .\src\utf16_to_utf8_one.c lib /out:utf16.a .\utf16_to_utf8.obj .\utf8_to_utf16.obj .\utf8_to_utf16_one.obj .\utf16_to_utf8_one.obj Also, the library can be built with source annotations (restricted pointers, non-null attributes, etc.) gcc: gcc -g -O2 -include ../cmn_headers/sal_defs.h -I. -c ./src/utf16_to_utf8.c gcc -g -O2 -include ../cmn_headers/sal_defs.h -I. -c ./src/utf8_to_utf16.c gcc -g -O2 -include ../cmn_headers/sal_defs.h -I. -c ./src/utf8_to_utf16_one.c gcc -g -O2 -include ../cmn_headers/sal_defs.h -I. -c ./src/utf16_to_utf8_one.c ar -crs libutf16.a ./utf16_to_utf8.o ./utf8_to_utf16.o ./utf8_to_utf16_one.o ./utf16_to_utf8_one.o MSVC: cl /O2 /FI..\cmn_headers\sal_defs.h /I. /c .\src\utf16_to_utf8.c cl /O2 /FI..\cmn_headers\sal_defs.h /I. /c .\src\utf8_to_utf16.c cl /O2 /FI..\cmn_headers\sal_defs.h /I. /c .\src\utf8_to_utf16_one.c cl /O2 /FI..\cmn_headers\sal_defs.h /I. /c .\src\utf16_to_utf8_one.c lib /out:utf16.a .\utf16_to_utf8.obj .\utf8_to_utf16.obj .\utf8_to_utf16_one.obj .\utf16_to_utf8_one.obj
About
utf8 <-> utf16 conversion library
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 100.0%