MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StrNot

Function StrNot

tensorflow/core/lib/strings/ordered_code_test.cc:298–303  ·  view source on GitHub ↗

Returns the bitwise complement of s.

Source from the content-addressed store, hash-verified

296
297// Returns the bitwise complement of s.
298inline string StrNot(const string& s) {
299 string result;
300 for (string::const_iterator it = s.begin(); it != s.end(); ++it)
301 result.push_back(~*it);
302 return result;
303}
304
305template <typename T>
306void TestInvalidEncoding(const string& s) {

Callers 1

TESTFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected