Пример #1
0
/**
 * Compare the sub string and the sub character string.
 */
int string_compare_substring_subcstr(
    const string_t* cpstr_string, size_t t_firstpos, size_t t_firstlen, const char* s_cstr, size_t t_len)
{
    bool_t t_result = false;

    _basic_string_pop_back((basic_string_t*)cpstr_string);
    t_result = basic_string_compare_substring_subcstr(cpstr_string, t_firstpos, t_firstlen, s_cstr, t_len);
    basic_string_push_back((basic_string_t*)cpstr_string, '\0');

    return t_result;
}
Пример #2
0
/**
 * Compare the sub string and the sub character string.
 */
int string_compare_substring_subcstr(
    const string_t* cpstr_string, size_t t_firstpos, size_t t_firstlen, const char* s_cstr, size_t t_len)
{
    return basic_string_compare_substring_subcstr(cpstr_string, t_firstpos, t_firstlen, s_cstr, t_len);
}