| 154 | } |
| 155 | |
| 156 | TString TBpeDictionary::GetToken(TTokenId tokenId) const { |
| 157 | TTokenId minId = GetMinTokenIdForUnits(); |
| 158 | if (tokenId < minId) { |
| 159 | return Alphabet->GetToken(tokenId); |
| 160 | } |
| 161 | // TODO(nikitxskv): Add tokenId checks like in TDictionary. |
| 162 | return StringTokens[tokenId - minId]; |
| 163 | } |
| 164 | |
| 165 | ui64 TBpeDictionary::GetCount(TTokenId tokenId) const { |
| 166 | TTokenId minId = GetMinTokenIdForUnits(); |
no outgoing calls
no test coverage detected