-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collation (locale-sensitive sorting) is one of a few high-value features which lean on *a lot* of the ICU functionality and CLDR-supplied data in a way that can not easily be replicated by other solutions. This commit adds a basic collation API, which covers only the main use cases of collation. Fixes: 85
- Loading branch information
Showing
14 changed files
with
425 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ cd $TOP_DIR | |
|
||
C_API_HEADER_NAMES=( | ||
"ucal" | ||
"ucol" | ||
"udat" | ||
"udata" | ||
"uenum" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
ucol_cloneBinary | ||
ucol_close | ||
ucol_countAvailable | ||
ucol_equal | ||
ucol_getAttribute | ||
ucol_getAvailable | ||
ucol_getBound | ||
ucol_getContractions | ||
ucol_getContractionsAndExpansions | ||
ucol_getDisplayName | ||
ucol_getEquivalentReorderCodes | ||
ucol_getFunctionalEquivalent | ||
ucol_getKeywords | ||
ucol_getKeywordValues | ||
ucol_getKeywordValuesForLocale | ||
ucol_getLocale | ||
ucol_getLocaleByType | ||
ucol_getMaxVariable | ||
ucol_getReorderCodes | ||
ucol_getRules | ||
ucol_getRulesEx | ||
ucol_getShortDefinitionString | ||
ucol_getSortKey | ||
ucol_getStrength | ||
ucol_getTailoredSet | ||
ucol_getUCAVersion | ||
ucol_getUnsafeSet | ||
ucol_getVariableTop | ||
ucol_getVersion | ||
ucol_greater | ||
ucol_greaterOrEqual | ||
ucol_mergeSortkeys | ||
ucol_nextSortKeyPart | ||
ucol_normalizeShortDefinitionString | ||
ucol_open | ||
ucol_openAvailableLocales | ||
ucol_openBinary | ||
ucol_openFromShortString | ||
ucol_openRules | ||
ucol_prepareShortStringOpen | ||
ucol_restoreVariableTop | ||
ucol_safeClone | ||
ucol_setAttribute | ||
ucol_setMaxVariable | ||
ucol_setReorderCodes | ||
ucol_setStrength | ||
ucol_setVariableTop | ||
ucol_strcoll | ||
ucol_strcollIter | ||
ucol_strcollUTF8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ucol_close | ||
ucol_strcoll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[package] | ||
authors = ["Google Inc."] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
name = "rust_icu_ucol" | ||
readme = "README.md" | ||
repository = "https://github.com/google/rust_icu" | ||
version = "0.1.4" | ||
default-features = false | ||
keywords = ["icu", "unicode", "i18n", "l10n"] | ||
|
||
description = """ | ||
Native bindings to the ICU4C library from Unicode. | ||
- ucol.h: Collation support | ||
""" | ||
|
||
[dependencies] | ||
log = "0.4.6" | ||
paste = "0.1.5" | ||
rust_icu_common = { path = "../rust_icu_common", version = "0.1.4", default-features = false } | ||
rust_icu_sys = { path = "../rust_icu_sys", version = "0.1.4", default-features = false } | ||
rust_icu_uenum = { path = "../rust_icu_uenum", version = "0.1.4", default-features = false } | ||
rust_icu_ustring = { path = "../rust_icu_ustring", version = "0.1.4", default-features = false } | ||
anyhow = "1.0.25" | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0.25" | ||
|
||
# See the feature description in ../rust_icu_sys/Cargo.toml for details. | ||
[features] | ||
default = ["use-bindgen", "renaming", "icu_config"] | ||
|
||
use-bindgen = [ | ||
"rust_icu_common/use-bindgen", | ||
"rust_icu_sys/use-bindgen", | ||
"rust_icu_uenum/use-bindgen", | ||
"rust_icu_ustring/use-bindgen", | ||
] | ||
renaming = [ | ||
"rust_icu_common/renaming", | ||
"rust_icu_sys/renaming", | ||
"rust_icu_uenum/renaming", | ||
"rust_icu_ustring/renaming", | ||
] | ||
icu_config = [ | ||
"rust_icu_common/icu_config", | ||
"rust_icu_sys/icu_config", | ||
"rust_icu_uenum/icu_config", | ||
"rust_icu_ustring/icu_config", | ||
] | ||
icu_version_in_env = [ | ||
"rust_icu_common/icu_version_in_env", | ||
"rust_icu_sys/icu_version_in_env", | ||
"rust_icu_uenum/icu_version_in_env", | ||
"rust_icu_ustring/icu_version_in_env", | ||
] | ||
icu_version_64_plus = [] | ||
icu_version_67_plus = [] | ||
|
||
[build-dependencies] | ||
anyhow = "1.0" | ||
bindgen = "0.53.2" | ||
|
||
[badges] | ||
maintenance = { status = "actively-developed" } | ||
is-it-maintained-issue-resolution = { repository = "google/rust_icu" } | ||
is-it-maintained-open-issues = { repository = "google/rust_icu" } | ||
travis-ci = { repository = "google/rust_icu", branch = "master" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
Oops, something went wrong.