Home
last modified time | relevance | path

Searched refs:StringEndsWith (Results 1 – 4 of 4) sorted by relevance

/openthread-latest/tests/unit/
Dtest_string.cpp237 VerifyOrQuit(StringEndsWith("FooBar", 'r')); in TestStringEndsWith()
238 VerifyOrQuit(!StringEndsWith("FooBar", 'a')); in TestStringEndsWith()
239 VerifyOrQuit(!StringEndsWith("FooBar", '\0')); in TestStringEndsWith()
240 VerifyOrQuit(StringEndsWith("a", 'a')); in TestStringEndsWith()
241 VerifyOrQuit(!StringEndsWith("a", 'b')); in TestStringEndsWith()
243 VerifyOrQuit(StringEndsWith("FooBar", "Bar")); in TestStringEndsWith()
244 VerifyOrQuit(!StringEndsWith("FooBar", "Ba")); in TestStringEndsWith()
245 VerifyOrQuit(StringEndsWith("FooBar", "FooBar")); in TestStringEndsWith()
246 VerifyOrQuit(!StringEndsWith("FooBar", "FooBarr")); in TestStringEndsWith()
248 VerifyOrQuit(!StringEndsWith("", 'a')); in TestStringEndsWith()
[all …]
/openthread-latest/src/core/common/
Dstring.hpp133 bool StringEndsWith(const char *aString, char aChar);
145 bool StringEndsWith(const char *aString, const char *aSubString, StringMatchMode aMode = kStringExa…
Dstring.cpp146 bool StringEndsWith(const char *aString, char aChar) in StringEndsWith() function
153 bool StringEndsWith(const char *aString, const char *aSubString, StringMatchMode aMode) in StringEndsWith() function
/openthread-latest/src/core/net/
Ddnssd_server.cpp1244 OT_ASSERT(StringEndsWith(aServiceFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1245 OT_ASSERT(StringEndsWith(aInstanceInfo.mFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1246 OT_ASSERT(StringEndsWith(aInstanceInfo.mHostName, Name::kLabelSeparatorChar)); in HandleDiscoveredServiceInstance()
1287 OT_ASSERT(StringEndsWith(aHostFullName, Name::kLabelSeparatorChar)); in HandleDiscoveredHost()