Lines Matching defs:suffix
879 /// Test if a given string ends with a particular suffix.
883 /// @param suffix the suffix to test for.
885 /// @return true iff string @p str ends with suffix @p suffix.
887 string_ends_with(const string& str, const string& suffix)
889 string::size_type str_len = str.length(), suffix_len = suffix.length();
893 return str.compare(str_len - suffix_len, suffix_len, suffix) == 0;
1016 /// Get the suffix of a string, given a prefix to consider.
1022 /// @param suffix output parameter. This is set by the function to the
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
1026 /// @p suffix in the input string @p input_string.
1030 string& suffix)
1041 suffix = input_string.substr(prefix.length());
1136 string major, minor, revision, version_string, suffix;
1137 abigail::abigail_get_library_version(major, minor, revision, suffix);
1138 version_string = major + "." + minor + "." + revision + suffix;