(str: string, min: number, max: number)
| 99 | } |
| 100 | |
| 101 | function valueSliceTwoWhile(str: string, min: number, max: number) { |
| 102 | let start = min; |
| 103 | let end = max; |
| 104 | |
| 105 | while (start < end) { |
| 106 | const code = str.charCodeAt(start); |
| 107 | if (code !== 32 /* */ && code !== 9 /* \t */) break; |
| 108 | start++; |
| 109 | } |
| 110 | |
| 111 | while (end > start) { |
| 112 | const code = str.charCodeAt(end - 1); |
| 113 | if (code !== 32 /* */ && code !== 9 /* \t */) break; |
| 114 | end--; |
| 115 | } |
| 116 | |
| 117 | return str.slice(start, end); |
| 118 | } |
| 119 | |
| 120 | function valueSliceTwoWhileExitEarly(str: string, min: number, max: number) { |
| 121 | if (min === max) return ""; |
no outgoing calls
no test coverage detected
searching dependent graphs…