@itwin/core-i18n 5.11.0-dev.8 → 5.12.0-dev.1

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.
@@ -16565,6 +16565,19 @@ __webpack_require__.r(__webpack_exports__);
16565
16565
  */
16566
16566
  var CompressedId64Set;
16567
16567
  (function (CompressedId64Set) {
16568
+ /** Returns `true` if `ids` is a valid [[CompressedId64Set]] — either an empty string
16569
+ * (representing an empty set) or a non-empty string beginning with `'+'`.
16570
+ * Useful as a type guard to distinguish a compressed set from an [[Id64String]] or other
16571
+ * value when the type of a string is not known statically.
16572
+ * @note This is a syntactic prefix check only — it does not validate the encoded content
16573
+ * after `'+'`. A value may pass this guard and still throw during [[CompressedId64Set.iterator]]
16574
+ * (e.g. `'+0'` or `'+garbage'`).
16575
+ * @see [[CompressedId64Set.iterable]] to iterate the Ids represented by a compressed string.
16576
+ */
16577
+ function isValid(ids) {
16578
+ return typeof ids === "string" && (ids.length === 0 || ids[0] === "+");
16579
+ }
16580
+ CompressedId64Set.isValid = isValid;
16568
16581
  function isHexDigit(ch) {
16569
16582
  // ascii values:
16570
16583
  // '0' = 48