2013-01-28 20:21:59 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkStringUtils_DEFINED
|
|
|
|
#define SkStringUtils_DEFINED
|
|
|
|
|
|
|
|
class SkString;
|
|
|
|
|
|
|
|
/**
|
2013-01-29 07:05:52 +00:00
|
|
|
* 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
|
2013-01-28 20:21:59 +00:00
|
|
|
* methods.
|
|
|
|
*/
|
2013-01-29 07:05:52 +00:00
|
|
|
void SkAddFlagToString(SkString* string, bool flag,
|
2013-01-28 20:21:59 +00:00
|
|
|
const char* flagStr, bool* needSeparator);
|
|
|
|
|
|
|
|
|
2013-01-28 20:53:22 +00:00
|
|
|
#endif
|