diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-06-30 23:23:47 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-06-30 23:23:47 +0200 |
commit | 8ff39cbe6300ca479584fe7d85ff03a1f65bc9b0 (patch) | |
tree | c354294dbbeb6c86d5909955762326272664f07b /util/string.ts | |
parent | 722127ef4059020876f708b1d5406c04fd07b0da (diff) |
WIP move more stuff around + more broken examples
Diffstat (limited to 'util/string.ts')
-rw-r--r-- | util/string.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/util/string.ts b/util/string.ts index 16d8f0a..397dcd6 100644 --- a/util/string.ts +++ b/util/string.ts @@ -1,17 +1,12 @@ import { TokenTags, parseTags } from "../language/tags.ts"; -import JapaneseString from "../language/japanese.ts"; declare global { - /** @summary extended String prototype functions */ interface String { /** @summary get UnicodeRange for character at index 0 */ range(): UnicodeRange; /** @summary create a RangeTally object for counting used unicode ranges in string */ rangeTally(): RangeTally; - /** @summary get JapaneseString from this string */ - jp(): JapaneseString; - /** @summary parse concatenated tag string to TokenTags */ parseTags(): TokenTags; @@ -72,10 +67,6 @@ String.prototype.rangeTally = function() { return tally; }; -String.prototype.jp = function() { - return new JapaneseString(this); -} - String.prototype.parseTags = function() { return parseTags(this as string); } |