MCPcopy Create free account
hub / github.com/ElementsProject/elements / find_between

Function find_between

build_msvc/msvc-autogen.py:61–67  ·  view source on GitHub ↗
( s, first, last )

Source from the content-addressed store, hash-verified

59
60def parse_config_into_btc_config():
61 def find_between( s, first, last ):
62 try:
63 start = s.index( first ) + len( first )
64 end = s.index( last, start )
65 return s[start:end]
66 except ValueError:
67 return ""
68
69 config_info = []
70 with open(os.path.join(SOURCE_DIR,'../configure.ac'), encoding="utf8") as f:

Callers 1

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected