dl-common-util 0.0.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/dl-common-util.d.ts +96 -0
- package/dl-common-util.js +1028 -0
- package/dl-common-util.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +4755 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/package.json +10 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
export declare namespace com.d10ng.common {
|
|
3
|
+
function toUnsignedInt(_this_: Int8Array): number;
|
|
4
|
+
function toUnsignedLong(_this_: Int8Array): any/* kotlin.Long */;
|
|
5
|
+
function toBinString(_this_: Int8Array, space?: boolean): string;
|
|
6
|
+
function toHexString(_this_: Int8Array, space?: boolean, uppercase?: boolean): string;
|
|
7
|
+
function indexOf(_this_: Int8Array, bs: Int8Array): number;
|
|
8
|
+
function fillLengthByByteArray(_this_: Int8Array, length: number, filler?: number, isInStart?: boolean, isForced?: boolean): Int8Array;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace com.d10ng.common {
|
|
11
|
+
function toBinStringByByte(_this_: number): string;
|
|
12
|
+
function toHexStringByByte(_this_: number, uppercase?: boolean): string;
|
|
13
|
+
function toUnsignedIntByByte(_this_: number): number;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace com.d10ng.common {
|
|
16
|
+
function toByteArrayByCharArray(_this_: any /*CharArray*/): Int8Array;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace com.d10ng.common {
|
|
19
|
+
function encodeGBK(_this_: string): Int8Array;
|
|
20
|
+
function decodeGBK(_this_: Int8Array): string;
|
|
21
|
+
function encodeUTF8(_this_: string): Int8Array;
|
|
22
|
+
function decodeUTF8(_this_: Int8Array): string;
|
|
23
|
+
function encodeUnicode(_this_: string): Int8Array;
|
|
24
|
+
function encodeUnicodeString(_this_: string, isNeedU: boolean): string;
|
|
25
|
+
function decodeUnicodeByByteArray(_this_: Int8Array): string;
|
|
26
|
+
function decodeUnicode(_this_: string): string;
|
|
27
|
+
function encodeASCII(_this_: string): Int8Array;
|
|
28
|
+
function encodeASCIIString(_this_: string): string;
|
|
29
|
+
function decodeASCII(_this_: string): string;
|
|
30
|
+
function decodeASCIIByByteArray(_this_: Int8Array): string;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace com.d10ng.common {
|
|
33
|
+
abstract class ChecksumType {
|
|
34
|
+
private constructor();
|
|
35
|
+
static get AND(): com.d10ng.common.ChecksumType & {
|
|
36
|
+
get name(): "AND";
|
|
37
|
+
get ordinal(): 0;
|
|
38
|
+
};
|
|
39
|
+
static get OR(): com.d10ng.common.ChecksumType & {
|
|
40
|
+
get name(): "OR";
|
|
41
|
+
get ordinal(): 1;
|
|
42
|
+
};
|
|
43
|
+
static get XOR(): com.d10ng.common.ChecksumType & {
|
|
44
|
+
get name(): "XOR";
|
|
45
|
+
get ordinal(): 2;
|
|
46
|
+
};
|
|
47
|
+
static values(): Array<com.d10ng.common.ChecksumType>;
|
|
48
|
+
static valueOf(value: string): com.d10ng.common.ChecksumType;
|
|
49
|
+
get name(): "AND" | "OR" | "XOR";
|
|
50
|
+
get ordinal(): 0 | 1 | 2;
|
|
51
|
+
}
|
|
52
|
+
function assertChecksum(_this_: Int8Array, type?: com.d10ng.common.ChecksumType): boolean;
|
|
53
|
+
function getChecksum(_this_: Int8Array, type?: com.d10ng.common.ChecksumType, start?: number, end?: number): number;
|
|
54
|
+
function addChecksum(_this_: Int8Array, type?: com.d10ng.common.ChecksumType): Int8Array;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace com.d10ng.common {
|
|
57
|
+
function toStringByDouble(_this_: number, maxDecimalCount: number): string;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace com.d10ng.common {
|
|
60
|
+
function toString(_this_: number, maxDecimalCount: number): string;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace com.d10ng.common {
|
|
63
|
+
function takeHighByte(_this_: number): number;
|
|
64
|
+
function takeLowByte(_this_: number): number;
|
|
65
|
+
function toByteArray(_this_: number): Int8Array;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace com.d10ng.common {
|
|
68
|
+
function toByteArrayByLong(_this_: any/* kotlin.Long */): Int8Array;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace com.d10ng.common {
|
|
71
|
+
function toPinYin(_this_: string, separator?: string): string;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace com.d10ng.common {
|
|
74
|
+
function keepByRegexStr(_this_: string, regStr: string): string;
|
|
75
|
+
function filterByRegexStr(_this_: string, regStr: string): string;
|
|
76
|
+
function isIdCard(_this_: string): boolean;
|
|
77
|
+
function isMobileNumber(_this_: string): boolean;
|
|
78
|
+
function isEmail(_this_: string): boolean;
|
|
79
|
+
function isOnlyChEnNum(_this_: string): boolean;
|
|
80
|
+
function isOnlyEnNum(_this_: string): boolean;
|
|
81
|
+
function isOnlyChinese(_this_: string): boolean;
|
|
82
|
+
function isOnlyLetter(_this_: string): boolean;
|
|
83
|
+
function isOnlyNumber(_this_: string): boolean;
|
|
84
|
+
function isOnlyCode(_this_: string): boolean;
|
|
85
|
+
function isOnlyChSymbol(_this_: string): boolean;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace com.d10ng.common {
|
|
88
|
+
function toByteFromBin(_this_: string): number;
|
|
89
|
+
function toByteArrayFromBin(_this_: string): Int8Array;
|
|
90
|
+
function toByteFromHex(_this_: string): number;
|
|
91
|
+
function toByteArrayFromHex(_this_: string): Int8Array;
|
|
92
|
+
function fillLength(_this_: string, length: number, filler?: any/* kotlin.Char */, isInStart?: boolean, isForced?: boolean): string;
|
|
93
|
+
function getByteLength(_this_: string): number;
|
|
94
|
+
function getFirstUpperCase(_this_: string): string;
|
|
95
|
+
}
|
|
96
|
+
export as namespace dl_common_util;
|