Menu

Home

dmitry-kazakov

Welcome to your wiki!

This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses Markdown syntax.

Project Members:


Discussion

  • dmitry-kazakov

    dmitry-kazakov - 2014-07-26

    Tables may look like string to something maps, but they offer a bit more. The main difference is that a table can be matched against a string starting from specified position. The longest table token that matches is selected. For example, assuming that the table Tokens contains "List" and "Listener" then:

       Text    : String  := "Listener";
       Pointer : Integer := Text'First;
       Result  : ...;
    begin
       Get (Text, Pointer, Token, Result);
    

    Will match "Listener" and advance Pointer beyond its appearance in Text.

    Tables support case-sensitive and case-insensitive matching.

     
  • dmitry-kazakov

    dmitry-kazakov - 2019-09-15

    The new version add a variant of the procedure Get that does not raise exception when nothing matched returning a result code instead.

     

Log in to post a comment.