* src/vm/string.c, src/vm/stringlocal.h (java_string_new_char):
[cacao.git] / src / vm / string.c
index aa4c3c65048ecded80fba801001d0af6e653abad..9e230fb89842a2788006e416400899b373e3a7de 100644 (file)
@@ -30,7 +30,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: string.c 4872 2006-05-05 13:48:25Z edwin $
+   $Id: string.c 4874 2006-05-05 14:36:18Z edwin $
 
 */
 
@@ -361,16 +361,21 @@ java_lang_String *javastring_new_slash_to_dot(utf *u)
 }
 
 
-/* javastring_new_char *********************************************************
+/* javastring_new_from_ascii ***************************************************
 
-   creates a new java/lang/String object which contains the convertet
-   C-string passed via text.
+   creates a new java/lang/String object which contains the given ASCII
+   C-string converted to UTF-16.
 
-   return: the object pointer or NULL if memory is exhausted.
+   IN:
+      text.........string of ASCII characters
+
+   RETURN VALUE:
+      the java.lang.String object, or 
+      NULL if an exception has been thrown.
 
 *******************************************************************************/
 
-java_lang_String *javastring_new_char(const char *text)
+java_lang_String *javastring_new_from_ascii(const char *text)
 {
        s4 i;
        s4 len;                             /* length of the string               */