Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: tools/gn/string_utils.h

Issue 440333002: Support more configurability in GN toolchains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unsigned check Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/source_file_type.cc ('k') | tools/gn/string_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/string_utils.h
diff --git a/tools/gn/string_utils.h b/tools/gn/string_utils.h
index 7fff1d8560286053e8a00be10e0d0c7bfb94f944..a405cc5e0199c0a2f2c578da0d763a657760c868 100644
--- a/tools/gn/string_utils.h
+++ b/tools/gn/string_utils.h
@@ -48,4 +48,9 @@ inline void AppendStringPiece(std::string* dest,
dest->append(piece.data(), piece.size());
}
+// Removes the trailing slash from the given string. This asserts that either
+// the string is empty or it ends with a slash (normally used to process
+// directories).
+void TrimTrailingSlash(std::string* str);
+
#endif // TOOLS_GN_STRING_UTILS_H_
« no previous file with comments | « tools/gn/source_file_type.cc ('k') | tools/gn/string_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698