return ji->method;
}
+/**
+ * mono_string_equal:
+ * @s1: First string to compare
+ * @s2: Second string to compare
+ *
+ * Returns FALSE if the strings differ.
+ */
gboolean
mono_string_equal (MonoString *s1, MonoString *s2)
{
return memcmp (mono_string_chars (s1), mono_string_chars (s2), l1 * 2) == 0;
}
+/**
+ * mono_string_hash:
+ * @s: the string to hash
+ *
+ * Returns the hash for the string.
+ */
guint
mono_string_hash (MonoString *s)
{
g_free (ut);
}
+/*
+ * FIXME: This routine does not seem to do what it seems to do
+ * the @text is never copied into the string builder
+ */
void
mono_string_utf16_to_builder (MonoStringBuilder *sb, gunichar2 *text)
{
sb->length = len;
}
+/**
+ * mono_string_builder_to_utf8:
+ * @sb: the string builder
+ *
+ * Converts to utf8 the contents of the MonoStringBuilder.
+ *
+ * Returns: a utf8 string with the contents of the StringBuilder.
+ *
+ * The return value must be released with g_free.
+ */
gpointer
mono_string_builder_to_utf8 (MonoStringBuilder *sb)
{
return res;
}
+/**
+ * mono_string_builder_to_utf16:
+ * @sb: the string builder
+ *
+ * Converts to utf16 the contents of the MonoStringBuilder.
+ *
+ * Returns: a utf16 string with the contents of the StringBuilder.
+ *
+ * The return value must not be freed.
+ */
gpointer
mono_string_builder_to_utf16 (MonoStringBuilder *sb)
{
#endif
}
+/**
+ * mono_string_to_byvalstr:
+ * @dst: Where to store the null-terminated utf8 decoded string.
+ * @src: the MonoString to copy.
+ * @size: the maximum number of bytes to copy.
+ *
+ * Copies the MonoString pointed to by @src as a utf8 string
+ * into @dst, it copies at most @size bytes into the destination.
+ */
void
mono_string_to_byvalstr (gpointer dst, MonoString *src, int size)
{
*((char *)dst + size - 1) = 0;
}
+/**
+ * mono_string_to_byvalwstr:
+ * @dst: Where to store the null-terminated utf16 decoded string.
+ * @src: the MonoString to copy.
+ * @size: the maximum number of bytes to copy.
+ *
+ * Copies the MonoString pointed to by @src as a utf16 string
+ * into @dst, it copies at most @size bytes into the destination.
+ */
void
mono_string_to_byvalwstr (gpointer dst, MonoString *src, int size)
{
}
/**
- * mono_string_interne:
+ * mono_string_intern:
* @o: String to intern
*
* Interns the string passed.
return descr;
#endif
}
+
+#if 0
+/**
+ * mono_string_chars:
+ * @s: a MonoString
+ *
+ * Returns a pointer to the UCS16 characters stored in the MonoString
+ */
+gunichar2 *
+mono_string_chars(MonoString *s)
+{
+ /* This method is here only for documentation extraction, this is a macro */
+}
+
+/**
+ * mono_string_length:
+ * @s: MonoString
+ *
+ * Returns the lenght in characters of the string
+ */
+int
+mono_string_length (MonoString *s)
+{
+ /* This method is here only for documentation extraction, this is a macro */
+}
+
+#endif