Home
last modified time | relevance | path

Searched refs:StringUtils (Results 1 – 6 of 6) sorted by relevance

/development/tools/winscope/src/common/
Dstring_utils_test.ts17 import {StringUtils} from './string_utils';
21 expect(StringUtils.parseBigIntStrippingUnit('-10')).toEqual(-10n);
22 expect(StringUtils.parseBigIntStrippingUnit('-10 unit')).toEqual(-10n);
23 expect(StringUtils.parseBigIntStrippingUnit('-10unit')).toEqual(-10n);
24 expect(StringUtils.parseBigIntStrippingUnit(' -10 unit ')).toEqual(-10n);
26 expect(StringUtils.parseBigIntStrippingUnit('0')).toEqual(0n);
27 expect(StringUtils.parseBigIntStrippingUnit('0 unit')).toEqual(0n);
28 expect(StringUtils.parseBigIntStrippingUnit('0unit')).toEqual(0n);
29 expect(StringUtils.parseBigIntStrippingUnit(' 0 unit ')).toEqual(0n);
31 expect(StringUtils.parseBigIntStrippingUnit('10')).toEqual(10n);
[all …]
Dstring_utils.ts18 class StringUtils { class
34 (StringUtils.isDigit(prevChar) || StringUtils.isLowerCase(prevChar));
35 const currCharCouldBeWordStart = StringUtils.isUpperCase(currChar);
51 return StringUtils.capitalizeFirstCharIfAlpha(token);
58 if (!StringUtils.isAlpha(token[0])) {
79 return StringUtils.isAlpha(char) && char === char.toLowerCase();
84 return StringUtils.isAlpha(char) && char === char.toUpperCase();
100 if (!StringUtils.isAlpha(word[0])) {
107 export {StringUtils};
/development/tools/winscope/src/parsers/events/operations/
Dadd_cuj_properties.ts18 import {StringUtils} from 'common/string_utils';
76 !StringUtils.isNumeric(cujType) ||
77 !StringUtils.isNumeric(unixNs) ||
78 !StringUtils.isNumeric(elapsedNs) ||
79 !StringUtils.isNumeric(uptimeNs)
/development/tools/winscope/src/parsers/perfetto/
Dfake_proto_builder.ts18 import {StringUtils} from 'common/string_utils';
35 return StringUtils.convertSnakeToCamelCase(token);
/development/tools/winscope/src/parsers/events/
Dparser_eventlog.ts17 import {StringUtils} from 'common/string_utils';
76 !StringUtils.isBlank(substring)
82 index > firstIndexOfEventLogTrace && StringUtils.isBlank(substring)
/development/tools/winscope/src/app/components/timeline/
Dtimeline_component.ts42 import {StringUtils} from 'common/string_utils';
774 ).makeTimestampFromNs(StringUtils.parseBigIntStrippingUnit(target.value));