MCPcopy Index your code
hub / github.com/react/react / utfDecodeStringWithRanges

Function utfDecodeStringWithRanges

packages/react-devtools-shared/src/utils.js:176–186  ·  view source on GitHub ↗
(
  array: Array<number>,
  left: number,
  right: number,
)

Source from the content-addressed store, hash-verified

174}
175
176export function utfDecodeStringWithRanges(
177 array: Array<number>,
178 left: number,
179 right: number,
180): string {
181 let string = '';
182 for (let i = left; i <= right; i++) {
183 string += String.fromCodePoint(array[i]);
184 }
185 return string;
186}
187
188function surrogatePairToCodePoint(
189 charCode1: number,

Callers 3

StoreClass · 0.90
updateTreeFunction · 0.90
printOperationsArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected