MCPcopy Create free account
hub / github.com/Singular/Singular / encode

Method encode

Singular/dyn_modules/openmath/context.py:139–141  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

137 self.re_inner=compile("&")
138 self.re_outer=compile("<")
139 def encode(self, string):
140 #return sub("<","&lt;",sub("&","&amp;",string))
141 return self.re_outer.sub("&lt", self.re_inner.sub("&amp", string))
142class Scope(object):
143 def __init__(self):
144 self.dicts=[]

Callers 8

XMLEncodeBodyMethod · 0.80
test_read.pyFile · 0.80
assertEncodeDecodeOKMethod · 0.80
saveMethod · 0.80
getImpsurfCodeMethod · 0.80
triangulateMethod · 0.80
closeSurfexMethod · 0.80
surfWebMethod · 0.80

Calls 1

subMethod · 0.80

Tested by

no test coverage detected