|
24 | 24 | /** @const */
|
25 | 25 | var Intl = {};
|
26 | 26 |
|
| 27 | +/** |
| 28 | + * @record |
| 29 | + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters |
| 30 | + */ |
| 31 | +Intl.SegmenterOptions = function() {}; |
| 32 | + |
| 33 | +/** |
| 34 | + * @type {string|undefined} |
| 35 | + */ |
| 36 | +Intl.SegmenterOptions.prototype.localeMatcher; |
| 37 | + |
| 38 | +/** |
| 39 | + * @type {string|undefined} |
| 40 | + */ |
| 41 | +Intl.SegmenterOptions.prototype.granularity; |
| 42 | + |
| 43 | +/** |
| 44 | + * @record |
| 45 | + */ |
| 46 | +Intl.ResolvedSegmenterOptions = function() {}; |
| 47 | + |
| 48 | +/** |
| 49 | + * @type {string} |
| 50 | + */ |
| 51 | +Intl.ResolvedSegmenterOptions.prototype.locale; |
| 52 | + |
| 53 | +/** |
| 54 | + * @type {string} |
| 55 | + */ |
| 56 | +Intl.ResolvedSegmenterOptions.prototype.granularity; |
| 57 | + |
| 58 | +/** |
| 59 | + * @record |
| 60 | + * @template T |
| 61 | + */ |
| 62 | +Intl.SegmentIterator = function() {}; |
| 63 | + |
| 64 | +/** |
| 65 | + * @return {!Intl.SegmentIterator<T>} |
| 66 | + */ |
| 67 | +Intl.SegmentIterator.prototype[Symbol.iterator] = function() {}; |
| 68 | + |
| 69 | +/** |
| 70 | + * @record |
| 71 | + */ |
| 72 | +Intl.Segments = function() {}; |
| 73 | + |
| 74 | +/** |
| 75 | + * @param {number=} codeUnitIndex |
| 76 | + * @return {!Intl.SegmentData} |
| 77 | + */ |
| 78 | +Intl.Segments.prototype.containing = function(codeUnitIndex) {}; |
| 79 | + |
| 80 | +/** |
| 81 | + * @return {!Intl.SegmentIterator<!Intl.SegmentData>} |
| 82 | + */ |
| 83 | +Intl.Segments.prototype[Symbol.iterator] = function() {}; |
| 84 | + |
| 85 | +/** |
| 86 | + * @record |
| 87 | + */ |
| 88 | +Intl.SegmentData = function() {}; |
| 89 | + |
| 90 | +/** |
| 91 | + * @type {string} |
| 92 | + */ |
| 93 | +Intl.SegmentData.prototype.segment; |
| 94 | + |
| 95 | +/** |
| 96 | + * @type {number} |
| 97 | + */ |
| 98 | +Intl.SegmentData.prototype.index; |
| 99 | + |
| 100 | +/** |
| 101 | + * @type {string} |
| 102 | + */ |
| 103 | +Intl.SegmentData.prototype.input; |
| 104 | + |
| 105 | +/** |
| 106 | + * @type {boolean|undefined} |
| 107 | + */ |
| 108 | +Intl.SegmentData.prototype.isWordLike; |
| 109 | + |
| 110 | +/** |
| 111 | + * @constructor |
| 112 | + * @param {string|!Array<string>=} locales |
| 113 | + * @param {!Intl.SegmenterOptions=} options |
| 114 | + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter. |
| 115 | + */ |
| 116 | +Intl.Segmenter = function(locales, options) {}; |
| 117 | + |
| 118 | +/** |
| 119 | + * @param {string} input |
| 120 | + * @return {!Intl.Segments} |
| 121 | + */ |
| 122 | +Intl.Segmenter.prototype.segment = function(input) {}; |
| 123 | + |
| 124 | +/** |
| 125 | + * @return {!Intl.ResolvedSegmenterOptions} |
| 126 | + */ |
| 127 | +Intl.Segmenter.prototype.resolvedOptions = function() {}; |
| 128 | + |
| 129 | +/** |
| 130 | + * @param {string|!Array<string>} locales |
| 131 | + * @param {!Intl.SegmenterOptions=} options |
| 132 | + * @return {Array<string>} |
| 133 | + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf |
| 134 | + */ |
| 135 | +Intl.Segmenter.supportedLocalesOf = function(locales, options) {}; |
| 136 | + |
27 | 137 | /**
|
28 | 138 | * @param {string} key
|
29 | 139 | * @return {Array<string>}
|
|
0 commit comments