String Functions

AddASCII

AfterAtNum

AllTrim
Asc

ASCIISum

ASCPos
At

AtAdjust

AtNum
AtRepl
AtToken

BeforAtNum

Chr

CharAdd
CharAnd
CharEven
CharHist
CharList
CharMirr
CharMix
CharNoList
CharNot
CharOdd
CharOne
CharOnly
CharOr
CharPix
CharRela
CharRelRep
CharRem
CharRepl
CharRLL
CharRLR
CharSHL
CharSHR
CharSList
CharSort
CharSub
CharSwap
CharWin
CharXOR

CountLeft
CountRight
Descend
Empty
hb_At
hb_RAt
hb_ValToStr
IsAlpha
IsDigit
IsLower
IsUpper

JustLeft
JustRight

Left
Len
Lower
LTrim

NumAt
NumToken
PadLeft
PadRight

PadC
PadL
PadR

POSALPHA
POSCHAR
POSDEL
POSDIFF
POSEQUAL
POSINS
POSLOWER
POSRANGE
POSREPL
POSUPPER

RangeRem
RangeRepl

RAt

RemAll

RemLeft
RemRight
ReplAll

Replicate

ReplLeft

ReplRight

RestToken

Right
RTrim

SaveToken

SetAtLike
Space
Str

StrDiff

StrFormat

StrSwap

StrTran
StrZero
SubStr

TabExpand
TabPack

Token

TokenAt
TokenEnd
TokenExit
TokenInit
TokenLower
TokenNext
TokenNum
TokenSep
TokenUpper

Transform
Trim
Upper
Val

ValPos
WordOne
WordOnly
WordRem
WordRepl
WordSwap

WordToChar


Lower()

LOWER()

Universally lowercases a character string expression.

Syntax

      LOWER( <cString> ) --> cLowerString

Arguments

<cString> Any character expression.

Returns

<cLowerString> Lowercased value of <cString>

Description

This function converts any character expression passes as <cString> to its lowercased representation. Any non alphabetic character withing <cString> will remain unchanged.

Examples

      ? LOWER( "HARBOUR" )      // harbour
      ? LOWER( "Hello All" )    // hello all

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

UPPER(), ISLOWER(), ISUPPER()

IsUpper()

ISUPPER()

Checks if leftmost character is an uppercased letter.

Syntax

      ISUPPER( <cString> ) --> lUpper

Arguments

<cString> Any character string

Returns

lUpper Logical true (.T.) or false (.F.).

Description

This function checks to see if the leftmost character if <cString> is a uppercased letter. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? ISUPPER( "Abcde" )    // .T.
      ? ISUPPER( "abcde" )    // .F.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISLOWER(), ISDIGIT(), LOWER(), UPPER()

IsLower()

ISLOWER()

Checks if leftmost character is an lowercased letter.

Syntax

      ISLOWER( <cString> ) --> lLower

Arguments

<cString> Any character string

Returns

lLower Logical true (.T.) or false (.F.).

Description

This function takes the character string <cString> and checks to see if the leftmost character is a lowercased letter. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? islower( "ABCde" )      // .F.
      ? islower( "aBCde" )      // .T.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISDIGIT(), ISUPPER(), LOWER(), UPPER()

IsDigit()

ISDIGIT()

Checks if leftmost character is a digit character

Syntax

      ISDIGIT( <cString> ) --> lDigit

Arguments

<cString> Any character string

Returns

lDigit Logical true (.T.) or false (.F.).

Description

This function takes the character string <cString> and checks to see if the leftmost character is a digit, from 1 to 9. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? ISDIGIT( "12345" )      // .T.
      ? ISDIGIT( "abcde" )      // .F.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISLOWER(), ISUPPER(), LOWER(), UPPER()

IsAlpha()

ISALPHA()

Checks if leftmost character in a string is an alphabetic character

Syntax

      ISALPHA( <cString> ) --> lAlpha

Arguments

<cString> Any character string

Returns

lAlpha Logical true (.T.) or false (.F.).

Description

This function return a logical true (.T.) if the first character in <cString> is an alphabetic character. If not, the function will return a logical false (.F.).

Examples

      ? 'isalpha( "hello" ) = ', isalpha( "hello" )
      ? 'isalpha( "12345" ) = ', isalpha( "12345" )

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISDIGIT(), ISLOWER(), ISUPPER(), LOWER(), UPPER()