File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -475,9 +475,18 @@ namespace pcs // i.e. "pythonic c++ strings"
475475
476476
477477 // --- isnumeric() -------------------------------------
478+ /* * \brief Returns true if all characters in the string are numeric characters, and there is at least one character, or false otherwise.
479+ *
480+ * CAUTION: current implementation just returns isdecimal() result,
481+ * while the description of isnumeric() should be this one:
482+ * Numeric characters include digit characters, and all characters
483+ * that have the Unicode numeric value property. Formally, numeric
484+ * characters are those with the property value Numeric_Type=Digit,
485+ * Numeric_Type=Decimal or Numeric_Type=Numeric.
486+ */
478487 inline const bool isnumeric () const noexcept
479488 {
480- return false ;
489+ return isdecimal () ;
481490 }
482491
483492
You can’t perform that action at this time.
0 commit comments