Lines Matching defs:prefix
412 /// @param archive_prefix the prefix of the archive file.
544 /// Getter of the prefix for the name of anonymous structs.
546 /// @reaturn the prefix for the name of anonymous structs.
551 /// Getter of the prefix for the name of anonymous unions.
553 /// @reaturn the prefix for the name of anonymous unions.
558 /// Getter of the prefix for the name of anonymous enums.
560 /// @reaturn the prefix for the name of anonymous enums.
807 /// Emit a prefix made of the name of the program which is emitting a
810 /// The prefix is a string which looks like:
814 /// @param prog_name the name of the program to use in the prefix.
815 /// @param out the output stream where to emit the prefix.
817 /// @return the output stream where the prefix was emitted.
896 /// Test if a given string begins with a particular prefix.
900 /// @param prefix the prefix to look for.
902 /// @return true iff string @p str begins with prefix @p prefix.
904 string_begins_with(const string& str, const string& prefix)
909 if (prefix.empty())
912 string::size_type prefix_len = prefix.length();
916 return str.compare(0, prefix.length(), prefix) == 0;
1016 /// Get the suffix of a string, given a prefix to consider.
1020 /// @param prefix the prefix of the input string to consider.
1023 /// the computed suffix iff a suffix was found for prefix @p prefix.
1025 /// @return true iff the function could find a prefix for the suffix
1029 const string& prefix,
1033 if (prefix.length() >= input_string.length())
1036 if (input_string.compare(0, prefix.length(), prefix) != 0)
1038 // the prefix parameter.
1041 suffix = input_string.substr(prefix.length());
1045 /// Return the prefix that is common to two strings.
1051 /// @param result output parameter. The resulting common prefix found
1056 /// common prefix of @p s1 and @p s2.
1073 /// Find the prefix common to a *SORTED* vector of strings.
1080 /// @param prefix output parameter. This is set by this function with
1081 /// the prefix common to the strings found in @p input_strings, iff
1084 /// @return true iff the function could find a common prefix to the
1087 sorted_strings_common_prefix(vector<string>& input_strings, string& prefix)
1094 if (dir_name(input_strings.front(), prefix,
1123 prefix = prefix_candidate;