/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/archive/models_archive_reader.cpp
15 строк
475 B
Anton Myagkov
Update ydb version to 24.4 (#4579)
07 фев 2026, 11:59
Не верифицирован
07 фев 2026, 11:59
2c21cae
Код
Авторство
О чём код?
#include "models_archive_reader.h" #include <util/generic/hash_set.h> THashSet<TStringBuf> IModelsArchiveReader::FilterByPrefix(TStringBuf prefix, TStringBuf suffix) const { THashSet<TStringBuf> result; const size_t count = Count(); for (size_t ind = 0; ind < count; ++ind) { TString path = KeyByIndex(ind); if (path.StartsWith(prefix) && path.EndsWith(suffix)) { result.insert(std::move(path)); } } return result; }