gfx/skia/trunk/include/core/SkStringUtils.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/core/SkStringUtils.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +/*
     1.5 + * Copyright 2013 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#ifndef SkStringUtils_DEFINED
    1.12 +#define SkStringUtils_DEFINED
    1.13 +
    1.14 +class SkString;
    1.15 +
    1.16 +/**
    1.17 + * Add 'flagStr' to 'string' and set 'needSeparator' to true only if 'flag' is
    1.18 + * true. If 'needSeparator' is true append a '|' before 'flagStr'. This method
    1.19 + * is used to streamline the creation of ASCII flag strings within the toString
    1.20 + * methods.
    1.21 + */
    1.22 +void SkAddFlagToString(SkString* string, bool flag,
    1.23 +                       const char* flagStr, bool* needSeparator);
    1.24 +
    1.25 +
    1.26 +#endif

mercurial