![]() |
![]() |
![]() |
Seed Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
SeedStringSeedString — Manipulation of SeedString objects. |
#include <seed/seed.h> typedef SeedString; SeedString seed_string_ref (SeedString string); void seed_string_unref (SeedString string); gsize seed_string_get_maximum_size (SeedString string); gsize seed_string_to_utf8_buffer (SeedString string, gchar *buffer, size_t buffer_size); gboolean seed_string_is_equal (SeedString a, SeedString b); gboolean seed_string_is_equal_utf8 (SeedString a, const gchar *b);
SeedString seed_string_ref (SeedString string);
Increments the reference count of string
.
|
A SeedString. |
Returns : |
string
|
void seed_string_unref (SeedString string);
Decrements the reference count of string
.
|
A SeedString. |
gsize seed_string_get_maximum_size (SeedString string);
|
A SeedString. |
Returns : |
The maximum number of bytes string will take up if converted
to a null-terminated UTF8 string.
|
gsize seed_string_to_utf8_buffer (SeedString string, gchar *buffer, size_t buffer_size);
|
A SeedString. |
|
An allocated string. |
|
The length of buffer , in bytes.
|
Returns : |
A the number of bytes copied into buffer .
|
gboolean seed_string_is_equal (SeedString a, SeedString b);
|
The first SeedString to compare. |
|
The second SeedString to compare. |
Returns : |
true, if a and b are equal, false otherwise. |
gboolean seed_string_is_equal_utf8 (SeedString a, const gchar *b);
Tests the equality of a SeedString and a UTF-8 C-style string.
|
The SeedString to compare. |
|
A gchar* to compare to. |
Returns : |
true, if a and b are equal, false otherwise. |