Changeset 96162 in vbox
- Timestamp:
- Aug 12, 2022 11:28:29 AM (2 years ago)
- Location:
- trunk/src/VBox/Runtime/common/string
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/atoi.cpp
r96059 r96162 41 41 #if INT_MAX == INT32_MAX 42 42 int32_t iValue = 0; 43 int rc = RTStrToInt32Ex( psz, NULL, 10, &iValue);43 int rc = RTStrToInt32Ex(RTStrStripL(psz), NULL, 10, &iValue); 44 44 #else 45 45 # error "Unsupported integer size" -
trunk/src/VBox/Runtime/common/string/nocrt-strtod.cpp
r96159 r96162 41 41 { 42 42 double rd = 0.0; 43 int rc = RTStrToDoubleEx( psz, ppszNext, 0, &rd);43 int rc = RTStrToDoubleEx(RTStrStripL(psz), ppszNext, 0, &rd); 44 44 if (rc != VINF_SUCCESS) 45 45 errno = RTErrConvertToErrno(rc); -
trunk/src/VBox/Runtime/common/string/nocrt-strtol.cpp
r96059 r96162 42 42 #if LONG_BIT == 64 43 43 int64_t iValue = 0; 44 int rc = RTStrToInt64Ex( psz, ppszNext, (unsigned)iBase, &iValue);44 int rc = RTStrToInt64Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &iValue); 45 45 #elif LONG_BIT == 32 46 46 int32_t iValue = 0; 47 int rc = RTStrToInt32Ex( psz, ppszNext, (unsigned)iBase, &iValue);47 int rc = RTStrToInt32Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &iValue); 48 48 #else 49 49 # error "Unsupported LONG_BIT value" -
trunk/src/VBox/Runtime/common/string/nocrt-strtoll.cpp
r96059 r96162 42 42 #if LLONG_BIT == 64 43 43 int64_t iValue = 0; 44 int rc = RTStrToInt64Ex( psz, ppszNext, (unsigned)iBase, &iValue);44 int rc = RTStrToInt64Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &iValue); 45 45 #else 46 46 # error "Unsupported LLONG_BIT value" -
trunk/src/VBox/Runtime/common/string/nocrt-strtoul.cpp
r96059 r96162 43 43 #if LONG_BIT == 64 44 44 uint64_t uValue = 0; 45 int rc = RTStrToUInt64Ex( psz, ppszNext, (unsigned)iBase, &uValue);45 int rc = RTStrToUInt64Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &uValue); 46 46 #elif LONG_BIT == 32 47 47 uint32_t uValue = 0; 48 int rc = RTStrToUInt32Ex( psz, ppszNext, (unsigned)iBase, &uValue);48 int rc = RTStrToUInt32Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &uValue); 49 49 #else 50 50 # error "Unsupported LONG_BIT value" -
trunk/src/VBox/Runtime/common/string/nocrt-strtoull.cpp
r96059 r96162 43 43 #if LLONG_BIT == 64 44 44 uint64_t uValue = 0; 45 int rc = RTStrToUInt64Ex( psz, ppszNext, (unsigned)iBase, &uValue);45 int rc = RTStrToUInt64Ex(RTStrStripL(psz), ppszNext, (unsigned)iBase, &uValue); 46 46 #else 47 47 # error "Unsupported LLONG_BIT value"
Note:
See TracChangeset
for help on using the changeset viewer.