cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
365
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Gregory Burton on 18-03-2009 05:54:37 PM
does anyone have any code examples of breaking up a string value by using sub-stringing.  Trying to break up SSN, Phone # and inserting spaces to compensate for a CVP bug preventing Say it smart from working without TTS.  thanks

Subject: Re: New Message from Gregory Burton in Customer Voice Portal (CVP) - CVP -
Replied by: Janine Graves on 18-03-2009 06:10:00 PM
are you trying to do a substring, or a string replace?

Cisco Developer Community Forums wrote:
> Gregory Burton has created a new message in the forum "CVP - All
> Versions":
>
> --------------------------------------------------------------
> does anyone have any code examples of breaking up a string value by
> using sub-stringing.  Trying to break up SSN, Phone # and inserting
> spaces to compensate for a CVP bug preventing Say it smart from
> working without TTS.  thanks
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/1195098>
>
> or simply reply to this email.

Subject: RE: Re: New Message from Gregory Burton in Customer Voice Portal (CVP&
Replied by: Gregory Burton on 18-03-2009 06:13:10 PM
As example, trying to take value of ssn to parse out position 1-3, 4-5, 6-9 into seperate vars.  then create my audio element with digit by digit for each of the group of three with dead air between the three. Or at least do the parsing within the audio element....

Subject: Re: New Message from Gregory Burton in Customer Voice Portal (CVP) - CVP -
Replied by: Janine Graves on 18-03-2009 07:08:57 PM
If you post your email address, I can send you a substring element -
it's not production ready, but better than nothing.
Do you know java?

Janine
www.TrainingTheExperts.com


Cisco Developer Community Forums wrote:
> Gregory Burton has created a new message in the forum "CVP - All
> Versions":
>
> --------------------------------------------------------------
> As example, trying to take value of ssn to parse out position 1-3,
> 4-5, 6-9 into seperate vars.  then create my audio element with digit
> by digit for each of the group of three with dead air between the three.
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/1195114>
>
> or simply reply to this email.

Subject: RE: Re: New Message from Gregory Burton in Customer Voice Portal (CVP&
Replied by: Gregory Burton on 18-03-2009 11:59:48 PM
[email protected]
 
Thanks!!!

Subject: RE: Re: New Message from Gregory Burton in Customer Voice Portal (CVP&
Replied by: Gregory Burton on 16-04-2009 09:15:56 PM
Janine, by chance do you have a class file that gives me back the length of a string value?

Subject: RE: Re: New Message from Gregory Burton in Customer Voice Portal (CVP&
Replied by: James Heffernan on 03-06-2009 12:35:32 AM
Hi,
I've got a couple of classes you can use, one for string length, the other to substring a string value (you can set the start point to be one of "String_Start","Mid", or "End", if "End" then the last nn chars are returned.  There is another setting for the number of chars to pull out.  These are for a specific project I have, if you want I can send you the source and you can modify the package, you'll need to compile these with the Cisco required jar file in the classpath (framework.jar, from memory).  I use ant build for the entire project.
 
James
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:

Quick Links