cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2636
Views
0
Helpful
0
Comments
James Hawkins
Level 8
Level 8

 

Document Overview

 

Unified Contact Center Express (UCCX) allows you to manipulate numbers stored in strings but how to do it is pretty poorly documented. This document gives a brief overview of how to modify the contents of a string using the substring function of the Cisco Unified CCX Expression Language.

 

The Cisco Unified CCX Expression Language

The Cisco Unified CCX Expression language is used by script developers to customize steps or variable values within Cisco Unified CCX scripts. The Expression Language borrows from the syntax of other languages such as C++, C, and Java. The language is described in the Cisco Unified Contact Center Express Expression Language Reference Guide.

 

The substring Function

The Cisco Unified CCX Expression Language uses strings in the same way Java uses them. For the Sun Java specification on strings, see http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html

.

 

The sections of the specification relating to the substring function is reproduced below.

<hr />

 

substring

 

public String substring(int beginIndex)

Returns a new string that is a substring of this string. The  substring begins with the character at the specified index and  extends to the end of this string.

Examples:

 "unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)

 

Parameters: beginIndex - the beginning index, inclusive. Returns: the specified substring. Throws: IndexOutOfBoundsException - if              beginIndex is negative or larger than the              length of this String object.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: