Ejemplo n.º 1
0
/**
 * Compare the sub string and the character string.
 */
int string_compare_substring_cstr(
    const string_t* cpstr_string, size_t t_firstpos, size_t t_firstlen, const char* s_cstr)
{
    bool_t t_result = false;

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

    return t_result;
}
Ejemplo n.º 2
0
/**
 * Compare the sub string and the character string.
 */
int string_compare_substring_cstr(
    const string_t* cpstr_string, size_t t_firstpos, size_t t_firstlen, const char* s_cstr)
{
    return basic_string_compare_substring_cstr(cpstr_string, t_firstpos, t_firstlen, s_cstr);
}