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

Function FindAndCut

tensorflow/java/src/gen/cc/op_specs.cc:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool FindAndCut(string* input, const RE2& expr, string* before_match,
189 string* ret_match = nullptr) {
190 string match;
191 if (!RE2::PartialMatch(*input, expr, &match)) return false;
192 *before_match = input->substr(0, input->find(match));
193 *input = input->substr(before_match->size() + match.size());
194 if (ret_match != nullptr) *ret_match = match;
195 return true;
196}
197
198string ParseDocumentation(const string& inp) {
199 std::stringstream javadoc_text;

Callers 1

ParseDocumentationFunction · 0.85

Calls 2

findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected