(str, i)
| 37 | // Check Canonical_Combining_Class in |
| 38 | // http://userguide.icu-project.org/strings/properties |
| 39 | function charLengthLeft(str, i) { |
| 40 | if (i <= 0) |
| 41 | return 0; |
| 42 | if ((i > 1 && |
| 43 | StringPrototypeCodePointAt(str, i - 2) >= kUTF16SurrogateThreshold) || |
| 44 | StringPrototypeCodePointAt(str, i - 1) >= kUTF16SurrogateThreshold) { |
| 45 | return 2; |
| 46 | } |
| 47 | return 1; |
| 48 | } |
| 49 | |
| 50 | function charLengthAt(str, i) { |
| 51 | if (str.length <= i) { |
no outgoing calls
no test coverage detected
searching dependent graphs…