@lppedd/kotlinx-charset 0.0.4 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,8 +37,8 @@ val encoder = charset.newEncoder()
37
37
  The `ebcdic` module adds support for:
38
38
 
39
39
  ```text
40
- IBM037 IBM939
41
- IBM273 IBM1047
40
+ IBM037 IBM939 IBM1390
41
+ IBM273 IBM1047 IBM1399
42
42
  IBM297 IBM1141
43
43
  IBM930 IBM1147
44
44
  ```
@@ -47,7 +47,7 @@ You can register supported EBCDIC charsets to your `XCharsetRegistrar`
47
47
  via the `provideCharsets` function.
48
48
 
49
49
  ```kotlin
50
- import com.github.lppedd.kotlinx.charset.ebcdic.provideCharsets as provideEbcdicCharsets
50
+ import com.lppedd.kotlinx.charset.ebcdic.provideCharsets as provideEbcdicCharsets
51
51
 
52
52
  // Your shared charset registry
53
53
  private val registrar = XCharsetRegistrar()
@@ -1,14 +1,11 @@
1
1
  type Nullable<T> = T | null | undefined
2
- export declare function getCharset(charsetName: string): XCharset;
3
- export declare function decode(charsetName: string, bytes: Uint8Array): string;
4
- export declare function encode(charsetName: string, value: string): Uint8Array;
5
2
  export declare interface XCharset {
6
3
  readonly name: string;
7
4
  readonly aliases: Array<string>;
8
5
  newDecoder(): XCharsetDecoder;
9
6
  newEncoder(): XCharsetEncoder;
10
7
  readonly __doNotUseOrImplementIt: {
11
- readonly "com.github.lppedd.kotlinx.charset.exported.XCharset": unique symbol;
8
+ readonly "com.lppedd.kotlinx.charset.exported.XCharset": unique symbol;
12
9
  };
13
10
  }
14
11
  export declare interface XCharsetDecoder {
@@ -16,7 +13,7 @@ export declare interface XCharsetDecoder {
16
13
  setReplacement(newReplacement: Nullable<string>): void;
17
14
  reset(): void;
18
15
  readonly __doNotUseOrImplementIt: {
19
- readonly "com.github.lppedd.kotlinx.charset.exported.XCharsetDecoder": unique symbol;
16
+ readonly "com.lppedd.kotlinx.charset.exported.XCharsetDecoder": unique symbol;
20
17
  };
21
18
  }
22
19
  export declare interface XCharsetEncoder {
@@ -24,6 +21,9 @@ export declare interface XCharsetEncoder {
24
21
  setReplacement(newReplacement: Nullable<Uint8Array>): void;
25
22
  reset(): void;
26
23
  readonly __doNotUseOrImplementIt: {
27
- readonly "com.github.lppedd.kotlinx.charset.exported.XCharsetEncoder": unique symbol;
24
+ readonly "com.lppedd.kotlinx.charset.exported.XCharsetEncoder": unique symbol;
28
25
  };
29
- }
26
+ }
27
+ export declare function getCharset(charsetName: string): XCharset;
28
+ export declare function decode(charsetName: string, bytes: Uint8Array): string;
29
+ export declare function encode(charsetName: string, value: string): Uint8Array;