type Allegro_Ustr is limited record mlen : Integer; slen : Integer; data : C.Strings.chars_ptr; end record;
type A_Allegro_Ustr is access all Allegro_Ustr;
type Allegro_Ustr_Info is record mlen : Integer; slen : Integer; data : C.Strings.chars_ptr; end record;
type A_Allegro_Ustr_Info is access all Allegro_Ustr_Info;
function Al_Ustr_New
( | s | : String ) return A_Allegro_Ustr; |
function Al_Ustr_New_From_Buffer
( | s | : String ) return A_Allegro_Ustr; |
procedure Al_Ustr_Free
( | us | : in out A_Allegro_Ustr ); |
function Al_Cstr
( | us | : A_Allegro_Ustr ) return String; |
procedure Al_Ustr_To_Buffer
( | us | : A_Allegro_Ustr; |
buffer | : out String ); |
function Al_Cstr_Dup
( | us | : A_Allegro_Ustr ) return String; |
function Al_Ustr_Dup
( | us | : A_Allegro_Ustr ) return A_Allegro_Ustr; |
function Al_Ustr_Dup_Substr
( | us | : A_Allegro_Ustr; |
start_pos, end_pos | : Integer ) return A_Allegro_Ustr; |
function Al_Ustr_Empty_String return A_Allegro_Ustr;
function Al_Ref_Cstr
( | info | : access Allegro_Ustr_Info; |
s | : String ) return A_Allegro_Ustr; |
function Al_Ref_Buffer
( | info | : access Allegro_Ustr_Info; |
s | : String ) return A_Allegro_Ustr; |
function Al_Ref_Ustr
( | info | : access Allegro_Ustr_Info; |
us | : A_Allegro_Ustr; | |
start_pos, end_pos | : Integer ) return A_Allegro_Ustr; |
function Al_Ustr_Size
( | us | : A_Allegro_Ustr ) return C.size_t; |
function Al_Ustr_Length
( | us | : A_Allegro_Ustr ) return C.size_t; |
function Al_Ustr_Offset
( | us | : A_Allegro_Ustr; |
index | : Integer ) return Integer; |
function Al_Ustr_Next
( | us | : A_Allegro_Ustr; |
pos | : access Integer ) return Boolean; |
function Al_Ustr_Prev
( | us | : A_Allegro_Ustr; |
pos | : access Integer ) return Boolean; |
function Al_Ustr_Get
( | us | : A_Allegro_Ustr; |
pos | : Integer ) return Integer_32; |
function Al_Ustr_Get_Next
( | us | : A_Allegro_Ustr; |
pos | : access Integer ) return Integer_32; |
function Al_Ustr_Prev_Get
( | us | : A_Allegro_Ustr; |
pos | : access Integer ) return Integer_32; |
function Al_Ustr_Insert
( | us1 | : A_Allegro_Ustr; |
pos | : Integer; | |
us2 | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Insert_Cstr
( | us | : A_Allegro_Ustr; |
pos | : Integer; | |
us2 | : String ) return Boolean; |
function Al_Ustr_Insert_Chr
( | us | : A_Allegro_Ustr; |
pos | : Integer; | |
chr | : Integer_32 ) return C.size_t; |
function Al_Ustr_Append
( | us1, us2 | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Append_Cstr
( | us | : A_Allegro_Ustr; |
s | : String ) return Boolean; |
function Al_Ustr_Append_Chr
( | us | : A_Allegro_Ustr; |
chr | : Integer_32 ) return C.size_t; |
function Al_Ustr_Remove_Chr
( | us | : A_Allegro_Ustr; |
pos | : Integer ) return Boolean; |
function Al_Ustr_Remove_Range
( | us | : A_Allegro_Ustr; |
start_pos, end_pos | : Integer ) return Boolean; |
function Al_Ustr_Truncate
( | us | : A_Allegro_Ustr; |
start_pos | : Integer ) return Boolean; |
function Al_Ustr_Ltrim_Ws
( | us | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Rtrim_Ws
( | us | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Trim_Ws
( | us | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Assign
( | us1, us2 | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Assign_Substr
( | us1, us2 | : A_Allegro_Ustr; |
start_pos, end_pos | : Integer ) return Boolean; |
function Al_Ustr_Assign_Cstr
( | us1 | : A_Allegro_Ustr; |
s | : String ) return Boolean; |
function Al_Ustr_Set_Chr
( | us | : A_Allegro_Ustr; |
pos | : Integer; | |
chr | : Integer_32 ) return C.size_t; |
function Al_Ustr_Replace_Range
( | us1 | : A_Allegro_Ustr; |
start_pos1, end_pos1 | : Integer; | |
us2 | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Find_Chr
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
c | : Integer_32 ) return Integer; |
function Al_Ustr_Rfind_Chr
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
c | : Integer_32 ) return Integer; |
function Al_Ustr_Find_Set
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
acceptChrs | : A_Allegro_Ustr ) return Integer; |
function Al_Ustr_Find_Set_Cstr
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
acceptChrs | : String ) return Integer; |
function Al_Ustr_Find_Cset
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
reject | : A_Allegro_Ustr ) return Integer; |
function Al_Ustr_Find_Cset_Cstr
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
reject | : String ) return Integer; |
function Al_Ustr_Find_Str
( | haystack | : A_Allegro_Ustr; |
start_pos | : Integer; | |
needle | : A_Allegro_Ustr ) return Integer; |
function Al_Ustr_Find_Cstr
( | haystack | : A_Allegro_Ustr; |
start_pos | : Integer; | |
needle | : String ) return Integer; |
function Al_Ustr_Rfind_Str
( | haystack | : A_Allegro_Ustr; |
start_pos | : Integer; | |
needle | : A_Allegro_Ustr ) return Integer; |
function Al_Ustr_Rfind_Cstr
( | haystack | : A_Allegro_Ustr; |
start_pos | : Integer; | |
needle | : String ) return Integer; |
function Al_Ustr_Find_Replace
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
find | : A_Allegro_Ustr; | |
replace | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Find_Replace_Cstr
( | us | : A_Allegro_Ustr; |
start_pos | : Integer; | |
find | : String; | |
replace | : String ) return Boolean; |
function Al_Ustr_Equal
( | us1, us2 | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Compare
( | u, v | : A_Allegro_Ustr ) return Integer; |
function Al_Ustr_Ncompare
( | us1, us2 | : A_Allegro_Ustr; |
n | : Integer ) return Integer; |
function Al_Ustr_Has_Prefix
( | u, v | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Has_Prefix_Cstr
( | u | : A_Allegro_Ustr; |
s | : String ) return Boolean; |
function Al_Ustr_Has_Suffix
( | u, v | : A_Allegro_Ustr ) return Boolean; |
function Al_Ustr_Has_Suffix_Cstr
( | us1 | : A_Allegro_Ustr; |
s | : String ) return Boolean; |
function Al_Ustr_New_From_Utf16
( | s | : Wide_String ) return A_Allegro_Ustr; |
function Al_Ustr_Size_Utf16
( | us | : A_Allegro_Ustr ) return C.size_t; |
procedure Al_Ustr_Encode_Utf16
( | us | : A_Allegro_Ustr; |
s | : out Wide_String; | |
size | : out C.size_t ); |