symbols-and-strings

Method summary
read-until string until-part &key start from-end &allow-other-keys
Function summary
derive-base-name-from-type type
downcase str
get-base-name name &key (remove-numeric-tail t) (remove-question-mark t)
get-next-id-number name
internal-symb &rest arguments
make-const &optional name (remove-numeric-tail t)
make-id &optional name
make-kw name
make-random-string &optional (length 30)
make-var &optional name
mkstr &rest arguments
read-file-as-string pathname
remove-numeric-tail name
replace-char string orig replacement
reset-id-counters
split string separator
string-replace str1 sub1 sub2
symb &rest arguments
upcase str
variable-p x
*default-id-base-name*    [Variable]
*default-var-id-base-name*    [Variable]
*default-const-id-base-name*    [Variable]
*default-sticker-name*    [Variable]
*nid-table*    [Variable]
read-until   string until-part &key start from-end &allow-other-keys  [Generic function]

Returns part of the string until the until-part is encountered.

get-next-id-number   name  [Function]

Return the next number to create the next unique id with the given name.

remove-numeric-tail   name  [Function]
get-base-name   name &key (remove-numeric-tail t) (remove-question-mark t)  [Function]

Return the base of the given name.

  • If base is a symbol then the base name is the symbol's name.

  • If base is a string then this string is the base name.

  • If remove-question-mark is true and the base name starts with a question-mark then this question-mark is removed from the base name.

  • If remove-numeric-tail is true and name is of the form 's-n', where s is a string of alphanumerical characters, and n is a string of numerical character, then the base is 's', i.e. the hyphen and trailing numerical characters are removed.

mkstr   &rest arguments  [Function]

Returns a string containing all arguments.

symb   &rest arguments  [Function]

Make a fresh, uninterned symbol with symbol-name (mkstr arguments).

internal-symb   &rest arguments  [Function]

Make and intern the symbol with symbol-name (mkstr arguments).

make-id   &optional name  [Function]

Create and return a unique numbered id, which is a symbol whose symbol-name consists of a name and a number.

make-var   &optional name  [Function]

Create and return a unique FCG variable symbol.

Note that if you have the choice between passing a string or a symbol as the argument to make-var, make-const or make-id, then pass it the string. If you pass it the symbol then the implementation will simply take the symbol-name from it further ignore the symbol.

make-kw   name  [Function]

takes a string, e.g. "test" and turns it into a symbol interned in the keyword package, e.g. :test

variable-p   x  [Function]

Test whether x is a variable, i.e. whether it is a symbol of which the name starts with a question mark.

make-const   &optional name (remove-numeric-tail t)  [Function]

Create and return a unique FCG constant symbol.

reset-id-counters    [Function]

Reset all the counters for the numbered ids.

derive-base-name-from-type   type  [Function]

Given a type in some form, return a string base name.

downcase   str  [Function]
upcase   str  [Function]
string-replace   str1 sub1 sub2  [Function]

Nondestructively replaces all occurences of sub1 in str1 by sub2

replace-char   string orig replacement  [Function]

Destructively replaces all occurrences of a character in a string by another one

read-file-as-string   pathname  [Function]
make-random-string   &optional (length 30)  [Function]

Generates and returns a random string length LENGTH. The string will consist solely of decimal digits and ASCII letters.

split   string separator  [Function]

Splits a string, taking the substrings between the separator.

E.g. (split 'ab,cd,ef' ',') yields '('ab' 'cd' 'ef')