|
@@ -1432,7 +1432,7 @@ typedef void (*GDExtensionInterfaceStringNewWithWideChars)(GDExtensionUninitiali
|
|
*
|
|
*
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param p_contents A pointer to a Latin-1 encoded C string.
|
|
* @param p_contents A pointer to a Latin-1 encoded C string.
|
|
- * @param p_size The number of characters.
|
|
|
|
|
|
+ * @param p_size The number of characters (= number of bytes).
|
|
*/
|
|
*/
|
|
typedef void (*GDExtensionInterfaceStringNewWithLatin1CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size);
|
|
typedef void (*GDExtensionInterfaceStringNewWithLatin1CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size);
|
|
|
|
|
|
@@ -1444,7 +1444,7 @@ typedef void (*GDExtensionInterfaceStringNewWithLatin1CharsAndLen)(GDExtensionUn
|
|
*
|
|
*
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param p_contents A pointer to a UTF-8 encoded C string.
|
|
* @param p_contents A pointer to a UTF-8 encoded C string.
|
|
- * @param p_size The number of characters.
|
|
|
|
|
|
+ * @param p_size The number of bytes (not code units).
|
|
*/
|
|
*/
|
|
typedef void (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size);
|
|
typedef void (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char *p_contents, GDExtensionInt p_size);
|
|
|
|
|
|
@@ -1456,9 +1456,9 @@ typedef void (*GDExtensionInterfaceStringNewWithUtf8CharsAndLen)(GDExtensionUnin
|
|
*
|
|
*
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param p_contents A pointer to a UTF-16 encoded C string.
|
|
* @param p_contents A pointer to a UTF-16 encoded C string.
|
|
- * @param p_size The number of characters.
|
|
|
|
|
|
+ * @param p_size The number of characters (not bytes).
|
|
*/
|
|
*/
|
|
-typedef void (*GDExtensionInterfaceStringNewWithUtf16CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char16_t *p_contents, GDExtensionInt p_size);
|
|
|
|
|
|
+typedef void (*GDExtensionInterfaceStringNewWithUtf16CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char16_t *p_contents, GDExtensionInt p_char_count);
|
|
|
|
|
|
/**
|
|
/**
|
|
* @name string_new_with_utf32_chars_and_len
|
|
* @name string_new_with_utf32_chars_and_len
|
|
@@ -1468,9 +1468,9 @@ typedef void (*GDExtensionInterfaceStringNewWithUtf16CharsAndLen)(GDExtensionUni
|
|
*
|
|
*
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param p_contents A pointer to a UTF-32 encoded C string.
|
|
* @param p_contents A pointer to a UTF-32 encoded C string.
|
|
- * @param p_size The number of characters.
|
|
|
|
|
|
+ * @param p_size The number of characters (not bytes).
|
|
*/
|
|
*/
|
|
-typedef void (*GDExtensionInterfaceStringNewWithUtf32CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char32_t *p_contents, GDExtensionInt p_size);
|
|
|
|
|
|
+typedef void (*GDExtensionInterfaceStringNewWithUtf32CharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const char32_t *p_contents, GDExtensionInt p_char_count);
|
|
|
|
|
|
/**
|
|
/**
|
|
* @name string_new_with_wide_chars_and_len
|
|
* @name string_new_with_wide_chars_and_len
|
|
@@ -1480,9 +1480,9 @@ typedef void (*GDExtensionInterfaceStringNewWithUtf32CharsAndLen)(GDExtensionUni
|
|
*
|
|
*
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param r_dest A pointer to a Variant to hold the newly created String.
|
|
* @param p_contents A pointer to a wide C string.
|
|
* @param p_contents A pointer to a wide C string.
|
|
- * @param p_size The number of characters.
|
|
|
|
|
|
+ * @param p_size The number of characters (not bytes).
|
|
*/
|
|
*/
|
|
-typedef void (*GDExtensionInterfaceStringNewWithWideCharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const wchar_t *p_contents, GDExtensionInt p_size);
|
|
|
|
|
|
+typedef void (*GDExtensionInterfaceStringNewWithWideCharsAndLen)(GDExtensionUninitializedStringPtr r_dest, const wchar_t *p_contents, GDExtensionInt p_char_count);
|
|
|
|
|
|
/**
|
|
/**
|
|
* @name string_to_latin1_chars
|
|
* @name string_to_latin1_chars
|