aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-19 13:31:06 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-19 13:31:06 -0800
commit644607c29fbb480b0d6fb95bb4ce3b1f9ed81276 (patch)
treeb0e0655d5d4028c3090dd065053d57208280f485 /common.h
parentb0a9a5a7561b2e163ac556e78e12c5ac245ada75 (diff)
Eliminate str2wcs
Diffstat (limited to 'common.h')
-rw-r--r--common.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/common.h b/common.h
index 184b3cf4..c9940236 100644
--- a/common.h
+++ b/common.h
@@ -206,36 +206,19 @@ void show_stackframe();
*/
int fgetws2(wcstring *s, FILE *f);
-/**
- Returns a newly allocated wide character string equivalent of the
- specified multibyte character string
-
- This function encodes illegal character sequences in a reversible
- way using the private use area.
-*/
-wchar_t *str2wcs(const char *in);
/**
- Returns a newly allocated wide character string equivalent of the
+ Returns a wide character string equivalent of the
specified multibyte character string
This function encodes illegal character sequences in a reversible
way using the private use area.
*/
wcstring str2wcstring(const char *in);
+wcstring str2wcstring(const char *in, size_t len);
wcstring str2wcstring(const std::string &in);
/**
- Converts the narrow character string \c in into it's wide
- equivalent, stored in \c out. \c out must have enough space to fit
- the entire string.
-
- This function encodes illegal character sequences in a reversible
- way using the private use area.
-*/
-wchar_t *str2wcs_internal(const char *in, wchar_t *out);
-
-/**
Returns a newly allocated multibyte character string equivalent of
the specified wide character string