Close
Close window
Fence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

StringTools

Fence

Add fences to a string of text

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.

All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters. Thus, there is no support for multibyte character encodings, such as unicode encodings.

Examples

>

withStringTools:

>

Fencex+y,(,)

(x+y)

(1)
>

Fencex+y,{,}

{x+y}

(2)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /