Home | History | Annotate | Download | only in Interpreter

Lines Matching refs:common_prefix

1191 Args::LongestCommonPrefix (std::string &common_prefix)
1196 common_prefix.clear();
1198 common_prefix = (*pos);
1204 // First trim common_prefix if it is longer than the current element:
1205 if (common_prefix.size() > new_size)
1206 common_prefix.erase (new_size);
1210 for (size_t i = 0; i < common_prefix.size(); i++)
1212 if ((*pos)[i] != common_prefix[i])
1214 common_prefix.erase(i);
1220 if (common_prefix.empty())