/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
D | Utils.java | 293 StringBuilder sb = new StringBuilder(); in generateAvailableDateTimeFormatPattern() local 295 sb.append("\t"); in generateAvailableDateTimeFormatPattern() 296 sb.append(adjust.get(i).getAvailableFormat()); in generateAvailableDateTimeFormatPattern() 298 sb.append(","); in generateAvailableDateTimeFormatPattern() 300 sb.append(System.lineSeparator()); in generateAvailableDateTimeFormatPattern() 302 return sb.toString(); in generateAvailableDateTimeFormatPattern() 325 StringBuilder sb = new StringBuilder(); in generateI18nPatternMacros() local 333 … sb.append("#define " + ele.getAvailableFormat() + "_INDEX " + getHexIndexString(type, ele.index) + in generateI18nPatternMacros() 337 sb.append(PATTERN_INDEX_MASK + System.lineSeparator()); in generateI18nPatternMacros() 338 sb.append("#define TYPE_SHIFT " + TYPE_SHIFT + System.lineSeparator()); in generateI18nPatternMacros() [all …]
|
D | Fetcher.java | 279 StringBuilder sb = new StringBuilder(); in getMonthNames() local 282 sb.append(months[i]); in getMonthNames() 284 sb.append(FileConfig.SEP); in getMonthNames() 287 datas.add(sb.toString()); in getMonthNames() 292 StringBuilder sb = new StringBuilder(); in getWeekDayNames() local 299 sb.append(adjustWeekdays[i]); in getWeekDayNames() 301 sb.append(FileConfig.SEP); in getWeekDayNames() 304 this.datas.add(sb.toString()); in getWeekDayNames() 322 StringBuilder sb = new StringBuilder(); in getPatterns() local 326 sb.append(outPatterns[i]); in getPatterns() [all …]
|
D | MeasureFormatPatternFetcher.java | 98 StringBuilder sb = new StringBuilder(); in getPatterns() local 102 sb.append(patterns[i].substring(1, length - 1)); in getPatterns() 105 sb.append(FileConfig.SEP); in getPatterns() 108 result[1] = sb.toString(); in getPatterns()
|
D | PluralFetcher.java | 127 StringBuilder sb = new StringBuilder(); in getPluralItems() local 131 sb.append(resources[i].substring(1, length - 1)); in getPluralItems() 134 sb.append(FileConfig.SEP); in getPluralItems() 137 ret[1] = sb.toString(); in getPluralItems()
|
/base/hiviewdfx/hiview/base/logstore/ |
D | log_file.cpp | 32 struct stat sb; in LogFile() local 33 if ((fullPath.length() == 0) || (stat(fullPath.c_str(), &sb) == -1)) { in LogFile() 36 mtime_ = sb.st_mtime; in LogFile() 37 isDir_ = (S_ISDIR(sb.st_mode) != 0); in LogFile() 39 size_ = sb.st_size; in LogFile()
|
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
D | dfx_util.cpp | 195 struct stat sb; in ReadDirFilesByPid() local 196 if (fstat(fd, &sb) != -1 && sb.st_size > 0) { in ReadDirFilesByPid() 197 content.reserve(sb.st_size); in ReadDirFilesByPid()
|
/base/global/i18n/frameworks/intl/src/ |
D | date_time_rule.cpp | 239 std::string sb; in Get() local 248 sb += mark; in Get() 250 sb += temp; in Get() 252 sb += mark; in Get() 254 sb += "|"; in Get() 256 result = sb; in Get()
|
/base/hiviewdfx/hiview/base/ |
D | audit.cpp | 127 struct stat sb; in IsActiveLogFileSizeReachTheashold() local 128 if (stat(path.c_str(), &sb) == -1) { in IsActiveLogFileSizeReachTheashold() 132 return sb.st_size >= MAX_DISK_LOG_SIZE; in IsActiveLogFileSizeReachTheashold()
|
/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | load_policy.cpp | 122 struct stat sb; in ReadPolicyFile() local 123 if (fstat(fd, &sb) < 0) { in ReadPolicyFile() 129 if (sb.st_size < 0) { in ReadPolicyFile() 132 size = static_cast<size_t>(sb.st_size); in ReadPolicyFile()
|
/base/update/updater/utils/ |
D | utils_fs.cpp | 73 struct stat sb {}; in GetFilesFromDirectory() struct 74 if (stat(path.c_str(), &sb) == -1) { in GetFilesFromDirectory()
|
D | utils.cpp | 316 struct stat sb {}; in ReadFileToString() struct 317 if (fstat(fd, &sb) != -1 && sb.st_size > 0) { in ReadFileToString() 318 content.resize(static_cast<size_t>(sb.st_size)); in ReadFileToString() 321 auto remaining = static_cast<size_t>(sb.st_size); in ReadFileToString()
|
/base/startup/init/services/sandbox/ |
D | sandbox.c | 414 struct stat sb; in CheckAndMakeDir() local 416 if ((stat(dir, &sb) == 0) && S_ISDIR(sb.st_mode)) { in CheckAndMakeDir()
|
/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/ |
D | hks_file_transfer.c | 196 static int ProcessFileUpgrade(const char *fpath, const struct stat *sb, int typeflag, struct FTW *f… in ProcessFileUpgrade() argument
|
/base/print/print_fwk/services/print_service/src/ |
D | print_cups_client.cpp | 115 struct stat sb; in StartCupsdService() local 116 if (stat(pidFile.c_str(), &sb) != 0) { in StartCupsdService() 133 if ((bytes = read(fd, buf, sb.st_size)) < 0) { in StartCupsdService()
|