Questions tagged [icu4c]
25 questions
0
votes
2 answers
Need help to compile and run c++ source file with icu4c
OS: Windows 10
Compiler: g++.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0
Shell: msys2
Describe the bug:
I want to use class UnicodeString in icu4c in my c++ code. I downloaded the icu4c source code and compiled it. I compiled my…

stskyblade
- 19
- 4
0
votes
0 answers
How to build ICU4C 70.1 on HP UX platform?
I want to build ICU4C code for HP UX platform .
ICU4C repo -> https://github.com/unicode-org/icu/tree/release-70-1.
HP-UX version that i am using -
HP-UX B.11.31 U ia64 ,
aCC compiler version that i am using -
HP C/aC++ B3910B A.06.29
I tried…

Ganesh Nimbolkar
- 3
- 2
0
votes
1 answer
How to free an icu::Transliterator?
When I do
UErrorCode status = U_ZERO_ERROR;
icu::Transliterator* myTrans = Transliterator::createInstance("Latin-Greek", UTRANS_FORWARD, status);
myTrans->transliterate(...);
and have no further use for myTrans, AddressSanitizer tells me it's…

Alexey Romanov
- 167,066
- 35
- 309
- 487
0
votes
1 answer
ICU4C austrdup function
I'm trying to run the code demo for ICU4C bellow, and getting
warning: implicit declaration of function 'austrdup'
which subsequently generate an error. I understand that this is due to the missing imported library that contains 'austrdup'…

HwCicilia
- 3
- 1
0
votes
0 answers
How to parse icu::UnicodeString to an Integer or Float in ICU4C C++11?
How should I parse a icu::UnicodeString string to an integer or float number in ICU4C C++11 ?
Is there a mature API, or I must implement my own number parser?

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
1 answer
How to test the length of a new line when using u_fgets in ICU4C ustdio.h?
In ICU4C,
UChar * u_fgets(UChar *s, int32_t n, UFILE *f)
will read one line from f into buffer s, which size is n.
But how can I know this one line's length ?
What will happen if n is not enough for this one line ?

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
1 answer
Why spdlog/pthread include directory is empty via pkg_search_module in CMake on macos?
Environment
OS: macos
package manager: homebrew
build tool: cmake, pkg-config, clang
repository: https://github.com/xedit/xedit
they're all newest version.
CMakeLists.txt
the CMakeLists.txt are:
project(xeditd LANGUAGES CXX VERSION…

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
1 answer
How to link ICU4C in cmake via pkg-config on MacOS?
I work on macbook with newest OS. Installed icu4c library via homebrew. But I cannot link libicuuc correctly. In case of find library, I use
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/icu4c/64.2/lib/pkgconfig
on my ~/.bashrc, but…

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
1 answer
Issue installing icu4c 60 on OS X Lion
I have an older Xserve that use as a development server and up to today brew has worked pretty well for keeping things up to date. I went to upgrade icu4c today though and got the following error.
Last 15 lines from…

Mav2287
- 796
- 2
- 9
- 22
-1
votes
1 answer
dyld[8243]: Symbol not found: (_nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation) while trying php -v. PHP not working in mac intel
My php is not wokring in mac intel. This is what I get when I run php -v
➜ ~ php -v
dyld[8243]: Symbol not found: (_nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation)
Referenced from:…