3 Flexible ordering and equivalence based on character table
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Managing external tables for SWI-Prolog
        • Flexible ordering and equivalence based on character table
          • new_order_table/2
          • order_table_mapping/3
          • compare_strings/4
          • prefix_string/3
          • prefix_string/4
          • sub_string/3
Availability::- use_module(library(table)).(can be autoloaded)
prefix_string(+Table, +Prefix, -Rest, +String)
Succeeds if Prefix is a prefix of String using the named Table, and Rest is unified with the remainder of String that is not matched. Please note that the existence of an order-table implies simple contatenation using atom_concat/3 cannot be used to determine the non-matched part of the string.