blob: ffe83ca997041f157060fb5b25b47608f6ecf7c9 [file] [log] [blame]
Joe Onorato6c9547d2016-09-07 18:43:49 -07001#include <string>
2
3namespace android {
4namespace javastream_proto {
5
6using namespace std;
7
8/**
9 * Capitalizes the string, removes underscores and makes the next letter
10 * capitalized, and makes the letter following numbers capitalized.
11 */
12string to_camel_case(const string& str);
13
14/**
15 * Capitalize and insert underscores for CamelCase.
16 */
17string make_constant_name(const string& str);
18
19/**
20 * Returns the part of a file name that isn't a path and isn't a type suffix.
21 */
22string file_base_name(const string& str);
23
24/**
25 * Replace all occurances of 'replace' with 'with'.
26 */
27string replace_string(const string& str, const char replace, const char with);
28
29
30} // namespace javastream_proto
31} // namespace android
32