/usr/local/lib/swipl/library/strings.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl -- Apply predicates on a list
      • lists.pl
      • broadcast.pl -- Event service
      • shlib.pl
      • option.pl -- Option list processing
      • thread_pool.pl
      • gensym.pl -- Generate unique symbols
      • settings.pl -- Setting management
      • arithmetic.pl -- Extensible arithmetic
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl
      • random.pl
      • base64.pl
      • aggregate.pl
      • yall.pl
      • sandbox.pl -- Sandboxed Prolog code
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl -- Binary associations
      • prolog_format.pl
      • predicate_options.pl
      • csv.pl
      • pprint.pl
      • atom.pl
      • modules.pl -- Module utility predicates
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl
      • url.pl
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • rbtrees.pl
      • dif.pl
      • charsio.pl -- I/O on Lists of Character Codes
      • prolog_stack.pl -- Examine the Prolog stack
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl
      • dialect.pl
      • prolog_code.pl
      • sort.pl
      • iostream.pl -- Utilities to deal with streams
      • dicts.pl
      • varnumbers.pl
      • intercept.pl
      • listing.pl -- List programs and pretty print clauses
      • statistics.pl -- Get information about resource usage
      • terms.pl
      • base32.pl
      • codesio.pl
      • coinduction.pl
      • date.pl
      • heaps.pl -- heaps/priority queues
      • utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
      • when.pl
      • backcomp.pl
      • writef.pl -- Old-style formatted write
      • zip.pl -- Access resource ZIP archives
      • prolog_autoload.pl -- Autoload all dependencies
      • check.pl -- Consistency checking
      • strings.pl -- String utilities
        • string/4
        • interpolate_string/4
        • string_lines/2
        • dedent_lines/3
        • indent_lines/3
        • indent_lines/4
      • ctypes.pl -- Character code classification
      • quintus.pl
      • prolog_codewalk.pl -- Prolog code walker
      • help.pl
      • oset.pl
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • thread.pl
      • shell.pl
      • threadutil.pl -- Interactive thread utilities
      • increval.pl
      • tables.pl
      • prolog_profile.pl
      • prolog_coverage.pl
      • system.pl
      • explain.pl
      • hashtable.pl
      • portray_text.pl
      • persistency.pl
      • files.pl
      • prolog_metainference.pl
      • nb_set.pl
      • exceptions.pl
      • prolog_trace.pl
      • prolog_wrap.pl
 interpolate_string(:In, -Out, +Map, +Options)
Establish a string from a template by replacing patterns. Supported patterns are:
{Name}
If Map contains Name=Value, insert Value using write/1. If Name does not appear in Map, raise an existence error. Name must satisfy the rules for a Prolog variable.
{Name,Default}
As above, but if Name does not appear in Map, use Value
{@Goal}
Insert the output (to current_output) of Goal here. For safety reasons only accepted if Options contains goals(true)