cstrings.occ

This suite of routines supports c-like nul-terminated strings. Fixed length arrays of bytes are used. The general approach is to allow strings to overflow without causing error.


FUNCTION isSpace

BOOL FUNCTION isSpace (VAL BYTE ch)


FUNCTION isNotSpace

BOOL FUNCTION isNotSpace (VAL BYTE ch)


FUNCTION charEqAny

BOOL FUNCTION charEqAny (VAL BYTE a, b)


FUNCTION charToUpper

BYTE FUNCTION charToUpper (VAL BYTE c)


FUNCTION charToLower

BYTE FUNCTION charToLower (VAL BYTE c)


FUNCTION strLen

INT FUNCTION strLen (VAL []BYTE c.string)


FUNCTION strEq

BOOL FUNCTION strEq (VAL []BYTE st1, st2)


FUNCTION strEqAny

BOOL FUNCTION strEqAny (VAL []BYTE st1, st2)


FUNCTION strLocate

INT FUNCTION strLocate (VAL []BYTE x, test)


FUNCTION strLocateAny

INT FUNCTION strLocateAny (VAL []BYTE x, test)


PROC strCpy

PROC strCpy ([]BYTE c.string, VAL []BYTE value)


PROC strCat

PROC strCat ([]BYTE c.string, VAL []BYTE value)


PROC strChop

PROC strChop ([]BYTE left, right, VAL []BYTE s, VAL BYTE cut)


PROC strChop2

PROC strChop2 ([]BYTE inside, VAL []BYTE s, VAL BYTE cut1, cut2)


PROC strSubstitute

PROC strSubstitute ([]BYTE s, VAL []BYTE search, replace)


PROC strToUpper

PROC strToUpper ([]BYTE string)


PROC strToLower

PROC strToLower ([]BYTE string)


PROC strCpyWords

PROC strCpyWords ([]BYTE word, VAL []BYTE string, VAL INT from, for)


PROC strSplit

PROC strSplit ([]BYTE word, VAL []BYTE string, VAL INT i, VAL BYTE split)


Generated by occam2html.