Merge pull request #2906 from nvmkuruc/utf8iteratortype
authorpixar-oss <pixar-oss@users.noreply.github.com>
Sat, 3 Feb 2024 03:24:38 +0000 (19:24 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Sat, 3 Feb 2024 03:24:38 +0000 (19:24 -0800)
Change value type of `TfUtf8CodePointIterator` to `TfUtf8CodePoint`

(Internal change: 2313272)

1  2 
pxr/base/tf/unicodeUtils.h

index a1386908999120b5be2bb566e9300181a4e25c5b,80a613f1452c1ceb407bd8c068a05218dcb308ba..ffeca9ba01e7914b66322f8ecdce8dc9f9633251
@@@ -394,7 -402,11 +402,16 @@@ private
  ///
  TF_API
  bool TfIsUtf8CodePointXidStart(uint32_t codePoint);
 +
++/// Determines whether the given Unicode \a codePoint is in the XID_Start
++/// character class.
++/// \overload
++///
+ inline bool TfIsUtf8CodePointXidStart(const TfUtf8CodePoint codePoint)
+ {
+     return TfIsUtf8CodePointXidStart(codePoint.AsUInt32());
+ }
  /// Determines whether the given Unicode \a codePoint is in the XID_Continue
  /// character class.
  ///
  ///
  TF_API
  bool TfIsUtf8CodePointXidContinue(uint32_t codePoint);
 +
++/// Determines whether the given Unicode \a codePoint is in the XID_Continue
++/// character class.
++/// \overload
++///
+ inline bool TfIsUtf8CodePointXidContinue(const TfUtf8CodePoint codePoint)
+ {
+     return TfIsUtf8CodePointXidContinue(codePoint.AsUInt32());
+ }
  PXR_NAMESPACE_CLOSE_SCOPE
  
  #endif // PXR_BASE_TF_UNICODE_UTILS_H_