Lines Matching refs:temp
126 string temp = rString; in trim_string() local
128 while ( temp.length() && (temp[0] == ' ' || temp[0] == '\t') ) in trim_string()
129 temp.erase( 0, 1 ); in trim_string()
131 string::size_type len = temp.length(); in trim_string()
133 while ( len && (temp[len-1] == ' ' || temp[len-1] == '\t') ) in trim_string()
135 temp.erase( len - 1, 1 ); in trim_string()
136 len = temp.length(); in trim_string()
139 return temp; in trim_string()
144 string temp = rString; in xml_encode() local
150 for( pos = 0; (pos = temp.find( '&', pos )) != string::npos; pos += 4 ) in xml_encode()
151 temp.replace( pos, 1, "&" ); in xml_encode()
153 for( pos = 0; (pos = temp.find( '<', pos )) != string::npos; pos += 4 ) in xml_encode()
154 temp.replace( pos, 1, "<" ); in xml_encode()
156 for( pos = 0; (pos = temp.find( '>', pos )) != string::npos; pos += 4 ) in xml_encode()
157 temp.replace( pos, 1, ">" ); in xml_encode()
159 return temp; in xml_encode()