MCPcopy Create free account
hub / github.com/couchbase/fleece / safeMid

Method safeMid

Fleece/Support/diff_match_patch.hh:2361–2363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2359 */
2360 private:
2361 static inline string_t safeMid(const string_t &str, size_t pos) {
2362 return (pos == str.length()) ? string_t() : str.substr(pos);
2363 }
2364
2365 /**
2366 * A safer version of string_t.mid(pos, len). This one returns "" instead of

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected