1 #include <string> 2 3 namespace android { 4 namespace javastream_proto { 5 6 using 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 */ 12 string to_camel_case(const string& str); 13 14 /** 15 * Capitalize and insert underscores for CamelCase. 16 */ 17 string 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 */ 22 string file_base_name(const string& str); 23 24 /** 25 * Replace all occurances of 'replace' with 'with'. 26 */ 27 string replace_string(const string& str, const char replace, const char with); 28 29 30 } // namespace javastream_proto 31 } // namespace android 32 33