MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / wiki_escape

Function wiki_escape

samples-index.py:86–93  ·  view source on GitHub ↗

Detect WikiSyntax (i.e. InterCaps, a.k.a. CamelCase) and escape it.

(s)

Source from the content-addressed store, hash-verified

84
85
86def wiki_escape(s):
87 """Detect WikiSyntax (i.e. InterCaps, a.k.a. CamelCase) and escape it."""
88 ret = []
89 for word in s.split():
90 if re.match(r"[A-Z]+[a-z]+[A-Z]", word):
91 word = "!%s" % word
92 ret.append(word)
93 return " ".join(ret)
94
95
96def context_from_sample(api, keywords, dirname, desc, uri):

Callers 2

context_from_sampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…