Lines Matching refs:string
3 #include <string>
8 using std::string;
10 string
11 strip_trailing_zeros(string str)
13 string::size_type p_ix = str.find('.');
14 if (p_ix != string::npos) {
15 string::size_type e_ix = str.find('e', p_ix);
20 string::size_type nz_ix = str.find_last_not_of('0', (e_ix == string::npos
23 if (nz_ix == string::npos || nz_ix < p_ix || nz_ix >= e_ix) {
29 (e_ix == string::npos