summaryrefslogtreecommitdiffstats
path: root/yql/essentials/public/udf/udf_version.cpp
blob: 28a7a679824658c58f45df458c422e74a43cb79d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "udf_version.h"

#include <util/string/builder.h>

namespace NYql {
namespace NUdf {

TString AbiVersionToStr(ui32 version)
{
    TStringBuilder sb;
    sb << (version / 10000) << '.'
       << (version / 100) % 100 << '.'
       << (version % 100);

    return sb;
}

} // namespace NUdf
} // namespace NYql