aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/public/udf/udf_version.cpp
blob: f900f99b4b7b180c99ed68c2817f61952a6647f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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