Merge pull request #2856 from erslavin/unicode_character_classes_doxygen
authorpixar-oss <pixar-oss@users.noreply.github.com>
Fri, 15 Dec 2023 00:35:46 +0000 (16:35 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Fri, 15 Dec 2023 19:21:15 +0000 (11:21 -0800)
Unicode character classes doxygen

(Internal change: 2309007)

1  2 
pxr/base/tf/unicodeCharacterClasses.h

index 15d3f005ea085d2c7c853468e5c105642dba6669,3328ea9a0a3ab578ea4d5596e56b84889acd7e3f..ad476da79af30952180040461e539adfe3f564a8
@@@ -47,14 -47,12 +47,14 @@@ public
  
      TfUnicodeXidStartFlagData();
  
-     /// @brief Determines whether the given code point is contained within
+     /// \brief Determines whether the given code point is contained within
      /// the XID_Start character class.
-     /// @param codePoint The Unicode code point to determine inclusion for.
-     /// @return true if the given codePoint is in the XID_Start character
+     /// \param codePoint The Unicode code point to determine inclusion for.
+     /// \return true if the given codePoint is in the XID_Start character
      /// class, false otherwise.
 -    bool IsXidStartCodePoint(uint32_t codePoint) const;
 +    inline bool IsXidStartCodePoint(uint32_t codePoint) const {
 +        return (codePoint < TF_MAX_CODE_POINT) ? _flags[codePoint] : false;
 +    }
  
  private:
  
@@@ -72,27 -70,25 +72,27 @@@ public
  
      TfUnicodeXidContinueFlagData();
  
-     /// @brief Determines whether the given code point is contained within
+     /// \brief Determines whether the given code point is contained within
      /// the XID_Continue character class.
-     /// @param codePoint The Unicode code point to determine inclusion for.
-     /// @return true if the given codePoint is in the XID_Continue 
+     /// \param codePoint The Unicode code point to determine inclusion for.
+     /// \return true if the given codePoint is in the XID_Continue 
      /// character class false otherwise.
 -    bool IsXidContinueCodePoint(uint32_t codePoint) const;
 +    inline bool IsXidContinueCodePoint(uint32_t codePoint) const {
 +        return (codePoint < TF_MAX_CODE_POINT) ? _flags[codePoint] : false;
 +    }
  
  private:
      
      std::bitset<TF_MAX_CODE_POINT> _flags;
  };
  
- /// @brief Retreives character class data for XID_Start.
- /// @return An object which can be used to interrogate whether a code point
 -/// \brief Retreives character class data for XID_Start.
++/// \brief Retrieves character class data for XID_Start.
+ /// \return An object which can be used to interrogate whether a code point
  /// is contained within the XID_Start character class.
  const TfUnicodeXidStartFlagData& TfUnicodeGetXidStartFlagData();
  
- /// @brief Retreives character class data for XID_Continue.
- /// @return An object which can be used to interrogate whether a code point
 -/// \brief Retreives character class data for XID_Continue.
++/// \brief Retrieves character class data for XID_Continue.
+ /// \return An object which can be used to interrogate whether a code point
  /// is contained within the XID_Continue character class.
  const TfUnicodeXidContinueFlagData& TfUnicodeGetXidContinueFlagData();