| Did you know ... | Search Documentation: |
| The class PlCompound |
The PlCompound class is a convenience class for creating
a term from a string; it is similar to (=..)/2
syntax_error exception is raised. Otherwise a new
term-reference holding the parsed text is created. For the char*
and std::string forms enc gives the byte
encoding (see section 1.8.2).PlTermv for details. The functor
name is a program object and is interpreted as UTF-8, consistent with
PlFunctor (see section
1.11.10); unlike the text-parsing constructors above it takes no PlEncoding
argument. The example below creates the Prolog term hello(world).
PlCompound("hello", PlTermv(PlAtom("world")))