/src/skia/src/core/SkStringUtils.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright 2013 Google Inc. |
3 | | * |
4 | | * Use of this source code is governed by a BSD-style license that can be |
5 | | * found in the LICENSE file. |
6 | | */ |
7 | | |
8 | | #ifndef SkStringUtils_DEFINED |
9 | | #define SkStringUtils_DEFINED |
10 | | |
11 | | #include "include/core/SkScalar.h" |
12 | | |
13 | | class SkString; |
14 | | |
15 | | enum SkScalarAsStringType { |
16 | | kDec_SkScalarAsStringType, |
17 | | kHex_SkScalarAsStringType, |
18 | | }; |
19 | | |
20 | | void SkAppendScalar(SkString*, SkScalar, SkScalarAsStringType); |
21 | | |
22 | 0 | static inline void SkAppendScalarDec(SkString* str, SkScalar value) { |
23 | 0 | SkAppendScalar(str, value, kDec_SkScalarAsStringType); |
24 | 0 | } Unexecuted instantiation: GrTest.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkPaint.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkPath.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkRRect.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkRect.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkStringUtils.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrDrawingManager.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrRecordingContextPriv.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrOpsTask.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: AAConvexPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: AAHairLinePathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: AALinearizingConvexPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: DefaultPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrAtlasTextOp.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrFillRectOp.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrTextureOp.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SmallPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SoftwarePathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: TriangulatingPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: Device.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: Device_drawTexture.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SurfaceDrawContext.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SurfaceFillContext_v1.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkBlurMF.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkGlyphRunPainter.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkGpuBlurUtils.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkAlphaThresholdImageFilter.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkBlurImageFilter.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrTextBlob.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrBlurUtils.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: AtlasPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: DashLinePathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: TessellationPathRenderer.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: GrAtlasRenderTask.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: ClipStack.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: StencilMaskHelper.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: SkOTTable_name.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: ParagraphBuilderImpl.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: ParagraphStyle.cpp:SkAppendScalarDec(SkString*, float) Unexecuted instantiation: PathRenderer.cpp:SkAppendScalarDec(SkString*, float) |
25 | | |
26 | 0 | static inline void SkAppendScalarHex(SkString* str, SkScalar value) { |
27 | 0 | SkAppendScalar(str, value, kHex_SkScalarAsStringType); |
28 | 0 | } Unexecuted instantiation: GrTest.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkPaint.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkPath.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkRRect.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkRect.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkStringUtils.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrDrawingManager.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrRecordingContextPriv.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrOpsTask.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: AAConvexPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: AAHairLinePathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: AALinearizingConvexPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: DefaultPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrAtlasTextOp.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrFillRectOp.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrTextureOp.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SmallPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SoftwarePathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: TriangulatingPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: Device.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: Device_drawTexture.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SurfaceDrawContext.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SurfaceFillContext_v1.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkBlurMF.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkGlyphRunPainter.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkGpuBlurUtils.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkAlphaThresholdImageFilter.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkBlurImageFilter.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrTextBlob.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrBlurUtils.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: AtlasPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: DashLinePathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: TessellationPathRenderer.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: GrAtlasRenderTask.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: ClipStack.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: StencilMaskHelper.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: SkOTTable_name.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: ParagraphBuilderImpl.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: ParagraphStyle.cpp:SkAppendScalarHex(SkString*, float) Unexecuted instantiation: PathRenderer.cpp:SkAppendScalarHex(SkString*, float) |
29 | | |
30 | | /** Indents every non-empty line of the string by tabCnt tabs */ |
31 | | SkString SkTabString(const SkString& string, int tabCnt); |
32 | | |
33 | | SkString SkStringFromUTF16(const uint16_t* src, size_t count); |
34 | | |
35 | | #endif |