MCPcopy Create free account
hub / github.com/buggins/coolreader / AddString

Method AddString

crengine/src/lvimg.cpp:1092–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090 };
1091
1092 int AddString( int OldCode, unsigned char NewChar ) {
1093 if (lastadd == LSWDECODER_MAX_TABLE_SIZE)
1094 return -1;
1095 if (lastadd == (1<<bits)-1) {
1096 // increase table size
1097 bits++;
1098 //ResizeTable(1<<bits);
1099 }
1100
1101 str_table[lastadd] = NewChar;
1102 str_nextchar[lastadd] = OldCode;
1103 last_table[lastadd] = last_table[OldCode];
1104
1105
1106 lastadd++;
1107 return lastadd-1;
1108 };
1109
1110 CLZWDecoder() {
1111 /* // ld implementation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected