str_char

BAP Online Manuals : Library Reference : Library by Name : str_char
Previous: shiftwindow
Next: str_int

6.2.125. str_char

converts a string into a character or vice versa

SYNOPSIS

str_char("c",Char)
str_char(Str,`s)

SYNTAX

str_char(String,Char) (i,x) (x,i)

ARGUMENTS

string(string) (x) string containing only the character Char
char(Char) (x) character representing the character in string

DESCRIPTION

Converts a string into a character or vice versa. If string is bound, it must have length 1 for the predicate to succeed.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

frontchar , prologtoken


BAP Online Manuals : Library Reference : Library by Name : str_char
Previous: shiftwindow
Next: str_int