MCPcopy Create free account
hub / github.com/IncideDigital/Mistica / replace

Method replace

utils/bitstring.py:3304–3369  ·  view source on GitHub ↗

Replace all occurrences of old with new in place. Returns number of replacements made. old -- The bitstring to replace. new -- The replacement bitstring. start -- Any occurrences that start before this will not be replaced. Defaults to 0. en

(self, old, new, start=None, end=None, count=None,
                bytealigned=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

_setbin_safeMethod · 0.80
_setoctMethod · 0.80
_sethexMethod · 0.80
parse_rdata_entriesMethod · 0.80
extractFromSubdomainMethod · 0.80
parseFromURIMethod · 0.80

Calls 7

BitsClass · 0.85
_validate_sliceMethod · 0.80
splitMethod · 0.80
copyMethod · 0.80
appendMethod · 0.80
reverseMethod · 0.80
_assertsanityMethod · 0.80

Tested by

no test coverage detected