summaryrefslogtreecommitdiff
path: root/mypy_stubs/icu.pyi
blob: f7ac2047ac5144a5aacb44b22a5896584f49869d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from typing import overload

@overload
def Locale() -> str: ...
@overload
def Locale(x: str) -> str: ...

class UCollAttribute:
    NUMERIC_COLLATION: int

class UCollAttributeValue:
    ON: int

class DecimalFormatSymbols:
    kGroupingSeparatorSymbol: int
    kDecimalSeparatorSymbol: int
    def __init__(self, locale: str) -> None: ...
    def getSymbol(self, symbol: int) -> str: ...

class Collator:
    @classmethod
    def createInstance(cls, locale: str) -> Collator: ...
    def getSortKey(self, source: str) -> bytes: ...
    def setAttribute(self, attr: int, value: int) -> None: ...