lib-utils-ts
Version:
<img src="https://img.shields.io/npm/v/lib-utils-ts"/> <img src="https://img.shields.io/snyk/vulnerabilities/npm/lib-utils-ts"/> <img src="https://img.shields.io/npm/l/lib-utils-ts"/> <img src="https://img.shields.io/github/languages/top/devGnode/lib-util
52 lines (49 loc) • 2.24 kB
text/typescript
import {Enum} from "../../Enum";
import {IllegalArgumentException} from "../../Exception";
/***
* @writer maroder
* @version 1.0-R-JSTrip
*/
export class UNICODE extends Enum{
.args() static readonly BASE_LATIN:UNICODE;
.args() static readonly LATIN_2:UNICODE;
.args() static readonly LATIN_EXT_A:UNICODE;
.args() static readonly LATIN_EXT_B:UNICODE;
.args() static readonly LATIN_EXT:UNICODE;
.args() static readonly __:UNICODE;
.args() static readonly DIACRITICS:UNICODE;
.args() static readonly GREEK:UNICODE;
.args() static readonly CYRILLIC:UNICODE;
.args() static readonly CYRILLIC_EXT:UNICODE;
.args() static readonly ARMENIAN:UNICODE;
.args() static readonly YIDDISH:UNICODE;
.args() static readonly ARABIC:UNICODE;
.args() static readonly SYRIAN:UNICODE;
.args() static readonly ARABIC_EXT:UNICODE;
.args() static readonly TANA:UNICODE;
.args() static readonly NKO:UNICODE;
.args() static readonly SAMARITAN:UNICODE;
.args() static readonly MANDEAN:UNICODE;
.args() static readonly SYRIAN_EXT:UNICODE;
.args() static readonly ARABIC_EXT_A:UNICODE;
.args() static readonly DEVANAGARI:UNICODE;
.args() static readonly BENGALI:UNICODE;
.args() static readonly GOURMUKHI:UNICODE;
.args() static readonly GUJARATI:UNICODE;
.args() static readonly ORIYA:UNICODE;
.args() static readonly TAMIL:UNICODE;
.args() static readonly TELUGU:UNICODE;
.args() static readonly KANNARA:UNICODE;
.args() static readonly MALAYALAM:UNICODE;
.args() static readonly SINHALESE:UNICODE;
.args() static readonly THAI:UNICODE;
.args() static readonly LAO:UNICODE;
.args() static readonly TIBETAN:UNICODE;
public static getUnicodeByOrdinal(code:number):UNICODE{
let unicode:UNICODE[] = UNICODE.class<UNICODE>().getEnumConstants();
if(unicode[code]==null) throw new IllegalArgumentException();
return unicode[code];
}
public toString(): string {return "Encoding UTF-8 "+super.toString();}
}
Object.package(this);