Changeset 52c5bf2 in nscp for include/strEx.h
- Timestamp:
- 06/16/12 13:46:31 (11 months ago)
- Branches:
- master, 0.4.1, 0.4.2
- Children:
- 7c1a8da
- Parents:
- c3f233d (diff), 482e07e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
include/strEx.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
include/strEx.h
rc3f233d r52c5bf2 92 92 ss << std::noshowpoint << std::fixed << i; 93 93 std::string s = ss.str(); 94 std::string::size_type pos = s.find_last_not_of('0'); 94 std::string::size_type pos = s.find('.'); 95 if (pos != std::string::npos && (s.length()-pos) > 6) { 96 s = s.substr(0, pos+6); 97 } 98 99 pos = s.find_last_not_of('0'); 95 100 if (pos == std::wstring::npos) 96 101 return s;
Note: See TracChangeset
for help on using the changeset viewer.








