pantry/projects/github.com/nemtrif/utfcpp/utf8_append.cpp
Andrew e3c1626dfe
github.com/nemtrif/utfcpp (#2316)
* github.com/nemtrif/utfcpp

* hmm... try tea.xyz/gx/make for linux test

* test +gnu.org/gcc: '*'

* LDFLAGS

* -DCMAKE_CXX_FLAGS="-std=c++14"

* LD_LIBRARY_PATH

* -DCMAKE_CXX_FLAGS="-std=c++17"

* gc++ maybe

* without DCMAKE_CXX_COMPILER

* -gnu.org/gcc: '*'

* +tea.xyz/gx/cc: c99

* test deps
2023-07-02 15:42:59 -04:00

6 lines
181 B
C++

#include <utf8.h>
int main() {
unsigned char u[5] = {0, 0, 0, 0, 0};
utf8::append(0x0448, u);
return (u[0] == 0xd1 && u[1] == 0x88 && u[2] == 0 && u[3] == 0 && u[4] == 0) ? 0 : 1;
}