LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package runtime | 5 package runtime |
6 #include "runtime.h" | 6 #include "runtime.h" |
7 #include "malloc.h" | 7 #include "malloc.h" |
8 | 8 |
9 String runtime·emptystring; | 9 String runtime·emptystring; |
10 | 10 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 if(retv < Runeself) { | 341 if(retv < Runeself) { |
342 retk = k+1; | 342 retk = k+1; |
343 goto out; | 343 goto out; |
344 } | 344 } |
345 | 345 |
346 // multi-char rune | 346 // multi-char rune |
347 retk = k + runtime·charntorune(&retv, s.str+k, s.len-k); | 347 retk = k + runtime·charntorune(&retv, s.str+k, s.len-k); |
348 | 348 |
349 out: | 349 out: |
350 } | 350 } |
LEFT | RIGHT |