Lines Matching defs:result
127 // result, so we detect those cases and discard the drawing for them.
256 // result points to places+2 chars.
257 static size_t print_permil_as_decimal(int x, char* result, unsigned places) {
258 result[0] = '.';
260 result[i] = '0' + x % 10;
265 if (result[j] != '0') {
269 result[j + 1] = '\0';
282 size_t SkPDFUtils::ColorToDecimalF(float value, char result[kFloatColorDecimalCount + 2]) {
286 result[0] = x > 0 ? '1' : '0';
287 result[1] = '\0';
290 return print_permil_as_decimal(x, result, kFloatColorDecimalCount);
293 size_t SkPDFUtils::ColorToDecimal(uint8_t value, char result[5]) {
295 result[0] = value ? '1' : '0';
296 result[1] = '\0';
301 return print_permil_as_decimal(x, result, 3);