text: #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include <string_utils.h>
  
  char* short_string_to_string(const short_string_t* short_string) {
    char* result = calloc(short_string->length + 1, sizeof(char));
    if (result == NULL) {
      return NULL;
    }
  
    memcpy(result, short_string->data, short_string->length);
    return result;
  }
  
  void replace_char_in_place(char* src, char from, char to) {
    for (int i = 0; i < strlen(src); ++i) {
      if (src[i] == from) {
        src[i] = to;
      }
    }
  }
  
  void print_frame(int length) {
    for (int i = 0; i < length; ++i) {
      printf("-");
    }
    printf("\n");
  }
  
  const char* trim_string(const char* src, char symbol) {
    int i = 0;
    for (; i < strlen(src) && src[i] == symbol; ++i)
      ;
    return &(src[i]);
  }
  
  const char* rtrim_string(const char* src, char symbol) {
    int i = strlen(src);
    for (; i > 0 && src[i] == symbol; --i)
      ;
    return &(src[i]);
  }
  