michael@0: /* michael@0: * Copyright 2013 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkStringUtils_DEFINED michael@0: #define SkStringUtils_DEFINED michael@0: michael@0: class SkString; michael@0: michael@0: /** michael@0: * Add 'flagStr' to 'string' and set 'needSeparator' to true only if 'flag' is michael@0: * true. If 'needSeparator' is true append a '|' before 'flagStr'. This method michael@0: * is used to streamline the creation of ASCII flag strings within the toString michael@0: * methods. michael@0: */ michael@0: void SkAddFlagToString(SkString* string, bool flag, michael@0: const char* flagStr, bool* needSeparator); michael@0: michael@0: michael@0: #endif