github.com/Aoi-hosizora/ahlib-more@v1.5.1-0.20230404072844-256112befaf6/xcharset/README.md (about)

     1  # xcharset
     2  
     3  ## Dependencies
     4  
     5  + github.com/Aoi-hosizora/ahlib
     6  + github.com/saintfish/chardet
     7  + golang.org/x/text
     8  
     9  ## Documents
    10  
    11  ### Types
    12  
    13  + `type DetectResult struct`
    14  
    15  ### Variables
    16  
    17  + None
    18  
    19  ### Constants
    20  
    21  + `const IANA_UTF8 string`
    22  + `const IANA_UTF16BE string`
    23  + `const IANA_UTF16LE string`
    24  + `const IANA_UTF32BE string`
    25  + `const IANA_UTF32LE string`
    26  + `const IANA_ISO8859_1 string`
    27  + `const IANA_ISO8859_2 string`
    28  + `const IANA_ISO8859_5 string`
    29  + `const IANA_ISO8859_6 string`
    30  + `const IANA_ISO8859_7 string`
    31  + `const IANA_ISO8859_8 string`
    32  + `const IANA_ISO8859_8I string`
    33  + `const IANA_ISO8859_9 string`
    34  + `const IANA_KOI8R string`
    35  + `const IANA_WINDOWS1251 string`
    36  + `const IANA_WINDOWS1256 string`
    37  + `const IANA_IBM424RTL string`
    38  + `const IANA_IBM424LTR string`
    39  + `const IANA_IBM420RTL string`
    40  + `const IANA_IBM420LTR string`
    41  + `const IANA_SHIFTJIS string`
    42  + `const IANA_GBK string`
    43  + `const IANA_GB18030 string`
    44  + `const IANA_BIG5 string`
    45  + `const IANA_EUCJP string`
    46  + `const IANA_EUCKR string`
    47  + `const IANA_ISO2022JP string`
    48  + `const IANA_ISO2022KR string`
    49  + `const IANA_ISO2022CN string`
    50  
    51  ### Functions
    52  
    53  + `func DetectBestCharset(bs []byte) (*DetectResult, bool)`
    54  + `func DetectAllCharsets(bs []byte) ([]*DetectResult, bool)`
    55  + `func EncodeString(encoding encoding.Encoding, s string) (string, error)`
    56  + `func DecodeString(encoding encoding.Encoding, s string) (string, error)`
    57  + `func EncodeBytes(encoding encoding.Encoding, bs []byte) ([]byte, error)`
    58  + `func DecodeBytes(encoding encoding.Encoding, bs []byte) ([]byte, error)`
    59  + `func GetEncoding(iana string) (encode encoding.Encoding, exist bool)`
    60  
    61  ### Methods
    62  
    63  + None