Changes in molecuilder/src/helpers.cpp [7b67a3:848729]
- File:
-
- 1 edited
-
molecuilder/src/helpers.cpp (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.cpp
-
Property mode
changed from
100644to100755
r7b67a3 r848729 182 182 }; 183 183 184 /** Tests whether a given string contains a valid number or not. 185 * \param *string 186 * \return true - is a number, false - is not a valid number 187 */ 188 bool IsValidNumber( const char *string) 189 { 190 int ptr = 0; 191 if ((string[ptr] == '.') || (string[ptr] == '-')) // number may be negative or start with dot 192 ptr++; 193 if ((string[ptr] >= '0') && (string[ptr] <= '9')) 194 return true; 195 return false; 196 }; 197 198 -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
