00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef OR_TOOLS_BASE_STRUTIL_H_
00016 #define OR_TOOLS_BASE_STRUTIL_H_
00017
00018 #include "base/stringpiece.h"
00019
00020 namespace operations_research {
00021
00022
00023
00024
00025
00026 inline bool HasSuffixString(const StringPiece& str,
00027 const StringPiece& suffix) {
00028 return str.ends_with(suffix);
00029 }
00030 }
00031 #endif // OR_TOOLS_BASE_STRUTIL_H_