Lines Matching refs:string
21 #include <string>
33 using std::string;
35 string RSSlangReflectUtils::GetFileNameStem(const char *fileName) {
48 return string(slash, dot - slash);
51 string RSSlangReflectUtils::ComputePackagedPath(const char *prefixPath,
53 string packaged_path(prefixPath);
69 static string InternalFileNameConvert(const char *rsFileName, bool toLower) {
95 return string(ret);
98 std::string
103 std::string RootNameFromRSFileName(const std::string &rsFileName) {
107 std::string
112 std::string RSSlangReflectUtils::JavaBitcodeClassNameFromRSFileName(
114 std::string tmp(InternalFileNameConvert(rsFileName, false));
167 std::string filename(context.bc32FileName);
263 string output_path =
272 string clazz_name(JavaBitcodeClassNameFromRSFileName(context.rsFileName));
273 string filename(clazz_name);
290 std::string JoinPath(const std::string &path1, const std::string &path2) {
297 std::string fullPath = path1;
302 fullPath += path2.substr(1, string::npos);
309 // Replace all instances of "\" with "\\" in a single string to prevent
315 static void SanitizeString(std::string *s) {
317 while ((p = s->find('\\', p)) != std::string::npos) {
342 bool GeneratedFile::startFile(const string &outDirectory,
343 const string &outFileName,
344 const string &sourceFileName,
345 const string *optionalLicense, bool isJava,
360 std::string FilePath = JoinPath(outDirectory, outFileName);
377 std::string source(sourceFileName);
399 void GeneratedFile::comment(const std::string &s) {
410 if (p == std::string::npos) {