Home
last modified time | relevance | path

Searched refs:ntpStr (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/time/time_service/services/time/src/
H A Dntp_update_time.cpp165 std::vector<std::string> NtpUpdateTime::SplitNtpAddrs(const std::string &ntpStr) in SplitNtpAddrs() argument
173 size_t end = ntpStr.find(',', start); in SplitNtpAddrs()
177 std::string temp = ntpStr.substr(start, end - start); in SplitNtpAddrs()
188 } while (start < ntpStr.size()); in SplitNtpAddrs()
/ohos5.0/base/time/time_service/services/time/include/
H A Dntp_update_time.h51 static std::vector<std::string> SplitNtpAddrs(const std::string &ntpStr);
/ohos5.0/base/time/time_service/test/unittest/service_test/src/
H A Dtime_service_test.cpp1628 const std::string ntpStr = "aaa,bbb,ccc,ddd,eee,fff"; variable
1629 auto res = NtpUpdateTime::GetInstance().SplitNtpAddrs(ntpStr);