@tiqian/shared 0.0.0-stage → 0.1.0-alpha.10
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/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
- package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
- package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
- package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
- package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
- package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
- package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
- package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
- package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
- package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
- package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
- package/dist/org/tiqian/clreq/GlueSide.js +17 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
- package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
- package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
- package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
- package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
- package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
- package/dist/org/tiqian/core/Cluster.d.ts +13 -0
- package/dist/org/tiqian/core/Cluster.js +24 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
- package/dist/org/tiqian/core/Ic.d.ts +7 -0
- package/dist/org/tiqian/core/Ic.js +17 -0
- package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
- package/dist/org/tiqian/core/IllegalStateException.js +8 -0
- package/dist/org/tiqian/core/IntRange.d.ts +12 -0
- package/dist/org/tiqian/core/IntRange.js +30 -0
- package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
- package/dist/org/tiqian/core/LineEndReason.js +17 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
- package/dist/org/tiqian/core/TextRange.d.ts +11 -0
- package/dist/org/tiqian/core/TextRange.js +40 -0
- package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
- package/dist/org/tiqian/core/TextRangeError.js +2 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
- package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
- package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
- package/dist/org/tiqian/font/FontRole.d.ts +28 -0
- package/dist/org/tiqian/font/FontRole.js +26 -0
- package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
- package/dist/org/tiqian/font/FontRoleContext.js +28 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
- package/dist/org/tiqian/layout/LineOptimization.d.ts +124 -0
- package/dist/org/tiqian/layout/LineOptimization.js +298 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
- package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
- package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
- package/dist/org/tiqian/shared/SnapshotValueStyle.d.ts +11 -0
- package/dist/org/tiqian/shared/SnapshotValueStyle.js +64 -0
- package/dist/org/tiqian/shared/ValueStyleInterner.d.ts +7 -0
- package/dist/org/tiqian/shared/ValueStyleInterner.js +23 -0
- package/dist/org/tiqian/shared/html/CompoundSelector.d.ts +28 -0
- package/dist/org/tiqian/shared/html/CompoundSelector.js +247 -0
- package/dist/org/tiqian/shared/html/DomAttribute.d.ts +5 -0
- package/dist/org/tiqian/shared/html/DomAttribute.js +10 -0
- package/dist/org/tiqian/shared/html/DomNode.d.ts +10 -0
- package/dist/org/tiqian/shared/html/DomNode.js +2 -0
- package/dist/org/tiqian/shared/html/DomParser.d.ts +16 -0
- package/dist/org/tiqian/shared/html/DomParser.js +84 -0
- package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.d.ts +4 -0
- package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.js +2 -0
- package/dist/org/tiqian/shared/html/HtmlError.d.ts +16 -0
- package/dist/org/tiqian/shared/html/HtmlError.js +17 -0
- package/dist/org/tiqian/shared/html/HtmlNameCase.d.ts +3 -0
- package/dist/org/tiqian/shared/html/HtmlNameCase.js +20 -0
- package/dist/org/tiqian/shared/html/HtmlOpeningTag.d.ts +6 -0
- package/dist/org/tiqian/shared/html/HtmlOpeningTag.js +12 -0
- package/dist/org/tiqian/shared/html/HtmlParseException.d.ts +6 -0
- package/dist/org/tiqian/shared/html/HtmlParseException.js +19 -0
- package/dist/org/tiqian/shared/html/HtmlScan.d.ts +16 -0
- package/dist/org/tiqian/shared/html/HtmlScan.js +191 -0
- package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.js +10 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.d.ts +8 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.d.ts +7 -0
- package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/Evidence.d.ts +33 -0
- package/dist/org/tiqian/shared/prepared_dom/Evidence.js +251 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.d.ts +12 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.js +14 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.d.ts +7 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.d.ts +9 -0
- package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.js +8 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/Markup.d.ts +30 -0
- package/dist/org/tiqian/shared/prepared_dom/Markup.js +344 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.d.ts +12 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.d.ts +7 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupNode.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/MarkupNode.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/NumericFeatureContract.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/NumericFeatureContract.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/NumericFeatures.d.ts +8 -0
- package/dist/org/tiqian/shared/prepared_dom/NumericFeatures.js +50 -0
- package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.d.ts +8 -0
- package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.d.ts +10 -0
- package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.d.ts +23 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.js +477 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.d.ts +15 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.d.ts +8 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.d.ts +11 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDom.d.ts +29 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDom.js +191 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.d.ts +15 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.js +25 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.d.ts +11 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.js +93 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.d.ts +16 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.d.ts +19 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.d.ts +26 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.d.ts +13 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.d.ts +6 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.d.ts +23 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.d.ts +19 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.d.ts +32 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.d.ts +10 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.d.ts +16 -0
- package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.js +48 -0
- package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.d.ts +11 -0
- package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.js +21 -0
- package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.d.ts +9 -0
- package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.d.ts +4 -0
- package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.js +2 -0
- package/dist/org/tiqian/shared/prepared_dom/StyleDelta.d.ts +5 -0
- package/dist/org/tiqian/shared/prepared_dom/StyleDelta.js +2 -0
- package/dist/org/tiqian/shared/snapshot/SnapshotSource.d.ts +24 -0
- package/dist/org/tiqian/shared/snapshot/SnapshotSource.js +135 -0
- package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
- package/dist/org/tiqian/test/TestHelpers.js +27 -0
- package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
- package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceField.js +10 -0
- package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
- package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
- package/dist/runtime.d.ts +96 -0
- package/dist/runtime.js +1612 -0
- package/dist/std/FsError.d.ts +48 -0
- package/dist/std/FsError.js +2 -0
- package/dist/std/FsException.d.ts +6 -0
- package/dist/std/FsException.js +45 -0
- package/dist/std/UStringException.d.ts +6 -0
- package/dist/std/UStringException.js +21 -0
- package/dist/std/UStringFault.d.ts +9 -0
- package/dist/std/UStringFault.js +2 -0
- package/package.json +22 -4
- package/README.md +0 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
import { UnicodeNumberData } from "./UnicodeNumberData.js";
|
|
4
|
+
export class UnicodeNumber {
|
|
5
|
+
static contains(codePoint) {
|
|
6
|
+
if (codePoint < 0 || codePoint > 1114111) {
|
|
7
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Not a Unicode scalar value: ${codePoint}` });
|
|
8
|
+
}
|
|
9
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
10
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Surrogate is not a Unicode scalar value: ${codePoint}` });
|
|
11
|
+
}
|
|
12
|
+
return UnicodeNumberData.contains(codePoint);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
const RANGES = new Int32Array([
|
|
3
|
+
0x30, 0x39, 0xb2, 0xb3, 0xb9, 0xb9, 0xbc, 0xbe,
|
|
4
|
+
0x660, 0x669, 0x6f0, 0x6f9, 0x7c0, 0x7c9, 0x966, 0x96f,
|
|
5
|
+
0x9e6, 0x9ef, 0x9f4, 0x9f9, 0xa66, 0xa6f, 0xae6, 0xaef,
|
|
6
|
+
0xb66, 0xb6f, 0xb72, 0xb77, 0xbe6, 0xbf2, 0xc66, 0xc6f,
|
|
7
|
+
0xc78, 0xc7e, 0xce6, 0xcef, 0xd58, 0xd5e, 0xd66, 0xd78,
|
|
8
|
+
0xde6, 0xdef, 0xe50, 0xe59, 0xed0, 0xed9, 0xf20, 0xf33,
|
|
9
|
+
0x1040, 0x1049, 0x1090, 0x1099, 0x1369, 0x137c, 0x16ee, 0x16f0,
|
|
10
|
+
0x17e0, 0x17e9, 0x17f0, 0x17f9, 0x1810, 0x1819, 0x1946, 0x194f,
|
|
11
|
+
0x19d0, 0x19da, 0x1a80, 0x1a89, 0x1a90, 0x1a99, 0x1b50, 0x1b59,
|
|
12
|
+
0x1bb0, 0x1bb9, 0x1c40, 0x1c49, 0x1c50, 0x1c59, 0x2070, 0x2070,
|
|
13
|
+
0x2074, 0x2079, 0x2080, 0x2089, 0x2150, 0x2182, 0x2185, 0x2189,
|
|
14
|
+
0x2460, 0x249b, 0x24ea, 0x24ff, 0x2776, 0x2793, 0x2cfd, 0x2cfd,
|
|
15
|
+
0x3007, 0x3007, 0x3021, 0x3029, 0x3038, 0x303a, 0x3192, 0x3195,
|
|
16
|
+
0x3220, 0x3229, 0x3248, 0x324f, 0x3251, 0x325f, 0x3280, 0x3289,
|
|
17
|
+
0x32b1, 0x32bf, 0xa620, 0xa629, 0xa6e6, 0xa6ef, 0xa830, 0xa835,
|
|
18
|
+
0xa8d0, 0xa8d9, 0xa900, 0xa909, 0xa9d0, 0xa9d9, 0xa9f0, 0xa9f9,
|
|
19
|
+
0xaa50, 0xaa59, 0xabf0, 0xabf9, 0xff10, 0xff19, 0x10107, 0x10133,
|
|
20
|
+
0x10140, 0x10178, 0x1018a, 0x1018b, 0x102e1, 0x102fb, 0x10320, 0x10323,
|
|
21
|
+
0x10341, 0x10341, 0x1034a, 0x1034a, 0x103d1, 0x103d5, 0x104a0, 0x104a9,
|
|
22
|
+
0x10858, 0x1085f, 0x10879, 0x1087f, 0x108a7, 0x108af, 0x108fb, 0x108ff,
|
|
23
|
+
0x10916, 0x1091b, 0x109bc, 0x109bd, 0x109c0, 0x109cf, 0x109d2, 0x109ff,
|
|
24
|
+
0x10a40, 0x10a48, 0x10a7d, 0x10a7e, 0x10a9d, 0x10a9f, 0x10aeb, 0x10aef,
|
|
25
|
+
0x10b58, 0x10b5f, 0x10b78, 0x10b7f, 0x10ba9, 0x10baf, 0x10cfa, 0x10cff,
|
|
26
|
+
0x10d30, 0x10d39, 0x10d40, 0x10d49, 0x10e60, 0x10e7e, 0x10f1d, 0x10f26,
|
|
27
|
+
0x10f51, 0x10f54, 0x10fc5, 0x10fcb, 0x11052, 0x1106f, 0x110f0, 0x110f9,
|
|
28
|
+
0x11136, 0x1113f, 0x111d0, 0x111d9, 0x111e1, 0x111f4, 0x112f0, 0x112f9,
|
|
29
|
+
0x11450, 0x11459, 0x114d0, 0x114d9, 0x11650, 0x11659, 0x116c0, 0x116c9,
|
|
30
|
+
0x116d0, 0x116e3, 0x11730, 0x1173b, 0x118e0, 0x118f2, 0x11950, 0x11959,
|
|
31
|
+
0x11bf0, 0x11bf9, 0x11c50, 0x11c6c, 0x11d50, 0x11d59, 0x11da0, 0x11da9,
|
|
32
|
+
0x11de0, 0x11de9, 0x11f50, 0x11f59, 0x11fc0, 0x11fd4, 0x12400, 0x1246e,
|
|
33
|
+
0x16130, 0x16139, 0x16a60, 0x16a69, 0x16ac0, 0x16ac9, 0x16b50, 0x16b59,
|
|
34
|
+
0x16b5b, 0x16b61, 0x16d70, 0x16d79, 0x16e80, 0x16e96, 0x16ff4, 0x16ff6,
|
|
35
|
+
0x1ccf0, 0x1ccf9, 0x1d2c0, 0x1d2d3, 0x1d2e0, 0x1d2f3, 0x1d360, 0x1d378,
|
|
36
|
+
0x1d7ce, 0x1d7ff, 0x1e140, 0x1e149, 0x1e2f0, 0x1e2f9, 0x1e4f0, 0x1e4f9,
|
|
37
|
+
0x1e5f1, 0x1e5fa, 0x1e8c7, 0x1e8cf, 0x1e950, 0x1e959, 0x1ec71, 0x1ecab,
|
|
38
|
+
0x1ecad, 0x1ecaf, 0x1ecb1, 0x1ecb4, 0x1ed01, 0x1ed2d, 0x1ed2f, 0x1ed3d,
|
|
39
|
+
0x1f100, 0x1f10c, 0x1fbf0, 0x1fbf9
|
|
40
|
+
]);
|
|
41
|
+
export class UnicodeNumberData {
|
|
42
|
+
static contains(codePoint) {
|
|
43
|
+
let low = 0;
|
|
44
|
+
let high = Math.trunc(RANGES.length >> 1) - 1;
|
|
45
|
+
while (low <= high) {
|
|
46
|
+
const middle = low + high >> 1;
|
|
47
|
+
const base = middle * 2;
|
|
48
|
+
const start = RANGES[base];
|
|
49
|
+
const end = RANGES[base + 1];
|
|
50
|
+
if (codePoint < start) {
|
|
51
|
+
high = middle - 1;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
if (codePoint > end) {
|
|
55
|
+
low = middle + 1;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Neutral {
|
|
2
|
+
readonly kind: "Neutral";
|
|
3
|
+
}
|
|
4
|
+
export interface EastAsian {
|
|
5
|
+
readonly kind: "EastAsian";
|
|
6
|
+
}
|
|
7
|
+
export interface Other {
|
|
8
|
+
readonly kind: "Other";
|
|
9
|
+
}
|
|
10
|
+
export type UnicodeScriptEvidence = Neutral | EastAsian | Other;
|
|
11
|
+
export declare const UnicodeScriptEvidence: Readonly<{
|
|
12
|
+
Neutral: Readonly<Neutral>;
|
|
13
|
+
EastAsian: Readonly<EastAsian>;
|
|
14
|
+
Other: Readonly<Other>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function compareUnicodeScriptEvidence(a: UnicodeScriptEvidence, b: UnicodeScriptEvidence): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export const UnicodeScriptEvidence = Object.freeze({
|
|
3
|
+
Neutral: Object.freeze({ kind: "Neutral" }),
|
|
4
|
+
EastAsian: Object.freeze({ kind: "EastAsian" }),
|
|
5
|
+
Other: Object.freeze({ kind: "Other" })
|
|
6
|
+
});
|
|
7
|
+
export function compareUnicodeScriptEvidence(a, b) {
|
|
8
|
+
if (a === b)
|
|
9
|
+
return 0;
|
|
10
|
+
if (a.kind === "Neutral")
|
|
11
|
+
return 0 - (b.kind === "Neutral" ? 0 : 0);
|
|
12
|
+
if (a.kind === "EastAsian")
|
|
13
|
+
return 1 - (b.kind === "EastAsian" ? 1 : 0);
|
|
14
|
+
if (a.kind === "Other")
|
|
15
|
+
return 2 - (b.kind === "Other" ? 2 : 0);
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type UnicodeScriptEvidence } from "./UnicodeScriptEvidence.js";
|
|
2
|
+
export declare class UnicodeScriptEvidenceClassifier {
|
|
3
|
+
static readonly DATA_REVISION: string;
|
|
4
|
+
static readonly DATA_SOURCE: string;
|
|
5
|
+
static readonly DATA_SHA256: string;
|
|
6
|
+
static classify(codePoint: number): UnicodeScriptEvidence;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
import { UnicodeScriptEvidenceData } from "./UnicodeScriptEvidenceData.js";
|
|
4
|
+
export class UnicodeScriptEvidenceClassifier {
|
|
5
|
+
static DATA_REVISION = "17.0.0";
|
|
6
|
+
static DATA_SOURCE = "https://www.unicode.org/Public/17.0.0/ucd/Scripts.txt";
|
|
7
|
+
static DATA_SHA256 = "9f5e50d3abaee7d6ce09480f325c706f485ae3240912527e651954d2d6b035bf";
|
|
8
|
+
static classify(codePoint) {
|
|
9
|
+
if (codePoint < 0 || codePoint > 1114111) {
|
|
10
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Not a Unicode scalar value: ${codePoint}` });
|
|
11
|
+
}
|
|
12
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
13
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Surrogate is not a Unicode scalar value: ${codePoint}` });
|
|
14
|
+
}
|
|
15
|
+
return UnicodeScriptEvidenceData.classify(codePoint);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { UnicodeScriptEvidence } from "./UnicodeScriptEvidence.js";
|
|
3
|
+
const RANGES = new Int32Array([
|
|
4
|
+
0x41, 0x5a, 2, 0x61, 0x7a, 2, 0xaa, 0xaa,
|
|
5
|
+
2, 0xba, 0xba, 2, 0xc0, 0xd6, 2, 0xd8,
|
|
6
|
+
0xf6, 2, 0xf8, 0x2b8, 2, 0x2e0, 0x2e4, 2,
|
|
7
|
+
0x2ea, 0x2eb, 1, 0x370, 0x373, 2, 0x375, 0x377,
|
|
8
|
+
2, 0x37a, 0x37d, 2, 0x37f, 0x37f, 2, 0x384,
|
|
9
|
+
0x384, 2, 0x386, 0x386, 2, 0x388, 0x38a, 2,
|
|
10
|
+
0x38c, 0x38c, 2, 0x38e, 0x3a1, 2, 0x3a3, 0x484,
|
|
11
|
+
2, 0x487, 0x52f, 2, 0x531, 0x556, 2, 0x559,
|
|
12
|
+
0x58a, 2, 0x58d, 0x58f, 2, 0x591, 0x5c7, 2,
|
|
13
|
+
0x5d0, 0x5ea, 2, 0x5ef, 0x5f4, 2, 0x600, 0x604,
|
|
14
|
+
2, 0x606, 0x60b, 2, 0x60d, 0x61a, 2, 0x61c,
|
|
15
|
+
0x61e, 2, 0x620, 0x63f, 2, 0x641, 0x64a, 2,
|
|
16
|
+
0x656, 0x66f, 2, 0x671, 0x6dc, 2, 0x6de, 0x70d,
|
|
17
|
+
2, 0x70f, 0x74a, 2, 0x74d, 0x7b1, 2, 0x7c0,
|
|
18
|
+
0x7fa, 2, 0x7fd, 0x82d, 2, 0x830, 0x83e, 2,
|
|
19
|
+
0x840, 0x85b, 2, 0x85e, 0x85e, 2, 0x860, 0x86a,
|
|
20
|
+
2, 0x870, 0x891, 2, 0x897, 0x8e1, 2, 0x8e3,
|
|
21
|
+
0x950, 2, 0x955, 0x963, 2, 0x966, 0x983, 2,
|
|
22
|
+
0x985, 0x98c, 2, 0x98f, 0x990, 2, 0x993, 0x9a8,
|
|
23
|
+
2, 0x9aa, 0x9b0, 2, 0x9b2, 0x9b2, 2, 0x9b6,
|
|
24
|
+
0x9b9, 2, 0x9bc, 0x9c4, 2, 0x9c7, 0x9c8, 2,
|
|
25
|
+
0x9cb, 0x9ce, 2, 0x9d7, 0x9d7, 2, 0x9dc, 0x9dd,
|
|
26
|
+
2, 0x9df, 0x9e3, 2, 0x9e6, 0x9fe, 2, 0xa01,
|
|
27
|
+
0xa03, 2, 0xa05, 0xa0a, 2, 0xa0f, 0xa10, 2,
|
|
28
|
+
0xa13, 0xa28, 2, 0xa2a, 0xa30, 2, 0xa32, 0xa33,
|
|
29
|
+
2, 0xa35, 0xa36, 2, 0xa38, 0xa39, 2, 0xa3c,
|
|
30
|
+
0xa3c, 2, 0xa3e, 0xa42, 2, 0xa47, 0xa48, 2,
|
|
31
|
+
0xa4b, 0xa4d, 2, 0xa51, 0xa51, 2, 0xa59, 0xa5c,
|
|
32
|
+
2, 0xa5e, 0xa5e, 2, 0xa66, 0xa76, 2, 0xa81,
|
|
33
|
+
0xa83, 2, 0xa85, 0xa8d, 2, 0xa8f, 0xa91, 2,
|
|
34
|
+
0xa93, 0xaa8, 2, 0xaaa, 0xab0, 2, 0xab2, 0xab3,
|
|
35
|
+
2, 0xab5, 0xab9, 2, 0xabc, 0xac5, 2, 0xac7,
|
|
36
|
+
0xac9, 2, 0xacb, 0xacd, 2, 0xad0, 0xad0, 2,
|
|
37
|
+
0xae0, 0xae3, 2, 0xae6, 0xaf1, 2, 0xaf9, 0xaff,
|
|
38
|
+
2, 0xb01, 0xb03, 2, 0xb05, 0xb0c, 2, 0xb0f,
|
|
39
|
+
0xb10, 2, 0xb13, 0xb28, 2, 0xb2a, 0xb30, 2,
|
|
40
|
+
0xb32, 0xb33, 2, 0xb35, 0xb39, 2, 0xb3c, 0xb44,
|
|
41
|
+
2, 0xb47, 0xb48, 2, 0xb4b, 0xb4d, 2, 0xb55,
|
|
42
|
+
0xb57, 2, 0xb5c, 0xb5d, 2, 0xb5f, 0xb63, 2,
|
|
43
|
+
0xb66, 0xb77, 2, 0xb82, 0xb83, 2, 0xb85, 0xb8a,
|
|
44
|
+
2, 0xb8e, 0xb90, 2, 0xb92, 0xb95, 2, 0xb99,
|
|
45
|
+
0xb9a, 2, 0xb9c, 0xb9c, 2, 0xb9e, 0xb9f, 2,
|
|
46
|
+
0xba3, 0xba4, 2, 0xba8, 0xbaa, 2, 0xbae, 0xbb9,
|
|
47
|
+
2, 0xbbe, 0xbc2, 2, 0xbc6, 0xbc8, 2, 0xbca,
|
|
48
|
+
0xbcd, 2, 0xbd0, 0xbd0, 2, 0xbd7, 0xbd7, 2,
|
|
49
|
+
0xbe6, 0xbfa, 2, 0xc00, 0xc0c, 2, 0xc0e, 0xc10,
|
|
50
|
+
2, 0xc12, 0xc28, 2, 0xc2a, 0xc39, 2, 0xc3c,
|
|
51
|
+
0xc44, 2, 0xc46, 0xc48, 2, 0xc4a, 0xc4d, 2,
|
|
52
|
+
0xc55, 0xc56, 2, 0xc58, 0xc5a, 2, 0xc5c, 0xc5d,
|
|
53
|
+
2, 0xc60, 0xc63, 2, 0xc66, 0xc6f, 2, 0xc77,
|
|
54
|
+
0xc8c, 2, 0xc8e, 0xc90, 2, 0xc92, 0xca8, 2,
|
|
55
|
+
0xcaa, 0xcb3, 2, 0xcb5, 0xcb9, 2, 0xcbc, 0xcc4,
|
|
56
|
+
2, 0xcc6, 0xcc8, 2, 0xcca, 0xccd, 2, 0xcd5,
|
|
57
|
+
0xcd6, 2, 0xcdc, 0xcde, 2, 0xce0, 0xce3, 2,
|
|
58
|
+
0xce6, 0xcef, 2, 0xcf1, 0xcf3, 2, 0xd00, 0xd0c,
|
|
59
|
+
2, 0xd0e, 0xd10, 2, 0xd12, 0xd44, 2, 0xd46,
|
|
60
|
+
0xd48, 2, 0xd4a, 0xd4f, 2, 0xd54, 0xd63, 2,
|
|
61
|
+
0xd66, 0xd7f, 2, 0xd81, 0xd83, 2, 0xd85, 0xd96,
|
|
62
|
+
2, 0xd9a, 0xdb1, 2, 0xdb3, 0xdbb, 2, 0xdbd,
|
|
63
|
+
0xdbd, 2, 0xdc0, 0xdc6, 2, 0xdca, 0xdca, 2,
|
|
64
|
+
0xdcf, 0xdd4, 2, 0xdd6, 0xdd6, 2, 0xdd8, 0xddf,
|
|
65
|
+
2, 0xde6, 0xdef, 2, 0xdf2, 0xdf4, 2, 0xe01,
|
|
66
|
+
0xe3a, 2, 0xe40, 0xe5b, 2, 0xe81, 0xe82, 2,
|
|
67
|
+
0xe84, 0xe84, 2, 0xe86, 0xe8a, 2, 0xe8c, 0xea3,
|
|
68
|
+
2, 0xea5, 0xea5, 2, 0xea7, 0xebd, 2, 0xec0,
|
|
69
|
+
0xec4, 2, 0xec6, 0xec6, 2, 0xec8, 0xece, 2,
|
|
70
|
+
0xed0, 0xed9, 2, 0xedc, 0xedf, 2, 0xf00, 0xf47,
|
|
71
|
+
2, 0xf49, 0xf6c, 2, 0xf71, 0xf97, 2, 0xf99,
|
|
72
|
+
0xfbc, 2, 0xfbe, 0xfcc, 2, 0xfce, 0xfd4, 2,
|
|
73
|
+
0xfd9, 0xfda, 2, 0x1000, 0x10c5, 2, 0x10c7, 0x10c7,
|
|
74
|
+
2, 0x10cd, 0x10cd, 2, 0x10d0, 0x10fa, 2, 0x10fc,
|
|
75
|
+
0x10ff, 2, 0x1100, 0x11ff, 1, 0x1200, 0x1248, 2,
|
|
76
|
+
0x124a, 0x124d, 2, 0x1250, 0x1256, 2, 0x1258, 0x1258,
|
|
77
|
+
2, 0x125a, 0x125d, 2, 0x1260, 0x1288, 2, 0x128a,
|
|
78
|
+
0x128d, 2, 0x1290, 0x12b0, 2, 0x12b2, 0x12b5, 2,
|
|
79
|
+
0x12b8, 0x12be, 2, 0x12c0, 0x12c0, 2, 0x12c2, 0x12c5,
|
|
80
|
+
2, 0x12c8, 0x12d6, 2, 0x12d8, 0x1310, 2, 0x1312,
|
|
81
|
+
0x1315, 2, 0x1318, 0x135a, 2, 0x135d, 0x137c, 2,
|
|
82
|
+
0x1380, 0x1399, 2, 0x13a0, 0x13f5, 2, 0x13f8, 0x13fd,
|
|
83
|
+
2, 0x1400, 0x169c, 2, 0x16a0, 0x16ea, 2, 0x16ee,
|
|
84
|
+
0x16f8, 2, 0x1700, 0x1715, 2, 0x171f, 0x1734, 2,
|
|
85
|
+
0x1740, 0x1753, 2, 0x1760, 0x176c, 2, 0x176e, 0x1770,
|
|
86
|
+
2, 0x1772, 0x1773, 2, 0x1780, 0x17dd, 2, 0x17e0,
|
|
87
|
+
0x17e9, 2, 0x17f0, 0x17f9, 2, 0x1800, 0x1801, 2,
|
|
88
|
+
0x1804, 0x1804, 2, 0x1806, 0x1819, 2, 0x1820, 0x1878,
|
|
89
|
+
2, 0x1880, 0x18aa, 2, 0x18b0, 0x18f5, 2, 0x1900,
|
|
90
|
+
0x191e, 2, 0x1920, 0x192b, 2, 0x1930, 0x193b, 2,
|
|
91
|
+
0x1940, 0x1940, 2, 0x1944, 0x196d, 2, 0x1970, 0x1974,
|
|
92
|
+
2, 0x1980, 0x19ab, 2, 0x19b0, 0x19c9, 2, 0x19d0,
|
|
93
|
+
0x19da, 2, 0x19de, 0x1a1b, 2, 0x1a1e, 0x1a5e, 2,
|
|
94
|
+
0x1a60, 0x1a7c, 2, 0x1a7f, 0x1a89, 2, 0x1a90, 0x1a99,
|
|
95
|
+
2, 0x1aa0, 0x1aad, 2, 0x1b00, 0x1b4c, 2, 0x1b4e,
|
|
96
|
+
0x1bf3, 2, 0x1bfc, 0x1c37, 2, 0x1c3b, 0x1c49, 2,
|
|
97
|
+
0x1c4d, 0x1c8a, 2, 0x1c90, 0x1cba, 2, 0x1cbd, 0x1cc7,
|
|
98
|
+
2, 0x1d00, 0x1dbf, 2, 0x1e00, 0x1f15, 2, 0x1f18,
|
|
99
|
+
0x1f1d, 2, 0x1f20, 0x1f45, 2, 0x1f48, 0x1f4d, 2,
|
|
100
|
+
0x1f50, 0x1f57, 2, 0x1f59, 0x1f59, 2, 0x1f5b, 0x1f5b,
|
|
101
|
+
2, 0x1f5d, 0x1f5d, 2, 0x1f5f, 0x1f7d, 2, 0x1f80,
|
|
102
|
+
0x1fb4, 2, 0x1fb6, 0x1fc4, 2, 0x1fc6, 0x1fd3, 2,
|
|
103
|
+
0x1fd6, 0x1fdb, 2, 0x1fdd, 0x1fef, 2, 0x1ff2, 0x1ff4,
|
|
104
|
+
2, 0x1ff6, 0x1ffe, 2, 0x2071, 0x2071, 2, 0x207f,
|
|
105
|
+
0x207f, 2, 0x2090, 0x209c, 2, 0x2126, 0x2126, 2,
|
|
106
|
+
0x212a, 0x212b, 2, 0x2132, 0x2132, 2, 0x214e, 0x214e,
|
|
107
|
+
2, 0x2160, 0x2188, 2, 0x2800, 0x28ff, 2, 0x2c00,
|
|
108
|
+
0x2cf3, 2, 0x2cf9, 0x2d25, 2, 0x2d27, 0x2d27, 2,
|
|
109
|
+
0x2d2d, 0x2d2d, 2, 0x2d30, 0x2d67, 2, 0x2d6f, 0x2d70,
|
|
110
|
+
2, 0x2d7f, 0x2d96, 2, 0x2da0, 0x2da6, 2, 0x2da8,
|
|
111
|
+
0x2dae, 2, 0x2db0, 0x2db6, 2, 0x2db8, 0x2dbe, 2,
|
|
112
|
+
0x2dc0, 0x2dc6, 2, 0x2dc8, 0x2dce, 2, 0x2dd0, 0x2dd6,
|
|
113
|
+
2, 0x2dd8, 0x2dde, 2, 0x2de0, 0x2dff, 2, 0x2e80,
|
|
114
|
+
0x2e99, 1, 0x2e9b, 0x2ef3, 1, 0x2f00, 0x2fd5, 1,
|
|
115
|
+
0x3005, 0x3005, 1, 0x3007, 0x3007, 1, 0x3021, 0x3029,
|
|
116
|
+
1, 0x302e, 0x302f, 1, 0x3038, 0x303b, 1, 0x3041,
|
|
117
|
+
0x3096, 1, 0x309d, 0x309f, 1, 0x30a1, 0x30fa, 1,
|
|
118
|
+
0x30fd, 0x30ff, 1, 0x3105, 0x312f, 1, 0x3131, 0x318e,
|
|
119
|
+
1, 0x31a0, 0x31bf, 1, 0x31f0, 0x321e, 1, 0x3260,
|
|
120
|
+
0x327e, 1, 0x32d0, 0x32fe, 1, 0x3300, 0x3357, 1,
|
|
121
|
+
0x3400, 0x4dbf, 1, 0x4e00, 0x9fff, 1, 0xa000, 0xa48c,
|
|
122
|
+
2, 0xa490, 0xa4c6, 2, 0xa4d0, 0xa62b, 2, 0xa640,
|
|
123
|
+
0xa6f7, 2, 0xa722, 0xa787, 2, 0xa78b, 0xa7dc, 2,
|
|
124
|
+
0xa7f1, 0xa82c, 2, 0xa840, 0xa877, 2, 0xa880, 0xa8c5,
|
|
125
|
+
2, 0xa8ce, 0xa8d9, 2, 0xa8e0, 0xa92d, 2, 0xa92f,
|
|
126
|
+
0xa953, 2, 0xa95f, 0xa95f, 2, 0xa960, 0xa97c, 1,
|
|
127
|
+
0xa980, 0xa9cd, 2, 0xa9d0, 0xa9d9, 2, 0xa9de, 0xa9fe,
|
|
128
|
+
2, 0xaa00, 0xaa36, 2, 0xaa40, 0xaa4d, 2, 0xaa50,
|
|
129
|
+
0xaa59, 2, 0xaa5c, 0xaac2, 2, 0xaadb, 0xaaf6, 2,
|
|
130
|
+
0xab01, 0xab06, 2, 0xab09, 0xab0e, 2, 0xab11, 0xab16,
|
|
131
|
+
2, 0xab20, 0xab26, 2, 0xab28, 0xab2e, 2, 0xab30,
|
|
132
|
+
0xab5a, 2, 0xab5c, 0xab69, 2, 0xab70, 0xabed, 2,
|
|
133
|
+
0xabf0, 0xabf9, 2, 0xac00, 0xd7a3, 1, 0xd7b0, 0xd7c6,
|
|
134
|
+
1, 0xd7cb, 0xd7fb, 1, 0xf900, 0xfa6d, 1, 0xfa70,
|
|
135
|
+
0xfad9, 1, 0xfb00, 0xfb06, 2, 0xfb13, 0xfb17, 2,
|
|
136
|
+
0xfb1d, 0xfb36, 2, 0xfb38, 0xfb3c, 2, 0xfb3e, 0xfb3e,
|
|
137
|
+
2, 0xfb40, 0xfb41, 2, 0xfb43, 0xfb44, 2, 0xfb46,
|
|
138
|
+
0xfd3d, 2, 0xfd40, 0xfdcf, 2, 0xfdf0, 0xfdff, 2,
|
|
139
|
+
0xfe2e, 0xfe2f, 2, 0xfe70, 0xfe74, 2, 0xfe76, 0xfefc,
|
|
140
|
+
2, 0xff21, 0xff3a, 2, 0xff41, 0xff5a, 2, 0xff66,
|
|
141
|
+
0xff6f, 1, 0xff71, 0xff9d, 1, 0xffa0, 0xffbe, 1,
|
|
142
|
+
0xffc2, 0xffc7, 1, 0xffca, 0xffcf, 1, 0xffd2, 0xffd7,
|
|
143
|
+
1, 0xffda, 0xffdc, 1, 0x10000, 0x1000b, 2, 0x1000d,
|
|
144
|
+
0x10026, 2, 0x10028, 0x1003a, 2, 0x1003c, 0x1003d, 2,
|
|
145
|
+
0x1003f, 0x1004d, 2, 0x10050, 0x1005d, 2, 0x10080, 0x100fa,
|
|
146
|
+
2, 0x10140, 0x1018e, 2, 0x101a0, 0x101a0, 2, 0x10280,
|
|
147
|
+
0x1029c, 2, 0x102a0, 0x102d0, 2, 0x10300, 0x10323, 2,
|
|
148
|
+
0x1032d, 0x1034a, 2, 0x10350, 0x1037a, 2, 0x10380, 0x1039d,
|
|
149
|
+
2, 0x1039f, 0x103c3, 2, 0x103c8, 0x103d5, 2, 0x10400,
|
|
150
|
+
0x1049d, 2, 0x104a0, 0x104a9, 2, 0x104b0, 0x104d3, 2,
|
|
151
|
+
0x104d8, 0x104fb, 2, 0x10500, 0x10527, 2, 0x10530, 0x10563,
|
|
152
|
+
2, 0x1056f, 0x1057a, 2, 0x1057c, 0x1058a, 2, 0x1058c,
|
|
153
|
+
0x10592, 2, 0x10594, 0x10595, 2, 0x10597, 0x105a1, 2,
|
|
154
|
+
0x105a3, 0x105b1, 2, 0x105b3, 0x105b9, 2, 0x105bb, 0x105bc,
|
|
155
|
+
2, 0x105c0, 0x105f3, 2, 0x10600, 0x10736, 2, 0x10740,
|
|
156
|
+
0x10755, 2, 0x10760, 0x10767, 2, 0x10780, 0x10785, 2,
|
|
157
|
+
0x10787, 0x107b0, 2, 0x107b2, 0x107ba, 2, 0x10800, 0x10805,
|
|
158
|
+
2, 0x10808, 0x10808, 2, 0x1080a, 0x10835, 2, 0x10837,
|
|
159
|
+
0x10838, 2, 0x1083c, 0x1083c, 2, 0x1083f, 0x10855, 2,
|
|
160
|
+
0x10857, 0x1089e, 2, 0x108a7, 0x108af, 2, 0x108e0, 0x108f2,
|
|
161
|
+
2, 0x108f4, 0x108f5, 2, 0x108fb, 0x1091b, 2, 0x1091f,
|
|
162
|
+
0x10939, 2, 0x1093f, 0x10959, 2, 0x10980, 0x109b7, 2,
|
|
163
|
+
0x109bc, 0x109cf, 2, 0x109d2, 0x10a03, 2, 0x10a05, 0x10a06,
|
|
164
|
+
2, 0x10a0c, 0x10a13, 2, 0x10a15, 0x10a17, 2, 0x10a19,
|
|
165
|
+
0x10a35, 2, 0x10a38, 0x10a3a, 2, 0x10a3f, 0x10a48, 2,
|
|
166
|
+
0x10a50, 0x10a58, 2, 0x10a60, 0x10a9f, 2, 0x10ac0, 0x10ae6,
|
|
167
|
+
2, 0x10aeb, 0x10af6, 2, 0x10b00, 0x10b35, 2, 0x10b39,
|
|
168
|
+
0x10b55, 2, 0x10b58, 0x10b72, 2, 0x10b78, 0x10b91, 2,
|
|
169
|
+
0x10b99, 0x10b9c, 2, 0x10ba9, 0x10baf, 2, 0x10c00, 0x10c48,
|
|
170
|
+
2, 0x10c80, 0x10cb2, 2, 0x10cc0, 0x10cf2, 2, 0x10cfa,
|
|
171
|
+
0x10d27, 2, 0x10d30, 0x10d39, 2, 0x10d40, 0x10d65, 2,
|
|
172
|
+
0x10d69, 0x10d85, 2, 0x10d8e, 0x10d8f, 2, 0x10e60, 0x10e7e,
|
|
173
|
+
2, 0x10e80, 0x10ea9, 2, 0x10eab, 0x10ead, 2, 0x10eb0,
|
|
174
|
+
0x10eb1, 2, 0x10ec2, 0x10ec7, 2, 0x10ed0, 0x10ed8, 2,
|
|
175
|
+
0x10efa, 0x10f27, 2, 0x10f30, 0x10f59, 2, 0x10f70, 0x10f89,
|
|
176
|
+
2, 0x10fb0, 0x10fcb, 2, 0x10fe0, 0x10ff6, 2, 0x11000,
|
|
177
|
+
0x1104d, 2, 0x11052, 0x11075, 2, 0x1107f, 0x110c2, 2,
|
|
178
|
+
0x110cd, 0x110cd, 2, 0x110d0, 0x110e8, 2, 0x110f0, 0x110f9,
|
|
179
|
+
2, 0x11100, 0x11134, 2, 0x11136, 0x11147, 2, 0x11150,
|
|
180
|
+
0x11176, 2, 0x11180, 0x111df, 2, 0x111e1, 0x111f4, 2,
|
|
181
|
+
0x11200, 0x11211, 2, 0x11213, 0x11241, 2, 0x11280, 0x11286,
|
|
182
|
+
2, 0x11288, 0x11288, 2, 0x1128a, 0x1128d, 2, 0x1128f,
|
|
183
|
+
0x1129d, 2, 0x1129f, 0x112a9, 2, 0x112b0, 0x112ea, 2,
|
|
184
|
+
0x112f0, 0x112f9, 2, 0x11300, 0x11303, 2, 0x11305, 0x1130c,
|
|
185
|
+
2, 0x1130f, 0x11310, 2, 0x11313, 0x11328, 2, 0x1132a,
|
|
186
|
+
0x11330, 2, 0x11332, 0x11333, 2, 0x11335, 0x11339, 2,
|
|
187
|
+
0x1133c, 0x11344, 2, 0x11347, 0x11348, 2, 0x1134b, 0x1134d,
|
|
188
|
+
2, 0x11350, 0x11350, 2, 0x11357, 0x11357, 2, 0x1135d,
|
|
189
|
+
0x11363, 2, 0x11366, 0x1136c, 2, 0x11370, 0x11374, 2,
|
|
190
|
+
0x11380, 0x11389, 2, 0x1138b, 0x1138b, 2, 0x1138e, 0x1138e,
|
|
191
|
+
2, 0x11390, 0x113b5, 2, 0x113b7, 0x113c0, 2, 0x113c2,
|
|
192
|
+
0x113c2, 2, 0x113c5, 0x113c5, 2, 0x113c7, 0x113ca, 2,
|
|
193
|
+
0x113cc, 0x113d5, 2, 0x113d7, 0x113d8, 2, 0x113e1, 0x113e2,
|
|
194
|
+
2, 0x11400, 0x1145b, 2, 0x1145d, 0x11461, 2, 0x11480,
|
|
195
|
+
0x114c7, 2, 0x114d0, 0x114d9, 2, 0x11580, 0x115b5, 2,
|
|
196
|
+
0x115b8, 0x115dd, 2, 0x11600, 0x11644, 2, 0x11650, 0x11659,
|
|
197
|
+
2, 0x11660, 0x1166c, 2, 0x11680, 0x116b9, 2, 0x116c0,
|
|
198
|
+
0x116c9, 2, 0x116d0, 0x116e3, 2, 0x11700, 0x1171a, 2,
|
|
199
|
+
0x1171d, 0x1172b, 2, 0x11730, 0x11746, 2, 0x11800, 0x1183b,
|
|
200
|
+
2, 0x118a0, 0x118f2, 2, 0x118ff, 0x11906, 2, 0x11909,
|
|
201
|
+
0x11909, 2, 0x1190c, 0x11913, 2, 0x11915, 0x11916, 2,
|
|
202
|
+
0x11918, 0x11935, 2, 0x11937, 0x11938, 2, 0x1193b, 0x11946,
|
|
203
|
+
2, 0x11950, 0x11959, 2, 0x119a0, 0x119a7, 2, 0x119aa,
|
|
204
|
+
0x119d7, 2, 0x119da, 0x119e4, 2, 0x11a00, 0x11a47, 2,
|
|
205
|
+
0x11a50, 0x11aa2, 2, 0x11ab0, 0x11af8, 2, 0x11b00, 0x11b09,
|
|
206
|
+
2, 0x11b60, 0x11b67, 2, 0x11bc0, 0x11be1, 2, 0x11bf0,
|
|
207
|
+
0x11bf9, 2, 0x11c00, 0x11c08, 2, 0x11c0a, 0x11c36, 2,
|
|
208
|
+
0x11c38, 0x11c45, 2, 0x11c50, 0x11c6c, 2, 0x11c70, 0x11c8f,
|
|
209
|
+
2, 0x11c92, 0x11ca7, 2, 0x11ca9, 0x11cb6, 2, 0x11d00,
|
|
210
|
+
0x11d06, 2, 0x11d08, 0x11d09, 2, 0x11d0b, 0x11d36, 2,
|
|
211
|
+
0x11d3a, 0x11d3a, 2, 0x11d3c, 0x11d3d, 2, 0x11d3f, 0x11d47,
|
|
212
|
+
2, 0x11d50, 0x11d59, 2, 0x11d60, 0x11d65, 2, 0x11d67,
|
|
213
|
+
0x11d68, 2, 0x11d6a, 0x11d8e, 2, 0x11d90, 0x11d91, 2,
|
|
214
|
+
0x11d93, 0x11d98, 2, 0x11da0, 0x11da9, 2, 0x11db0, 0x11ddb,
|
|
215
|
+
2, 0x11de0, 0x11de9, 2, 0x11ee0, 0x11ef8, 2, 0x11f00,
|
|
216
|
+
0x11f10, 2, 0x11f12, 0x11f3a, 2, 0x11f3e, 0x11f5a, 2,
|
|
217
|
+
0x11fb0, 0x11fb0, 2, 0x11fc0, 0x11ff1, 2, 0x11fff, 0x12399,
|
|
218
|
+
2, 0x12400, 0x1246e, 2, 0x12470, 0x12474, 2, 0x12480,
|
|
219
|
+
0x12543, 2, 0x12f90, 0x12ff2, 2, 0x13000, 0x13455, 2,
|
|
220
|
+
0x13460, 0x143fa, 2, 0x14400, 0x14646, 2, 0x16100, 0x16139,
|
|
221
|
+
2, 0x16800, 0x16a38, 2, 0x16a40, 0x16a5e, 2, 0x16a60,
|
|
222
|
+
0x16a69, 2, 0x16a6e, 0x16abe, 2, 0x16ac0, 0x16ac9, 2,
|
|
223
|
+
0x16ad0, 0x16aed, 2, 0x16af0, 0x16af5, 2, 0x16b00, 0x16b45,
|
|
224
|
+
2, 0x16b50, 0x16b59, 2, 0x16b5b, 0x16b61, 2, 0x16b63,
|
|
225
|
+
0x16b77, 2, 0x16b7d, 0x16b8f, 2, 0x16d40, 0x16d79, 2,
|
|
226
|
+
0x16e40, 0x16e9a, 2, 0x16ea0, 0x16eb8, 2, 0x16ebb, 0x16ed3,
|
|
227
|
+
2, 0x16f00, 0x16f4a, 2, 0x16f4f, 0x16f87, 2, 0x16f8f,
|
|
228
|
+
0x16f9f, 2, 0x16fe0, 0x16fe1, 2, 0x16fe2, 0x16fe3, 1,
|
|
229
|
+
0x16fe4, 0x16fe4, 2, 0x16ff0, 0x16ff6, 1, 0x17000, 0x18cd5,
|
|
230
|
+
2, 0x18cff, 0x18d1e, 2, 0x18d80, 0x18df2, 2, 0x1aff0,
|
|
231
|
+
0x1aff3, 1, 0x1aff5, 0x1affb, 1, 0x1affd, 0x1affe, 1,
|
|
232
|
+
0x1b000, 0x1b122, 1, 0x1b132, 0x1b132, 1, 0x1b150, 0x1b152,
|
|
233
|
+
1, 0x1b155, 0x1b155, 1, 0x1b164, 0x1b167, 1, 0x1b170,
|
|
234
|
+
0x1b2fb, 2, 0x1bc00, 0x1bc6a, 2, 0x1bc70, 0x1bc7c, 2,
|
|
235
|
+
0x1bc80, 0x1bc88, 2, 0x1bc90, 0x1bc99, 2, 0x1bc9c, 0x1bc9f,
|
|
236
|
+
2, 0x1d200, 0x1d245, 2, 0x1d800, 0x1da8b, 2, 0x1da9b,
|
|
237
|
+
0x1da9f, 2, 0x1daa1, 0x1daaf, 2, 0x1df00, 0x1df1e, 2,
|
|
238
|
+
0x1df25, 0x1df2a, 2, 0x1e000, 0x1e006, 2, 0x1e008, 0x1e018,
|
|
239
|
+
2, 0x1e01b, 0x1e021, 2, 0x1e023, 0x1e024, 2, 0x1e026,
|
|
240
|
+
0x1e02a, 2, 0x1e030, 0x1e06d, 2, 0x1e08f, 0x1e08f, 2,
|
|
241
|
+
0x1e100, 0x1e12c, 2, 0x1e130, 0x1e13d, 2, 0x1e140, 0x1e149,
|
|
242
|
+
2, 0x1e14e, 0x1e14f, 2, 0x1e290, 0x1e2ae, 2, 0x1e2c0,
|
|
243
|
+
0x1e2f9, 2, 0x1e2ff, 0x1e2ff, 2, 0x1e4d0, 0x1e4f9, 2,
|
|
244
|
+
0x1e5d0, 0x1e5fa, 2, 0x1e5ff, 0x1e5ff, 2, 0x1e6c0, 0x1e6de,
|
|
245
|
+
2, 0x1e6e0, 0x1e6f5, 2, 0x1e6fe, 0x1e6ff, 2, 0x1e7e0,
|
|
246
|
+
0x1e7e6, 2, 0x1e7e8, 0x1e7eb, 2, 0x1e7ed, 0x1e7ee, 2,
|
|
247
|
+
0x1e7f0, 0x1e7fe, 2, 0x1e800, 0x1e8c4, 2, 0x1e8c7, 0x1e8d6,
|
|
248
|
+
2, 0x1e900, 0x1e94b, 2, 0x1e950, 0x1e959, 2, 0x1e95e,
|
|
249
|
+
0x1e95f, 2, 0x1ee00, 0x1ee03, 2, 0x1ee05, 0x1ee1f, 2,
|
|
250
|
+
0x1ee21, 0x1ee22, 2, 0x1ee24, 0x1ee24, 2, 0x1ee27, 0x1ee27,
|
|
251
|
+
2, 0x1ee29, 0x1ee32, 2, 0x1ee34, 0x1ee37, 2, 0x1ee39,
|
|
252
|
+
0x1ee39, 2, 0x1ee3b, 0x1ee3b, 2, 0x1ee42, 0x1ee42, 2,
|
|
253
|
+
0x1ee47, 0x1ee47, 2, 0x1ee49, 0x1ee49, 2, 0x1ee4b, 0x1ee4b,
|
|
254
|
+
2, 0x1ee4d, 0x1ee4f, 2, 0x1ee51, 0x1ee52, 2, 0x1ee54,
|
|
255
|
+
0x1ee54, 2, 0x1ee57, 0x1ee57, 2, 0x1ee59, 0x1ee59, 2,
|
|
256
|
+
0x1ee5b, 0x1ee5b, 2, 0x1ee5d, 0x1ee5d, 2, 0x1ee5f, 0x1ee5f,
|
|
257
|
+
2, 0x1ee61, 0x1ee62, 2, 0x1ee64, 0x1ee64, 2, 0x1ee67,
|
|
258
|
+
0x1ee6a, 2, 0x1ee6c, 0x1ee72, 2, 0x1ee74, 0x1ee77, 2,
|
|
259
|
+
0x1ee79, 0x1ee7c, 2, 0x1ee7e, 0x1ee7e, 2, 0x1ee80, 0x1ee89,
|
|
260
|
+
2, 0x1ee8b, 0x1ee9b, 2, 0x1eea1, 0x1eea3, 2, 0x1eea5,
|
|
261
|
+
0x1eea9, 2, 0x1eeab, 0x1eebb, 2, 0x1eef0, 0x1eef1, 2,
|
|
262
|
+
0x1f200, 0x1f200, 1, 0x20000, 0x2a6df, 1, 0x2a700, 0x2b81d,
|
|
263
|
+
1, 0x2b820, 0x2cead, 1, 0x2ceb0, 0x2ebe0, 1, 0x2ebf0,
|
|
264
|
+
0x2ee5d, 1, 0x2f800, 0x2fa1d, 1, 0x30000, 0x3134a, 1,
|
|
265
|
+
0x31350, 0x33479, 1
|
|
266
|
+
]);
|
|
267
|
+
export class UnicodeScriptEvidenceData {
|
|
268
|
+
static classify(codePoint) {
|
|
269
|
+
let low = 0;
|
|
270
|
+
let high = Math.trunc(RANGES.length / 3) - 1;
|
|
271
|
+
while (low <= high) {
|
|
272
|
+
const middle = low + high >> 1;
|
|
273
|
+
const base = middle * 3;
|
|
274
|
+
const start = RANGES[base];
|
|
275
|
+
const end = RANGES[base + 1];
|
|
276
|
+
if (codePoint < start) {
|
|
277
|
+
high = middle - 1;
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
if (codePoint > end) {
|
|
281
|
+
low = middle + 1;
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
if (RANGES[base + 2] === 1) {
|
|
285
|
+
return UnicodeScriptEvidence.EastAsian;
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
return UnicodeScriptEvidence.Other;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return UnicodeScriptEvidence.Neutral;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
import { UnicodeWordCharacterData } from "./UnicodeWordCharacterData.js";
|
|
4
|
+
export class UnicodeWordCharacter {
|
|
5
|
+
static DATA_REVISION = "17.0.0";
|
|
6
|
+
static DATA_SOURCE = "https://www.unicode.org/Public/17.0.0/ucd/extracted/DerivedGeneralCategory.txt";
|
|
7
|
+
static DATA_SHA256 = "d62e5bab70ca74f099343f71224fa051cb1fdd61a1ab45c0488c44cfc0b6102e";
|
|
8
|
+
static contains(codePoint) {
|
|
9
|
+
if (codePoint < 0 || codePoint > 1114111) {
|
|
10
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Not a Unicode scalar value: ${codePoint}` });
|
|
11
|
+
}
|
|
12
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
13
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: `Surrogate is not a Unicode scalar value: ${codePoint}` });
|
|
14
|
+
}
|
|
15
|
+
return UnicodeWordCharacterData.contains(codePoint);
|
|
16
|
+
}
|
|
17
|
+
}
|