diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 02:33:42 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 02:33:42 -0700 |
commit | 9bcc7df96f2e40e54fb1cebdb6df5de4139b0ed9 (patch) | |
tree | 20445bda332b490515445acee5a7c79a45ed1db8 /common.h | |
parent | 4bd63020ca897b4b65d74469a0036451a2e23fa4 (diff) |
Lots of modernization changed
Removed wcsdupcat
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 22 |
1 files changed, 1 insertions, 21 deletions
@@ -180,10 +180,6 @@ extern const wchar_t *program_name; Check if the specified stringelement is a part of the specified string list */ #define contains( str,... ) contains_internal( str, __VA_ARGS__, NULL ) -/** - Concatenate all the specified strings into a single newly allocated one - */ -#define wcsdupcat( str,... ) wcsdupcat_internal( str, __VA_ARGS__, NULL ) /** Print a stack trace to stderr @@ -251,6 +247,7 @@ std::string wcs2string(const wcstring &input); /** Test if a string prefixes another. Returns true if a is a prefix of b */ bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value); +bool string_prefixes_string(const wchar_t *proposed_prefix, const wcstring &value); /** Test if a string prefixes another without regard to case. Returns true if a is a prefix of b */ bool string_prefixes_string_case_insensitive(const wcstring &proposed_prefix, const wcstring &value); @@ -521,23 +518,6 @@ void append_format(wcstring &str, const wchar_t *format, ...); char **wcsv2strv( const wchar_t * const *in ); /** - Returns a newly allocated multibyte character string array equivalent of the specified wide character string array -*/ -wchar_t **strv2wcsv( const char **in ); - - -/** - Returns a newly allocated concatenation of the specified wide - character strings. The last argument must be a null pointer. -*/ -__sentinel wchar_t *wcsdupcat_internal( const wchar_t *a, ... ); - -/** - Test if the given string is a valid variable name -*/ - - -/** Test if the given string is a valid variable name. \return null if this is a valid name, and a pointer to the first invalid character otherwise |