| 4 | |
| 5 | |
| 6 | void TTextColumnBuilder::AddText(ui32 index, const TStringBuf text) { |
| 7 | CB_ENSURE_INTERNAL(index < Texts.size(), "Text index is out of range"); |
| 8 | TTokensWithBuffer tokens; |
| 9 | Tokenizer->Tokenize(text, &tokens); |
| 10 | Dictionary->Apply(tokens.View, &Texts[index]); |
| 11 | } |
| 12 | |
| 13 | TVector<TText> TTextColumnBuilder::Build() { |
| 14 | CB_ENSURE_INTERNAL(!WasBuilt, "Build could be done only once"); |
no test coverage detected