From 80a602f3f82114270bfd781148977dec4f8da569 Mon Sep 17 00:00:00 2001 From: Lukasz Pik Date: Tue, 26 Sep 2017 11:40:05 +0200 Subject: [PATCH] [ACR-889] Update ucollator guides PS2: Reviewed Change-Id: I0c7edd00fa201e0077d9c058c0927a5d6a361890 Signed-off-by: Lukasz Pik --- .../html/native/internationalization/i18n_n.htm | 120 ++++++++++++++++++++- 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/org.tizen.guides/html/native/internationalization/i18n_n.htm b/org.tizen.guides/html/native/internationalization/i18n_n.htm index fbb777f..b31c644 100644 --- a/org.tizen.guides/html/native/internationalization/i18n_n.htm +++ b/org.tizen.guides/html/native/internationalization/i18n_n.htm @@ -603,6 +603,11 @@ i18n_ucollator_create(I18N_ULOCALE_US, &coll);
 i18n_ucollator_set_strength(coll, I18N_UCOLLATOR_DEFAULT_STRENGTH);
+
+

Since Tizen 4.0, you can also retrieve the current Ucollator strength using the i18n_ucollator_get_strength() function:

+
+i18n_ucollator_strength_e strength;
+i18n_ucollator_get_strength(coll, &strength);
 
  • Compare 2 Ustrings.

    To compare 2 Ustrings, you have 2 options:

    @@ -617,11 +622,124 @@ i18n_ucollator_equal(coll, s1, -1, s2, -1, &equal); i18n_ucollator_result_e result; i18n_ucollator_str_collator(coll, s1, -1, s2, -1, &result); + +

    Since Tizen 4.0, you can use the i18n_ucollator_greater_or_equal() function to check whether the first string is greater or equal to the second string:

    +
    +i18n_ubool result;
    +i18n_ucollator_greater_or_equal(coll, s1, -1, s2, -1, &result);
     
  • When no longer needed, destroy the Ucollator using the i18n_ucollator_destroy() function:
     i18n_ucollator_destroy(coll);
    -
  • + + + +

    Since Tizen 4.0, you can also:

    +

    Converting Strings to Ustrings

    To convert strings to Ustrings:

    -- 2.7.4