add_str Subroutine

private pure subroutine add_str(me, str)

Append a string.

Type Bound

text_buffer

Arguments

Type IntentOptional Attributes Name
class(text_buffer), intent(inout) :: me
character(len=*), intent(in) :: str

Calls

proc~~add_str~~CallsGraph proc~add_str text_buffer%add_str proc~reserve text_buffer%reserve proc~add_str->proc~reserve

Called by

proc~~add_str~~CalledByGraph proc~add_str text_buffer%add_str proc~add_digits add_digits proc~add_digits->proc~add_str proc~add_real text_buffer%add_real proc~add_real->proc~add_str proc~add_real->proc~add_digits proc~add_real_array text_buffer%add_real_array proc~add_real_array->proc~add_str proc~add_real_list text_buffer%add_real_list proc~add_real_array->proc~add_real_list proc~add_real_list->proc~add_str proc~add_real_list->proc~add_real proc~segment_trajectory_json segment_trajectory_json proc~segment_trajectory_json->proc~add_str proc~segment_trajectory_json->proc~add_real_array proc~add_int text_buffer%add_int proc~segment_trajectory_json->proc~add_int proc~write_json_real_array write_json_real_array proc~write_json_real_array->proc~add_str proc~write_json_real_array->proc~add_real_list proc~add_int->proc~add_digits proc~export_trajectory_json_file mission_type%export_trajectory_json_file proc~export_trajectory_json_file->proc~segment_trajectory_json proc~generate_eclipse_data mission_type%generate_eclipse_data proc~generate_eclipse_data->proc~write_json_real_array proc~halo_solver_main halo_solver_main proc~halo_solver_main->proc~export_trajectory_json_file proc~halo_solver_main->proc~generate_eclipse_data

Source Code

    pure subroutine add_str(me, str)

    class(text_buffer),intent(inout) :: me
    character(len=*),intent(in) :: str

    call me%reserve(len(str))
    me%s(me%n+1:me%n+len(str)) = str
    me%n = me%n + len(str)

    end subroutine add_str