Lines Matching defs:string

77     // - Otherwise the full string is matched.
153 inline bool isAlpha(const String8& string) {
154 const size_t length = string.length();
156 if (!isalpha(string[i])) {
165 inline bool isNumber(const String8& string) {
166 const size_t length = string.length();
168 if (!isdigit(string[i])) {
222 setLanguage(lang.string());
235 setRegion(part2.string());
237 setScript(part2.string());
239 setVariant(part2.string());
252 setRegion(part3.string());
254 setVariant(part3.string());
265 setVariant(part4.string());
312 part.string());
328 fprintf(stderr, "ERROR: Invalid BCP 47 tag in directory name %s\n", part.string());
345 fprintf(stderr, "ERROR: Invalid BCP 47 tag in directory name: %s\n", part.string());
352 && isAlpha(part) && strcmp("car", part.string())) {
362 if (part.string()[0] == 'r' && part.length() == 3) {
363 setRegion(part.string() + 1);
528 mFiles[index]->getSourceFile().string(),
529 file->getSourceFile().string());
549 originalFile->getPrintableSource().string(),
561 printf("%s%s\n", prefix.string(), getPath().string());
568 printf("%s Gen: (%s) %d bytes\n", prefix.string(), e.toDirName(String8()).string(),
571 printf("%s Src: (%s) %s\n", prefix.string(), e.toDirName(String8()).string(),
572 file->getPrintableSource().string());
574 //printf("%s File Group Entry: %s\n", prefix.string(),
575 // file->getGroupEntry().toDirName(String8()).string());
664 dir = opendir(srcDir.string());
666 fprintf(stderr, "ERROR: opendir(%s): %s\n", srcDir.string(), strerror(errno));
680 if (isHidden(srcDir.string(), entry->d_name))
705 pathName.appendPath(fileNames[i].string());
706 type = getFileType(pathName.string());
736 printf(" (ignoring non-file/dir '%s')\n", pathName.string());
749 if (!validateFileName(mFiles.valueAt(i)->getLeaf().string())) {
757 if (strcasecmp(mFiles.valueAt(i)->getLeaf().string(),
758 mFiles.valueAt(j)->getLeaf().string()) == 0) {
761 mFiles.valueAt(j)->getPrintableSource().string());
770 if (strcasecmp(mFiles.valueAt(i)->getLeaf().string(),
771 mDirs.valueAt(j)->getLeaf().string()) == 0) {
774 mDirs.valueAt(j)->getPrintableSource().string());
781 if (!validateFileName(mDirs.valueAt(i)->getLeaf().string())) {
789 if (strcasecmp(mDirs.valueAt(i)->getLeaf().string(),
790 mDirs.valueAt(j)->getLeaf().string()) == 0) {
793 mDirs.valueAt(j)->getPrintableSource().string());
850 entry.sourcePos.error("Symbol '%s' declared with <java-symbol> not defined\n", name.string());
855 // i, N, name.string(), entry.isJavaSymbol ? 1 : 0);
866 pos.error("Java symbol dir %s not defined\n", name.string());
870 //printf("**** applying java symbols in dir %s\n", name.string());
1135 DIR* dir = opendir(srcDir.string());
1137 fprintf(stderr, "ERROR: opendir(%s): %s\n", srcDir.string(), strerror(errno));
1153 if (isHidden(srcDir.string(), entry->d_name)) {
1164 fprintf(stderr, "invalid resource directory name: %s %s\n", srcDir.string(),
1172 const char *verString = group.getVersionString().string();
1180 FileType type = getFileType(subdirName.string());
1204 fprintf(stderr, " (ignoring file '%s')\n", subdirName.string());
1252 kind.initFromDirName(remain.walkPath().string(), &resType);
1267 fprintf(stderr, "err=%s entryName=%s\n", strerror(err), entryName.string());
1277 printf("\n\nfile: %s\n", entryName.string());
1321 if (!AaptConfig::parseDensity(bundle->getPreferredDensity().string(), &preferredConfig)) {
1323 bundle->getPreferredDensity().string());
1336 bundle->getConfigurations().string());
1340 bundle->getPreferredDensity().string());
1389 file->getPrintableSource().string());
1457 file->getPrintableSource().string());
1499 pos.error("Java symbol dir %s not defined\n", name.string());
1502 //printf("**** applying java symbols in dir %s\n", name.string());
1514 // sym.name.string(), sym.isPublic ? 1 : 0, includePrivate ? 1 : 0,
1533 printf("Including resources from package: %s\n", includes[i].string());
1538 includes[i].string());
1547 featureOfBase.string());
1552 featureOfBase.string());
1585 printf("%sConfigurations:\n", prefix.string());
1589 printf("%s %s\n", prefix.string(),
1590 cname != "" ? cname.string() : "(default)");
1593 printf("\n%sFiles:\n", prefix.string());
1596 printf("\n%sResource Dirs:\n", prefix.string());
1601 printf("%s Type %s\n", prefix.string(), d->getLeaf().string());
1635 const char*const s = symbol.string();