Wafl Home

Primitive Data Types Tutorial

String Functions

Wafl library contains the following string functions:

ifNull :          (String * String -> String)
isNull :          (String -> Bool)
strCat :          (String * String -> String)
strEncodeHtml :   (String -> String)
strEncodeSql :    (String -> String)
strEncodeUri :    (String -> String)
strJoin :         (List[String] * String -> String)
strLTrim :        (String -> String)
strLastPos :      (String * String -> Integer)
strLastPosI :     (String * String -> Integer)
strLeft :         (String * Integer -> String)
strLen :          (String -> Integer)
strLowerCase :    (String -> String)
strNextLastPos :  (String * String * Integer -> Integer)
strNextLastPosI : (String * String * Integer -> Integer)
strNextPos :      (String * String * Integer -> Integer)
strNextPosI :     (String * String * Integer -> Integer)
strPos :          (String * String -> Integer)
strPosI :         (String * String -> Integer)
strRTrim :        (String -> String)
strReplace :      (String * String * String * Integer -> String)
strReplaceAll :   (String * String * String -> String)
strReplaceAllI :  (String * String * String -> String)
strReplaceI :     (String * String * String * Integer -> String)
strReverse :      (String -> String)
strRight :        (String * Integer -> String)
strSplit :        (String * String -> List[String])
strTrim :         (String -> String)
strUpperCase :    (String -> String)
subStr :          (String * Integer * Integer -> String)

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.