Пример #1
0
/**
 * Find sub character string in string.
 */
size_t string_find_subcstr(const string_t* cpstr_string, const char* s_cstr, size_t t_pos, size_t t_len)
{
    size_t t_findpos = NPOS;

    _basic_string_pop_back((string_t*)cpstr_string);
    t_findpos = basic_string_find_subcstr(cpstr_string, s_cstr, t_pos, t_len);
    basic_string_push_back((string_t*)cpstr_string, '\0');

    return t_findpos;
}
Пример #2
0
/**
 * Find sub character string in string.
 */
size_t string_find_subcstr(const string_t* cpstr_string, const char* s_cstr, size_t t_pos, size_t t_len)
{
    return basic_string_find_subcstr(cpstr_string, s_cstr, t_pos, t_len);
}