MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxGetCompositionStarterCode

Function fxGetCompositionStarterCode

xs/sources/xsString.c:3439–3455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3437}
3438
3439txInteger fxGetCompositionStarterCode(txInteger character, txU2* pairs, txInteger pairCount)
3440{
3441 txU2 code, *it;
3442 txInteger plane;
3443 if (character < 0x10000) {
3444 code = (txU2)character;
3445 plane = 0;
3446 }
3447 else {
3448 code = (txU2)(character & 0xFFFF);
3449 plane = 0x10000;
3450 }
3451 it = (txU2*)c_bsearch(&code, pairs, pairCount, sizeof(txU2) << 1, fxCompareComposition);
3452 if (it)
3453 return ((txInteger)it[1]) | plane;
3454 return 0;
3455}
3456
3457txInteger fxGetDecompositionBuffer(txInteger character, txInteger* buffer, txFlag compatible)
3458{

Callers 1

fxNormalizeCompositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected