Questions tagged [icu]

The International Components for Unicode is a set of cross-platform open source C/C++ and Java libraries for Unicode and globalization support. It is developed by the Unicode Consortium. Use this tag when you have a question about using the ICU. Be sure to include the appropriate language tag and the version of ICU that you are using.

The International Components for Unicode supports C/C++ (ICU4C) and Java (ICU4J), and is available under an open source license. See the ICU-TC home page for documentation and licensing details.

It uses .

771 questions
9
votes
4 answers

ICU u_fgetfile incompatible with runtime in release builds for VS2012

I'm trying to pass the handle returned from u_fgetfile into fseek/fread functions. When linking my application with the debug runtime libraries (/MTd /MDd) there is no crash, but if I link against the static versions this simple code…
monoceres
  • 4,722
  • 4
  • 38
  • 63
9
votes
2 answers

How to use ICU4J library

While I am searching in the website about how to to display the RTL text correctly I found this post about the ICU library, in fact I don't have any previous experience on how to use it . and tho almost there is no clear online resources . Any guy…
Adham
  • 63,550
  • 98
  • 229
  • 344
8
votes
1 answer

How to get started with ICU in C

I need to handle unicode strings in C. I have heard that ICU is the appropriate set of libraries to use but I am not having any luck getting started. So my question: Can anyone provide a link to a good beginners tutorial on using unicode strings…
jsj
  • 9,019
  • 17
  • 58
  • 103
8
votes
2 answers

Handling grapheme clusters in Dart

From what I can tell Dart does not have support for grapheme clusters, though there is talk of supporting it: Dart Strings should support Unicode grapheme cluster operations #34 Minimal Unicode grapheme cluster support #49 Until it is implemented,…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
7
votes
1 answer

Compiling ICU using arm-linux-androideabi-4.4.3

I would like to cross-compile ICU static libs for Android using Cygwin. So far, I have been able to configure and make the Cygwin/MSVC and Cygwin versions. I have installed the android-ndk-r7 and can see a version of gcc in the toolchains directory.…
tofutim
  • 22,664
  • 20
  • 87
  • 148
7
votes
0 answers

How to get Eclipse CDT debugger to show contents of unicode strings?

I have a C++ project that uses ICU Unicode strings heavily. Recently, I started using the Eclipse CDT IDE, but I cannot watch the contents of the strings while debugging. The only options are printing them to logs or casting them to…
WeaselFox
  • 7,220
  • 8
  • 44
  • 75
7
votes
4 answers

How to parse kanji numeric characters using ICU?

I'm writing a function using ICU to parse an Unicode string which consists of kanji numeric character(s) and want to return the integer value of the string. "五" => 5 "三十一" => 31 "五千九百七十二" => 5972 I'm setting the locale to Locale::getJapan() and…
Aki
7
votes
3 answers

udata.cpp: undefined reference to `icudt71_dat'

I am getting an odd ICU related linking error in the now project when building on Ubuntu 22.04. /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23 /home/bkey1/vcpkg/installed/x64-linux/debug/lib/libicuuc.a(udata.ao): in…
Benilda Key
  • 2,836
  • 1
  • 22
  • 34
7
votes
1 answer

How to use Locale::acceptFromHttp without a filter list?

locale_accept_from_http is a basic wrapper around ICU's API uloc_acceptLanguageFromHTTP but the PHP/PECL implementation seems fundamentally flawed that it uses the systems entire set of locales instead of taking a list as a parameter? For example…
Steve-o
  • 12,678
  • 2
  • 41
  • 60
7
votes
2 answers

HTML ASCII Case Insensitive ICU Collator

I need to create a Collator which corresponds to https://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive/ i.e. it ignores the case sensitivity of ASCII A-Z and a-z characters when making comparisons. I have attempted this with…
adamretter
  • 3,885
  • 2
  • 23
  • 43
7
votes
4 answers

How to add ICU library to project?

Help me please. I would like to add ICU library to my project. My cmake version is 2.8.12.2. There is CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(test1) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) set(CMAKE_CXX_COMPILER …
Julia
  • 101
  • 1
  • 1
  • 7
7
votes
1 answer

ICU: What does NFD and NFC mean?

I found a snippet which reads Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower(); ...and is supposed to make arbitrary string well fitting into a URL. So, I guess the things between the semicolons are something like…
Adrian Föder
  • 770
  • 1
  • 7
  • 22
7
votes
0 answers

Building ICU with NDK

For last couple of days I've been trying to figure out how to implement ICU library for Android support. I stuck on very begining, trying to compile ICU sources with NDK. I got them from here:…
elhm
  • 145
  • 1
  • 10
7
votes
1 answer

ICU: Transliterate and then remove all non-alphanumeric characters

Can it be done with ICU without falling back to regex? Currently I normalize filenames like this: protected function normalizeFilename($filename) { $transliterator = Transliterator::createFromRules( 'Any-Latin; Latin-ASCII;…
Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
7
votes
3 answers

iPhone app rejection for using ICU (Unicode extensions)

I received the following mail form Apple, considering my application: Thank you for submitting your update to Νομοθεσία to the App Store. During our review of your application we found it is using private APIs, which is in violation of the iPhone…
nickbit
  • 134
  • 1
  • 7
1 2
3
51 52