14991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com/*
24991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com * Copyright 2013 Google Inc.
34991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com *
44991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com * Use of this source code is governed by a BSD-style license that can be
54991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com * found in the LICENSE file.
64991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com */
74991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com
84991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com#ifndef SkStringUtils_DEFINED
94991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com#define SkStringUtils_DEFINED
104991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com
114991b8f23482afc1494fd17647421ce68de53331robertphillips@google.comclass SkString;
124991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com
134991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com/**
14cdcb2ce2744c7e5c47453328dbf292edee79ab37skia.committer@gmail.com * Add 'flagStr' to 'string' and set 'needSeparator' to true only if 'flag' is
15cdcb2ce2744c7e5c47453328dbf292edee79ab37skia.committer@gmail.com * true. If 'needSeparator' is true append a '|' before 'flagStr'. This method
16cdcb2ce2744c7e5c47453328dbf292edee79ab37skia.committer@gmail.com * is used to streamline the creation of ASCII flag strings within the toString
174991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com * methods.
184991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com */
19cdcb2ce2744c7e5c47453328dbf292edee79ab37skia.committer@gmail.comvoid SkAddFlagToString(SkString* string, bool flag,
204991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com                       const char* flagStr, bool* needSeparator);
214991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com
224991b8f23482afc1494fd17647421ce68de53331robertphillips@google.com
2375847199c25121c9989e8dba103ac6002d2132d6reed@google.com#endif
24