X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2Ficu%2F__init__.py;fp=collate%2Ficu%2F__init__.py;h=16ef1e6f044e18574f56234bf8557a3b66978d26;hp=0000000000000000000000000000000000000000;hb=c02c5c3c54d35e7d5836adf54aadac1f79906f05;hpb=29f1f7e12a4ca6100b00dc0d32e84f82f530bcb4 diff --git a/collate/icu/__init__.py b/collate/icu/__init__.py new file mode 100644 index 0000000..16ef1e6 --- /dev/null +++ b/collate/icu/__init__.py @@ -0,0 +1,12 @@ +import collate.icu._ucol +import collate._abcollator + +class Collator(collate._abcollator.Collator): + def __init__(self, locale): + self._collator = collate.icu._ucol.Collator(locale) + + def key(self, string): + return self._collator.key(string) + + def cmp(self, string1, string2): + return self._collator.cmp(string1, string2)