AdaCL.Wide_Wide_Strings

More...

Entities

Subprograms

Append_All
Append_All
Append_First
Append_First
Append_Last
Append_Last
Change_All
Change_All
Change_First
Change_First
Change_Last
Change_Last
Field_End
First_Word
Hash
Hash
Hash
Hash
Insert_All
Insert_All
Insert_First
Insert_First
Insert_Last
Insert_Last
Last_Word
Value

Description

No, I have not created some new Wide_Wide_String class - yet. Just a few string tools.

Append_All [source]

126 procedure Append_All
127 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
128 Search : in Wide_Wide_String;
129 New_Item : in Wide_Wide_String;
130 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for all occurences of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Append_All [source]

141 procedure Append_All
142 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
143 Search : in Wide_Wide_String;
144 New_Item : in Wide_Wide_String;
145 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
146 Count : out Natural);

Searches for all occurences of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Count of type Natural

Count of replaces done

Append_First [source]

156 procedure Append_First
157 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
158 Search : in Wide_Wide_String;
159 New_Item : in Wide_Wide_String;
160 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for first occurence of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Append_First [source]

171 procedure Append_First
172 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
173 Search : in Wide_Wide_String;
174 New_Item : in Wide_Wide_String;
175 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
176 Found : out Boolean);

Searches for first occurence of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Append_Last [source]

186 procedure Append_Last
187 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
188 Search : in Wide_Wide_String;
189 New_Item : in Wide_Wide_String;
190 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for last occurence of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Append_Last [source]

201 procedure Append_Last
202 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
203 Search : in Wide_Wide_String;
204 New_Item : in Wide_Wide_String;
205 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
206 Found : out Boolean);

Searches for last occurence of text "Search" and Inserts text "Insert" after the found text but only when "Insert" is not allready there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Change_All [source]

41 procedure Change_All
42 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
43 Search : in Wide_Wide_String;
44 Replace : in Wide_Wide_String;
45 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Replace all Search with Replace

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

Replace of type Wide_Wide_String

String we want to have

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Change_All [source]

55 procedure Change_All
56 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
57 Search : in Wide_Wide_String;
58 Replace : in Wide_Wide_String;
59 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
60 Count : out Natural);

Replace all Search with Replace and Count how often it was done.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

Replace of type Wide_Wide_String

String we want to have

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Count of type Natural

Count of replaces done

Change_First [source]

69 procedure Change_First
70 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
71 Search : in Wide_Wide_String;
72 Replace : in Wide_Wide_String;
73 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Replace all Search with Replace

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

Replace of type Wide_Wide_String

String we want to have

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Change_First [source]

83 procedure Change_First
84 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
85 Search : in Wide_Wide_String;
86 Replace : in Wide_Wide_String;
87 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
88 Found : out Boolean);

Replace First Search with Replace and return success flag.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

Replace of type Wide_Wide_String

String we want to have

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Change_Last [source]

97 procedure Change_Last
98 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
99 Search : in Wide_Wide_String;
100 Replace : in Wide_Wide_String;
101 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Replace Last Search with Replace

Source of type Unbounded_Wide_Wide_String

: String we look for

Search of type Wide_Wide_String

: String to be changed

Replace of type Wide_Wide_String

: String we want to have

Mapping of type Wide_Wide_Character_Mapping

: Search mapping

Change_Last [source]

111 procedure Change_Last
112 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
113 Search : in Wide_Wide_String;
114 Replace : in Wide_Wide_String;
115 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
116 Found : out Boolean);

Replace Last Search with Replace and return success flag.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

Replace of type Wide_Wide_String

String we want to have

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Field_End [source]

214 function Field_End
215 (Source : in Wide_Wide_String;
216 Field_Separator : in Wide_Wide_Character;
217 Starting_At : Positive)
218 return Natural with
219 Pure_Function;

Return the end-of-field position in Data after "Starting_Index", assuming that fields are separated by the Field_Separator. If there's no Field_Separator, return the end of the Data.

Source of type Wide_Wide_String

String to search in

Field_Separator of type Wide_Wide_Character

Field seperator.

Starting_At of type Positive

Start search at.

Return value

First_Word [source]

352 function First_Word
353 (Source : in Wide_Wide_String;
354 Delimiter : in Wide_Wide_Character := ' ')
355 return Wide_Wide_String with
356 Pure_Function;

Extract the first word.

Source of type Wide_Wide_String

String to search

Delimiter of type Wide_Wide_Character

word delimiter. Default is space.

Return value

Hash [source]

310 function Hash (Key : Wide_Wide_String) return Natural with
311 Pure_Function;

Hash function for booch components.

Key of type Wide_Wide_String

String to calculate a hash value form

Return value

hash value

Hash [source]

318 function Hash (Key : Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String) return Natural with
319 Pure_Function;

Hash function for booch components.

Key of type Unbounded_Wide_Wide_String

String to calculate a hash value form

Return value

hash value

Hash [source]

326 function Hash
327 (Key : Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String) return Ada.Containers.Hash_Type with
328 Pure_Function;

Hash function for Ada components.

Key of type Unbounded_Wide_Wide_String

String to calculate a hash value form

Return value

hash value

Hash [source]

335 function Hash (Key : Wide_Wide_String) return Ada.Containers.Hash_Type with
336 Pure_Function;

Hash function for Ada components.

Key of type Wide_Wide_String

String to calculate a hash value form

Return value

hash value

Insert_All [source]

256 procedure Insert_All
257 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
258 Search : in Wide_Wide_String;
259 New_Item : in Wide_Wide_String;
260 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for all occurences of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

Search mapping

Search of type Wide_Wide_String

String we want to insert

New_Item of type Wide_Wide_String

String we look for

Mapping of type Wide_Wide_Character_Mapping

String to be changed

Insert_All [source]

270 procedure Insert_All
271 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
272 Search : in Wide_Wide_String;
273 New_Item : in Wide_Wide_String;
274 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
275 Count : out Natural);

Searches for all occurences of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Count of type Natural

Count of replaces done

Insert_First [source]

228 procedure Insert_First
229 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
230 Search : in Wide_Wide_String;
231 New_Item : in Wide_Wide_String;
232 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for first occurence of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Insert_First [source]

242 procedure Insert_First
243 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
244 Search : in Wide_Wide_String;
245 New_Item : in Wide_Wide_String;
246 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
247 Found : out Boolean);

Searches for first occurence of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Insert_Last [source]

284 procedure Insert_Last
285 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
286 Search : in Wide_Wide_String;
287 New_Item : in Wide_Wide_String;
288 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity);

Searches for last occurence of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Insert_Last [source]

298 procedure Insert_Last
299 (Source : in out Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String;
300 Search : in Wide_Wide_String;
301 New_Item : in Wide_Wide_String;
302 Mapping : in Ada.Strings.Wide_Wide_Maps.Wide_Wide_Character_Mapping := Ada.Strings.Wide_Wide_Maps.Identity;
303 Found : out Boolean);

Searches for last occurence of text "Search" and Inserts text "Insert" bevore when "Insert" is there.

Source of type Unbounded_Wide_Wide_String

String to be changed

Search of type Wide_Wide_String

String we look for

New_Item of type Wide_Wide_String

String we want to insert

Mapping of type Wide_Wide_Character_Mapping

Search mapping

Found of type Boolean

Count of replaces done

Last_Word [source]

363 function Last_Word
364 (Source : in Wide_Wide_String;
365 Delimiter : in Wide_Wide_Character := ' ')
366 return Wide_Wide_String with
367 Pure_Function;

Extract the last word.

Source of type Wide_Wide_String

String to search

Delimiter of type Wide_Wide_Character

word delimiter. Default is space.

Return value

Value [source]

343 function Value (Image : Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String) return Integer with
344 Pure_Function;

convert Wide_Wide_String into Integer

Image of type Unbounded_Wide_Wide_String

String to to be shown as Integer

Return value

passed integer value