summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts')
-rw-r--r--intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts b/intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts
new file mode 100644
index 0000000000..d0f67acd2d
--- /dev/null
+++ b/intl/icu_capi/js/package/lib/ICU4XWordBreakIteratorUtf16.d.ts
@@ -0,0 +1,33 @@
+import { i32 } from "./diplomat-runtime"
+import { ICU4XSegmenterWordType } from "./ICU4XSegmenterWordType";
+
+/**
+
+ * See the {@link https://docs.rs/icu/latest/icu/segmenter/struct.WordBreakIterator.html Rust documentation for `WordBreakIterator`} for more information.
+ */
+export class ICU4XWordBreakIteratorUtf16 {
+
+ /**
+
+ * Finds the next breakpoint. Returns -1 if at the end of the string or if the index is out of range of a 32-bit signed integer.
+
+ * See the {@link https://docs.rs/icu/latest/icu/segmenter/struct.WordBreakIterator.html#method.next Rust documentation for `next`} for more information.
+ */
+ next(): i32;
+
+ /**
+
+ * Return the status value of break boundary.
+
+ * See the {@link https://docs.rs/icu/latest/icu/segmenter/struct.WordBreakIterator.html#method.word_type Rust documentation for `word_type`} for more information.
+ */
+ word_type(): ICU4XSegmenterWordType;
+
+ /**
+
+ * Return true when break boundary is word-like such as letter/number/CJK
+
+ * See the {@link https://docs.rs/icu/latest/icu/segmenter/struct.WordBreakIterator.html#method.is_word_like Rust documentation for `is_word_like`} for more information.
+ */
+ is_word_like(): boolean;
+}