MCPcopy Create free account
hub / github.com/catboost/catboost / IsValidIPv6

Function IsValidIPv6

library/cpp/netliba/v12/udp_address.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace NNetliba_v12 {
16 bool IsValidIPv6(const char* str) {
17 const char* cur = str;
18 while (*cur && *cur != '%')
19 ++cur;
20 TString tmp(str, cur);
21 return TryParseIp6FromString(tmp.c_str()).Defined();
22 }
23
24 static bool ParseInetName(TUdpAddress* pRes, const char* name, int nDefaultPort, EUdpAddressType addressType) {
25 int nPort = nDefaultPort;

Callers 1

ParseInetNameFunction · 0.70

Calls 3

TryParseIp6FromStringFunction · 0.85
DefinedMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected