Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gnat.string_split_basic_usage_example [2011/12/28 17:12]
thomaslocke created
gnat.string_split_basic_usage_example [2012/03/06 22:21] (current)
cvanvliet fixed a few grammar erros
Line 24: Line 24:
 =====  The GNAT.String_Split Solution ​ ===== =====  The GNAT.String_Split Solution ​ =====
  
-Lets dive straight into the code necessary to solve our string split problem. Create a file named //​explode.adb//​ and add this to it:+Let'​s ​dive straight into the code necessary to solve our string split problem. Create a file named //​explode.adb//​ and add this to it:
  
 <code ada> <code ada>
Line 189: Line 189:
 </​code>​ </​code>​
  
-That line is responsible for the "6 part of the output. What it does is transform the //Integer// value //6// into the //String// value "​6",​ and it does so using the //Image// [[http://​en.wikibooks.org/​wiki/​Ada_Programming/​Attributes#​List_of_language_defined_attributes|attribute]]. //​String_Split.Slice_Count (Subs)// return a //​Slice_Number//​ type, which is basically just an //Integer// with a value >=0, and //Image// then convert this to a //String// suitable for output.+That line is responsible for the "6" ​part of the output. What it does is transform the //Integer// value //6// into the //String// value "​6",​ and it does so using the //Image// [[http://​en.wikibooks.org/​wiki/​Ada_Programming/​Attributes#​List_of_language_defined_attributes|attribute]]. //​String_Split.Slice_Count (Subs)// return a //​Slice_Number//​ type, which is basically just an //Integer// with a value >=0, and //Image// then convert this to a //String// suitable for output.
  
 <code ada> <code ada>

Navigation