added a few string functions

This commit is contained in:
2010-09-02 07:19:59 +00:00
parent dc34e8f752
commit 6094a21e5e
2 changed files with 94 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: str.h 341 2010-08-04 07:25:48Z hyunghwan.chung $
* $Id: str.h 353 2010-09-01 13:19:59Z hyunghwan.chung $
*
Copyright 2006-2009 Chung, Hyung-Hwan.
This file is part of QSE.
@ -319,7 +319,16 @@ int qse_strxncmp (
qse_size_t len2
);
int qse_strcasecmp (const qse_char_t* s1, const qse_char_t* s2);
int qse_strcasecmp (
const qse_char_t* s1,
const qse_char_t* s2
);
int qse_strxcasecmp (
const qse_char_t* s1,
qse_size_t len,
const qse_char_t* s2
);
/**
* The qse_strxncasecmp() function compares characters at the same position
@ -461,6 +470,25 @@ qse_char_t* qse_strxrchr (
qse_cint_t c
);
/**
* The qse_strxword() function finds a whole word in a string.
*/
const qse_char_t* qse_strxword (
const qse_char_t* str,
qse_size_t len,
const qse_char_t* word
);
/**
* The qse_strxcaseword() function finds a whole word in a string
* case-insensitively.
*/
const qse_char_t* qse_strxcaseword (
const qse_char_t* str,
qse_size_t len,
const qse_char_t* word
);
/**
* The qse_strbeg() function checks if the a string begins with a substring.
* @return the pointer to a beginning of a matching beginning,