MantisBT - Open CASCADE
View Issue Details
0031226Open CASCADE[OCCT] OCCT:Foundation Classespublic2019-12-06 12:152019-12-13 07:10
[OCCT] 7.5.0* 
0031226: Foundation Classes - TCollection_AsciiString::IsRealValue() returns true if a string contains a non-real value
The method TCollection_AsciiString::IsRealValue() of the TCollection_AsciiString class returns true if a string contains a non-real value (e.g. "9999a9").
No tags attached.
Issue History
2019-12-06 12:15tizmayloNew Issue
2019-12-06 12:15tizmayloAssigned To => abv
2019-12-13 07:10abvNote Added: 0089486

2019-12-13 07:10   
This is historic implementation of method TCollection_AsciiString::IsRealValue() - it always returned true if the string was started with some characters that can be interpreted as integer or real value. I propose we can document this in the comment to the method, but it is better not to change behavior as it can break some existig code. Perhaps additional Boolean argument can be added indicating the need for a strict check.