diff options
Diffstat (limited to 'src/core/SkStringUtils.h')
-rw-r--r-- | src/core/SkStringUtils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/SkStringUtils.h b/src/core/SkStringUtils.h index ac587d6717..f2a1443ff4 100644 --- a/src/core/SkStringUtils.h +++ b/src/core/SkStringUtils.h @@ -12,6 +12,16 @@ class SkString; +/** + * Add 'flagStr' to 'string' and set 'needSeparator' to true only if 'flag' is + * true. If 'needSeparator' is true append a '|' before 'flagStr'. This method + * is used to streamline the creation of ASCII flag strings within the toString + * methods. + */ +void SkAddFlagToString(SkString* string, bool flag, + const char* flagStr, bool* needSeparator); + + enum SkScalarAsStringType { kDec_SkScalarAsStringType, kHex_SkScalarAsStringType, |