StringTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : WhiteSpace Utilities : StringTools/Fence

StringTools

  

Fence

  

Add fences to a string of text

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Fence( s, leftfence, rightfence)

Parameters

s

-

string; string to be fenced

leftfence

-

string; the fence to insert on the left of the string s

rightfence

-

string; the fence to insert on the right of the string s

Description

• 

The Fence procedure adds fences to both ends of a string s of text. The fenced text is returned.

Examples

withStringTools:

Fencex+y,(,)

(x+y)

(1)

Fencex+y,{,}

{x+y}

(2)

See Also

string

StringTools

StringTools[IsBalanced]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam