Functions | |
def | main (argv) |
def | ReplaceStringsInFile (filename, replacement_dict) |
def | StripContentBetweenTags (filename, strip_begin_tag, strip_end_tag) |
def create_lts.main | ( | argv | ) |
Definition at line 87 of file abseil-cpp/create_lts.py.
def create_lts.ReplaceStringsInFile | ( | filename, | |
replacement_dict | |||
) |
Performs textual replacements in a file. Rewrites filename with the keys in replacement_dict replaced with their values. This function assumes the file can fit in memory. Args: filename: the filename to perform the replacement on replacement_dict: a dictionary of key strings to be replaced with their values Raises: Exception: A failure occured
Definition at line 24 of file abseil-cpp/create_lts.py.
def create_lts.StripContentBetweenTags | ( | filename, | |
strip_begin_tag, | |||
strip_end_tag | |||
) |
Strip contents from a file. Rewrites filename with by removing all content between strip_begin_tag and strip_end_tag, including the tags themselves. Args: filename: the filename to perform the replacement on strip_begin_tag: the start of the content to be removed strip_end_tag: the end of the content to be removed Raises: Exception: A failure occured
Definition at line 53 of file abseil-cpp/create_lts.py.