# lib_patch function library

Dependencies: install_sfo.tpa, lib_eff.tpa, lib_evaluate.tpa, lib_general.tpa, lib_internal.tpa, lib_itm.tpa, lib_list.tpa, lib_macro.tpa, lib_spl.tpa, lib_table.tpa, lib_text.tpa, lib_tools.tpa

## Description

## Public Functions

add_entry(at_end:i, arguments:s, this, is, a, patch, filename:s, file_ext:s, type:s)=(value//:s, always:s, 1:s) patch

add_entry_child(sec_index:i, arguments:s, check:s, checkGT:s, checkLT:s, match:s, entry_type:s, parent_type:s, match_parameter:s, filename:s, file_ext:s, at_end:s="0", insert_point:s="0", number_to_add:s="1", it's, still, a, ,, as, it, might, be, functional)=() patch

add_entry_inline(at_end:i, arguments:s, this, is, a, hash, file_ext:s, filename:s, type:s)=(value//:s, always:s, 1:s) patch

add_entry_notchild(arguments:s, check:s, checkGT:s, checkLT:s, match:s, match_parameter:s, filename:s, file_ext:s, entry_type:s, at_end:s="0", insert_point:s="0", number_to_add:s="1", it's, still, a, ,, as, it, might, be, functional)=() patch

apply_patches(offset_secondary:i, really_no_default:i, entry_index:i, parent_index:i, stop_after_match:i, offset_base:i, edits:s, arguments:s, file_ext:s, filename:s, is_conditional:s="no", a, bit, of, a, misnomer., We, really, mean:, is, it, being, called, by, one, of, patch_entry, etc., (If, so,, we, ignore, match, etc, commands))=(value//:s, 1:s, if:s, any:s, patch:s, is:s, made,:s, 0:s, otherwise:s) patch

apply_patches_inline(offset_secondary:i, offset_base:i, really_no_default:i, entry_index:i, editstring:s, arguments:s, file_ext:s, filename:s)=(value:s) patch

clone_entry(arguments:s, this, is, a, hash, file_ext:s, filename:s, type:s)=(value//:s, always:s, 1:s) patch

clone_entry_child(sec_index:i, arguments:s, check:s, clone_above:s=0, clone_at_top:s=0, clone_at_bottom:s=0, only_once:s=0, checkGT:s, checkLT:s, match:s, entry_type:s, parent_type:s, filename:s, file_ext:s, number_to_add:s="1", it's, still, a, ,, as, it, might, be, functional)=() patch

clone_entry_inline(arguments:s, this, is, a, hash, file_ext:s, filename:s, type:s)=(value//:s, always:s, 1:s) patch

clone_entry_notchild(clone_above:s=0, clone_at_top:s=0, clone_at_bottom:s=0, only_once:s=0, arguments:s, check:s, checkGT:s, checkLT:s, match:s, filename:s, file_ext:s, entry_type:s, number_to_add:s="1", it's, still, a, ,, as, it, might, be, functional)=() patch

delete_at_index(index:i, number_to_delete:i=1, entry_type:s)=(value:s) patch

delete_entry(arguments:s, filename:s, file_ext:s, type:s)=(value//:s, always:s, 1:s) patch

delete_entry_child(sec_index:i, arguments:s, entry_type:s, parent_type:s, filename:s, file_ext:s)=() patch

delete_entry_notchild(arguments:s, filename:s, file_ext:s, entry_type:s)=() patch

evaluate_condition(offset_secondary:i, offset_base:i, match:s="1", match_parameter:s, check:s, checkGT:s, checkLT:s, filename:s, file_ext:s)=(value:s) patch

increment_lookup_indices(offset_base:i, increment:i, entry_type:s, secondary_type:s)=() patch

increment_secondary_data(offset_base:i, ind_to_write:i, index:i=99999, number:i=99999, entry_type:s, secondary_type:s)=() patch

insert_copies_at_index(index:i, index_of_copy:i="-1", blank:i, num_to_copy:i, num_of_copies:i, entry_type:s)=(value:s) patch

patch_entry(stop_after_match:i, arguments:s, this, is, a, patch, filename:s, file_ext:s, type:s)=(value//:s, 1:s, if:s, any:s, patching:s, occurs:s) patch

patch_entry_child(sec_index:i, stop_after_match:i, arguments:s, check:s, checkGT:s, checkLT:s, match:s, match_parameter:s, entry_type:s, parent_type:s, filename:s, file_ext:s)=(value:s) patch

patch_entry_inline(stop_after_match:i, arguments:s, file_ext:s, filename:s, type:s)=(value:s) patch

patch_entry_notchild(stop_after_match:i, arguments:s, check:s, checkGT:s, checkLT:s, match:s, match_parameter:s, filename:s, file_ext:s, entry_type:s)=(value:s) patch

return_first_secondary_index(entry_type:s, secondary_type:s)=(value:s) patch

return_lowest_secondary_index(offset_base:i, entry_type:s, secondary_type:s)=(value:s) patch

return_secondary_data(offset_base:i, ind_to_, return:i, entry_type:s, secondary_type:s)=(index:s, number:s) patch

return_secondary_entry_count(offset_base:i, entry_type:s, secondary_type:s)=(value:s) patch

set_lookup_indices_of_type(offset_base:i, index:i, entry_type:s, secondary_type:s)=() patch

update_lookup_indices(offset_base:i, entry_type:s)=() patch

update_lookup_indices_of_type(offset_base:i, entry_type:s, secondary_type:s)=() patch

update_offsets(bytes_added:i, entry_type:s)=() patch