18.10.2014 Views

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

394 Appendix C<br />

function Slice (Source : <strong>in</strong> Bounded_Str<strong>in</strong>g;<br />

Low : <strong>in</strong> Positive;<br />

High : <strong>in</strong> Natural)<br />

return Str<strong>in</strong>g;<br />

function "=" (Left, Right : <strong>in</strong> Bounded_Str<strong>in</strong>g) return Boolean;<br />

function "=" (Left : <strong>in</strong> Bounded_Str<strong>in</strong>g; Right : <strong>in</strong> Str<strong>in</strong>g)<br />

return Boolean;<br />

function "=" (Left : <strong>in</strong> Str<strong>in</strong>g; Right : <strong>in</strong> Bounded_Str<strong>in</strong>g)<br />

return Boolean;<br />

function "=" (Left : <strong>in</strong> Str<strong>in</strong>g; Right : <strong>in</strong> Bounded_Str<strong>in</strong>g)<br />

return Boolean;<br />

--Search functions<br />

function Index (Source : <strong>in</strong> Bounded_Str<strong>in</strong>g;<br />

Pattern : <strong>in</strong> Str<strong>in</strong>g;<br />

Go<strong>in</strong>g : <strong>in</strong> Direction := Forward;<br />

Mapp<strong>in</strong>g : <strong>in</strong> Maps.Character_Mapp<strong>in</strong>g<br />

:= Maps.Identity)<br />

return Natural;<br />

function Index (Source : <strong>in</strong> Bounded_Str<strong>in</strong>g;<br />

Pattern : <strong>in</strong> Str<strong>in</strong>g;<br />

Go<strong>in</strong>g : <strong>in</strong> Direction := Forward;<br />

Mapp<strong>in</strong>g : <strong>in</strong> Maps.Character_Mapp<strong>in</strong>g_Function)<br />

return Natural;<br />

function Index (Source : <strong>in</strong> Bounded_Str<strong>in</strong>g;<br />

Set : <strong>in</strong> Maps.Character_Set;<br />

Test : <strong>in</strong> Membership := Inside;<br />

Go<strong>in</strong>g : <strong>in</strong> Direction := Forward)<br />

return Natural;<br />

function Index_Non_Blank (Source : <strong>in</strong> Bounded_Str<strong>in</strong>g;<br />

© M A Smith - May not be reproduced without permission

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!