OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkString.h" | 8 #include "SkString.h" |
9 #include "SkStringUtils.h" | 9 #include "SkStringUtils.h" |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 while (nextNL >= 0) { | 50 while (nextNL >= 0) { |
51 if (nextNL > 0) { | 51 if (nextNL > 0) { |
52 result.append(tabs); | 52 result.append(tabs); |
53 } | 53 } |
54 result.append(input, nextNL + 1); | 54 result.append(input, nextNL + 1); |
55 input += nextNL + 1; | 55 input += nextNL + 1; |
56 nextNL = SkStrFind(input, newline); | 56 nextNL = SkStrFind(input, newline); |
57 } | 57 } |
58 if (*input != '\0') { | 58 if (*input != '\0') { |
59 result.append(tabs); | 59 result.append(tabs); |
| 60 result.append(input); |
60 } | 61 } |
61 result.append(input); | |
62 return result; | 62 return result; |
63 } | 63 } |
OLD | NEW |