icu

Include ICU in Android NDK Project

烈酒焚心 提交于 2019-11-30 22:10:07
I built a library in C++ that I want to include in my Android application using the NDK. However, my library needs to use ICU4C. I have been trying to compile ICU for Android, and I looked at a lot of questions here on SO, but I am still unable to get ICU compiled into .a files for Android. I'm not sure the best way to do this. Has anyone had success with ICU with the NDK? By the way, I was hoping to use ICU 51.2, unless there's a good reason to use an older version. You can build ICU as Android static library by specifying these flags in your Android.mk LOCAL_CFLAGS := -DANDROID -fdata

How to install charlock_holmes dependency libicu-dev on Heroku

馋奶兔 提交于 2019-11-30 20:55:19
I'm using the ruby gem charlock_holmes in a Rails 4 app to detect the character encodings of CSV's that I'm parsing so that CSV.foreach doesn't throw an error. However, when I try to push to heroku (with gem 'charlock_holmes' in the Gemfile) I get the following error: Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /tmp/build_e741f6ed-a860-47bf-8c0d-1b678fa0ebeb/vendor/ruby-2.0.0/bin/ruby extconf.rb checking for main() in -licui18n... no checking for main() in -licui18n... no ************************************************

PHP 5.3 seems to be missing Intl extension by default

主宰稳场 提交于 2019-11-30 18:36:29
My system is Ubuntu 12.04, PHP 5.3, and I'm trying to run some basic Intl code like this: <?php $coll = collator_create('en_US'); $result = collator_compare($coll, "string#1", "string#2"); and it outputs PHP Fatal error: Call to undefined function collator_create() Wasn't Intl extension supposed to be bundled with PHP since version 5.3? PHP was installed via apt-get with this command line (I don't use Apache): apt-get install php5 php5-cli php5-mysql php5-cgi php5-fpm php5-curl php-apc php5-memcache php5-memcached php5-common php5-gd php-xml-parser php-pear php5-imap php5-mcrypt php5-xdebug

Has anyone used ICU with Delphi?

走远了吗. 提交于 2019-11-30 16:12:53
问题 Has anyone used the ICU ( see http://site.icu-project.org/ ) DLLs from Delphi? Specifically I'm interested in the Code Page Conversion and Collation functions. Looking at the header files it would appear that they are mostly in C++ using classes, so without having done much research yet, I would assume that it's necessary to create a simple wrapper around this that exports simple functions which can easily be imported in Delphi. Has anyone done any work for that yet? Or can anyone recommend a

ios app compile sqlite fts with icu,but it cant get the perfect answer when i input a letter like “z”

假装没事ソ 提交于 2019-11-30 16:06:13
问题 In sqlite I: Perform a create virtual MyTable (tokenize =icu ,id text,subject text,abstract text) Then successfully insert info MyTable (id,subject,abstract) values (?,?,?) so I have the row: 今天天气不错fmowomrogmeog,wfomgomrg,我是谁erz When I perform select id from MyTable where MyTable match ‘z*’ it does not return anything,Whenever I search the single letter it returns nothing. However if I search ‘m’ or ‘天气’ or ‘天’,it works. I know sqlite only support prefix, so I am using ICU. Am I making a

Has anyone used ICU with Delphi?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 15:55:29
Has anyone used the ICU ( see http://site.icu-project.org/ ) DLLs from Delphi? Specifically I'm interested in the Code Page Conversion and Collation functions. Looking at the header files it would appear that they are mostly in C++ using classes, so without having done much research yet, I would assume that it's necessary to create a simple wrapper around this that exports simple functions which can easily be imported in Delphi. Has anyone done any work for that yet? Or can anyone recommend a different solution for Delphi that has similar extensive coverage for codepages and collation orders?

unicode support in android ndk

瘦欲@ 提交于 2019-11-30 12:13:56
问题 I have a large C/C++ library that I need to use as part of an Android NDK project. This library needs to be able to intelligently process UTF8 strings (for example, conversion to lowercase/uppercase). The library has conditional compilation to punt to an OS API to do the conversion, but there don't seem to be any Android APIs for UTF8. (mbstowcs, etc) This thread says to use JNI methods to do it (!), which is a rather heavy-weight solution. I was thinking about building ICU, but as it uses

How to get the default currency from the PHP Intl ( ICU library )

╄→гoц情女王★ 提交于 2019-11-30 07:37:44
问题 I use PHP, and like to know how I can get the default currency for a locale via the Internationalization extension (Wrapper for the ICU library)? Below is a script that explains, what and why. I need something to replace the getCurrCode() function with. $accepted_currencies = array('USD','EUR'); $locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); if( ! empty($locale)){ Locale::setDefault($locale); $currency = getCurrCode(); if( ! in_array($currency, $accepted_currencies)){

How to install charlock_holmes dependency libicu-dev on Heroku

时光怂恿深爱的人放手 提交于 2019-11-30 05:24:59
问题 I'm using the ruby gem charlock_holmes in a Rails 4 app to detect the character encodings of CSV's that I'm parsing so that CSV.foreach doesn't throw an error. However, when I try to push to heroku (with gem 'charlock_holmes' in the Gemfile) I get the following error: Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /tmp/build_e741f6ed-a860-47bf-8c0d-1b678fa0ebeb/vendor/ruby-2.0.0/bin/ruby extconf.rb checking for main() in

PHP 5.3 seems to be missing Intl extension by default

女生的网名这么多〃 提交于 2019-11-30 03:22:44
问题 My system is Ubuntu 12.04, PHP 5.3, and I'm trying to run some basic Intl code like this: <?php $coll = collator_create('en_US'); $result = collator_compare($coll, "string#1", "string#2"); and it outputs PHP Fatal error: Call to undefined function collator_create() Wasn't Intl extension supposed to be bundled with PHP since version 5.3? PHP was installed via apt-get with this command line (I don't use Apache): apt-get install php5 php5-cli php5-mysql php5-cgi php5-fpm php5-curl php-apc php5