/*************************************************
 * Decompiled by Serious and Edited by SyndiShanX
 * Script: shared\string_shared.gsc
*************************************************/

#using scripts\shared\array_shared;
#namespace string;

function rfill(str_input, n_length, str_fill_char) {
  if(!isDefined(str_fill_char)) {
    str_fill_char = "";
  }
  if(str_fill_char == "") {
    str_fill_char = "";
  }
  assert(str_fill_char.size == 1, "");
  str_input = "" + str_input;
  n_fill_count = n_length - str_input.size;
  str_fill = "";
  if(n_fill_count > 0) {
    for(i = 0; i < n_fill_count; i++) {
      str_fill = str_fill + str_fill_char;
    }
  }
  return str_fill + str_input;
}