本文整理汇总了C++中XString::count方法的典型用法代码示例。如果您正苦于以下问题:C++ XString::count方法的具体用法?C++ XString::count怎么用?C++ XString::count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XString
的用法示例。
在下文中一共展示了XString::count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: kbc
//.........这里部分代码省略.........
acText = utility::eatUTF16DOM(acText);
}
if (b && (b = myScanner->scan(acText, (char *) cachePath("default.kbasic").ascii(), bSilent, bDebug, false, bUseCache))){} // filename
if (b){
int n = 0;
int n0 = 0;
bool bFirst = true;
do {
n = sFiles.find("\n", n);
XString s = sFiles.mid(n0, n >= 0 ? n - n0 : sFiles.length());
if (n == -1 & bFirst == false) break;
bFirst = false;
n0 = n + 1;
n++;
const char *ac99 = s.ascii();
if (b && (b = utility::readSourceFile(&acText, ac99, myTextbuffer))){
acText = utility::eatUTF16DOM(acText);
}
XString sFile = ac99;
if (sFile.endsWith(".kbasic_form")){
XString sLanguage = "";
XString sExt = getFilenameExtension(sFile);
XString q = sFile.left(sFile.length() - sExt.length() - 1);
if (q.count(".") > 1){
sLanguage = getFilenameExtension(q);
if (sLanguage.contains("/") || sLanguage.contains("\\")){
sLanguage = "";
}
}
if (sLanguage.length() == 0){
// if (!sTranslation.contains(sLanguage, false)){
acText = prepareSourceCode(ac99, acText, sFile);
} else {
/*
char ac[1111];
sprintf(ac, "omit %s %s", sFile.ascii(), sLanguage.ascii());
CONSOLE printError(ac);*/
continue;
// acText = "";
}
} else if (sFile.endsWith(".kbasic_menubar")){
XString sLanguage = "";
XString sExt = getFilenameExtension(sFile);
XString q = sFile.left(sFile.length() - sExt.length() - 1);
if (q.count(".") > 1){
sLanguage = getFilenameExtension(q);
if (sLanguage.contains("/") || sLanguage.contains("\\")){
sLanguage = "";
}
}
if (sLanguage.length() == 0){