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
0
votes
0 answers

Use UnicodeString in Boost

I have read that ICU library is used as the default backend in boost::locale. If so, Can we use the UnicodeString type of ICU in boost? Can someone please provide an example.. EDIT: This is what I tried at last.. Here instead of storing to wstring,…
Jackzz
  • 1,417
  • 4
  • 24
  • 53
0
votes
1 answer

GCC ICU 57 static linking

I am trying to link ICU 57 to my binary file. That does not work even thought (I think at least) I am linking the static lib files. Here is a blunt example: gcc -static /usr/lib/libicui18n.a /usr/lib/libicuuc.a /usr/lib/libicudata.a…
Mihai H
  • 3,291
  • 4
  • 25
  • 34
0
votes
1 answer

Override JavaScript default locale. [SpiderMonkey]

I'm modding firefox and I'm looking for a way to modify the date.toLocaleString JavaScript method behavior on FireFox. It is a "Chameleon" mod to spoof the return value. I want to add an extra argument if none was passed: e.g var date = new…
Wahib Mkadmi
  • 627
  • 2
  • 9
  • 26
0
votes
1 answer

Printing every character of a UTF8 string

I am new to Unicode/UTF8 representations of strings. I am trying to read a UTF8 encoded file, separate it with spaces and then print every character/code-point in every word (separated by spaces). I was able to use wchar_t (I know it uses utf16 or…
Sriram
  • 10,298
  • 21
  • 83
  • 136
0
votes
1 answer

What is the usage of ICU and Freetype?

I want to convert given English characters to Hindi. For example there is a name like John in English it has to be converted to Hindi जॉन. Can I use Freetype and ICU for that? I want in Linux and C platform.
seereddi sekhar
  • 881
  • 9
  • 20
0
votes
1 answer

How do I deploy the ICU libraries using CMake?

I am trying to build a linux application that uses the ICU. While the ICU library is generally available on most linux distros, I have recently learned it is generally not binary compatible between versions. I think the easiest path forward will be…
KyleL
  • 1,379
  • 2
  • 13
  • 35
0
votes
1 answer

ICU ustdio.h functions: Undefined symbols on Mac OS when building with CMake

I'm making a text-based game, using ICU to process game text from UTF-8-encoded JSON files across the 3 major PC platforms. I'm able to compile and link the game binary with CMake while referencing ICU types such as UChar, UnicodeString, etc. and…
Natman64
  • 93
  • 1
  • 6
0
votes
1 answer

Can I stop my capture group from being overwritten?

I'm trying to capture the first delimiter used within a phone number in order to identify what's used as a numbers internal delimiter and what's used to separate two numbers. Right now I can identify the last delimiter. It appears the capture group…
Declan McKenna
  • 4,321
  • 6
  • 54
  • 72
0
votes
0 answers

ICU compare works incorrectly with iconv encoded strings

I'm trying to compare two Unicode strings using ICU's compare API, where the strings have been converted to UTF16LE via iconv utility. Here's the code for it: #include #include #include #include #include…
Maddy
  • 1,319
  • 3
  • 22
  • 37
0
votes
0 answers

ICU/CLDR | ISO 639 Changes - Monitoring & Maintenance

The International Components for Unicode (ICU) is the underlying library that provides localisation features in various programming languages and environments; I approach this from PHP where the intl extension uses ICU for this purpose. As I…
user1694691
0
votes
0 answers

Building ICU on Mac using libstdc++

I was trying to Build ICU4.0 on MacOSX10.11 using Deployment traget 10.9 for libstdc++. In xcode5.0.2 default link library used to be libstdc++ so runConfigureICU was working fine but in LLVM7.0 Xcode7.2 default C++ standard library is libc++. is…
0
votes
1 answer

Why does my pattern discontinue on non-user line breaks?

I'm trying to parse an ics calendar files description like so For PCRE this works fine but when I try and convert this for iOS/ICU use I get the following result: let descriptionRegex = "(?m)DESCRIPTION:(.*(?:\\n :?.*)*)" Returns: "What is the…
Declan McKenna
  • 4,321
  • 6
  • 54
  • 72
0
votes
2 answers

Elasticsearch: Special characters with ICU plugin

So I used this "tutorial" to start working with special characters in elasticsearch: https://www.elastic.co/guide/en/elasticsearch/guide/current/case-folding.html I installed the elasticsearch-analysis-icu version 2.7.0 for my elasticsearch version…
JTR
  • 23
  • 5
0
votes
1 answer

C++ Converting an UTF-8 string to ICU's StringPiece

First time posting here, so apologies in advance if my Title / formatting / tags are not how they are supposed to be. I am trying to create a function in a c++ windows console application, which will remove diacritics from an std::wstring user…
Peter
  • 3
  • 3
0
votes
0 answers

ICU timezone and dst

How do I convert local time to a specific time zone including dst using ICU in c++? I saw an example but it doesn't take into account dts. is it enough to update the zoneinfo file on the Linux server without updating the ICU library so that ICU…
Shay
  • 633
  • 2
  • 11
  • 27