MB_String setString inStr encoding returnValue Text setLocale locale returnValue Text getLength returnValue Text toLowerCase returnValue Text getString encoding returnValue Text toUpperCase returnValue Text newStringConvert STR string to convert FROM_CHARSET encoding of string TO_CHARSET desired encoding returnValue Text newStringGetLength str charset returnValue Text newStringGetUpper str string charset encoding locale locale returnValue Text newStringGetLower str string charset encoding locale locale to use returnValue Text _delimitedByteStringToString delimitedByteString a string made up of bytes joined together by _ eg. xyz becomes 121_122_123 returnValue Text _stringToDelimitedByteString string returnValue Text keepSubstring returnValue Text newStringGetLeft str string charset encoding numchars number of characters returnValue Text keepLeft numChars the number of chars to keep returnValue Text _makeFileName direction in or out - whether the filename is to send the string to Java or to get it back. returnValue Text _readStringFromFile fileName returnValue Text _writeStringToFile fileName string returnValue Text _setStringWithTypeUsingFile encoding inStr stringType returnValue Text _getStringWithTypeUsingFile encoding stringType returnValue Text _setStringWithType inStr encoding stringType main, subString, etc. returnValue Text _deleteFile fileName the file to delete, with full path. returnValue Text _getStringWithType encoding stringType returnValue Text getUnicodeArray returnValue Array getUnicodeCommaDelimitedList returnValue Text newStringGetUnicodeFirstChar char Really a string. Returns a comma-delimited list if there are multiple strings. charset encoding returnValue Text newStringGetUnicodeArray str charset returnValue Array setStringUsingSingleUnicodeCode code returnValue Text newStringGetStringForUnicodeInt code charset returnValue Text MB_StringObject numBytes JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance TCF://MB_String.tcf MB_String this Method inStr InBound @@method$inStr encoding InBound @@method$encoding stringType InBound @@method$stringType JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance l Method JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@method$encoding stringType InBound @@method$stringType JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance TCF://MB_String.tcf MB_String this Method inStr InBound @@str encoding InBound @@from_charset TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@TO_CHARSET TCF://MB_String.tcf MB_String this Method inStr InBound @@str encoding InBound @@charset TCF://MB_String.tcf MB_String this Method returnValue Method TCF://MB_String.tcf MB_String this Method inStr InBound @@str encoding InBound @@charset @@locale nemp TCF://MB_String.tcf MB_String this Method TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@charset TCF://MB_String.tcf MB_String this Method inStr InBound @@str encoding InBound @@charset @@locale nemp TCF://MB_String.tcf MB_String this Method TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@charset JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance param1 InBound @@start param2 InBound @@end TCF://MB_String.tcf MB_String this Method inStr InBound @@str encoding InBound @@charset TCF://MB_String.tcf MB_String this Method numChars InBound @@numChars TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@charset JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance param1 InBound @@start param2 InBound @@end temp ]]> Method ]]> MB_StringFileReadResult MB_StringFileReadResult ]]> Method MB_StringFileReadResult @@method$temp Local returnValue ]]> Method ]]> ]]> TEXT R*ch TCF://MB_String.tcf MB_String fnm Method fnm Method direction InBound out TCF://MB_String.tcf MB_String fnm Method fileName InBound @@method$fnm string InBound @@method$inStr TCF://MB_String.tcf MB_String this Method fileName InBound @@method$fnm TCF://MB_String.tcf MB_String this Method fnm Method direction InBound in TCF://MB_String.tcf MB_String this Method str Method fileName InBound @@method$fnm TCF://MB_String.tcf MB_String this Method fileName InBound @@method$fnm returnValue @@method$str Method numBytes ]]> Instance @@instance$dataTransferMode direct iseq JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance param1 InBound @@method$inStr param2 InBound @@method$encoding @@instance$dataTransferMode numeric iseq TCF://MB_String.tcf MB_String this Method n Method string InBound ]]> JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance param1 InBound @@method$n param2 InBound @@method$encoding param3 InBound @@method$stringType @@instance$dataTransferMode file iseq TCF://MB_String.tcf MB_String this Method encoding InBound @@method$encoding inStr InBound @@method$inStr stringType InBound @@method$stringType ]]> @@instance$dataTransferMode direct iseq JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance str method param1 InBound @@method$encoding @@instance$dataTransferMode numeric iseq JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance stringByteString Method param1 InBound @@method$encoding param2 InBound @@method$stringType TCF://MB_String.tcf MB_String this Method returnValue Method delimitedByteString InBound @@method$stringByteString @@instance$dataTransferMode file iseq TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@method$encoding stringType InBound @@method$stringType TCF://MB_String.tcf MB_String this Method ul Method JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance returnValue Method @@method$char nemp TCF://MB_String.tcf MB_String this Method inStr InBound @@method$char encoding InBound @@method$charset TCF://MB_String.tcf MB_String this Method a Method TCF://MB_String.tcf MB_String this Method inStr InBound @@method$str encoding InBound @@method$charset TCF://MB_String.tcf MB_String this Method returnValue Method JAVABEAN://com.edochan.tango.MB_String MB_String MB_StringObject Instance stringUsingUnicodeCode InBound @@method$code numBytes ]]> Instance TCF://MB_String.tcf MB_String this Method code InBound @@method$code TCF://MB_String.tcf MB_String this Method returnValue Method encoding InBound @@method$charset <@COMMENT> Use this section to configure MB_String. <@COMMENT> There is nothing to configure yet... <@COMMENT> Because of problems passing 8-bit characters cleanly to and from Tango, you have to choose between 2 inelegant kludges. 0) Do nothing and hope for the best... 1) Convert all characters into numerical form, and pass the numbers to Java in a long delimited string. 2) Write the text to a file, then have java read that file. As of 2002-04-23, only (1) has been implemented. I propose that there will be three modes: 0) direct - Pass strings direct to Java, assuming that Tango has encoded bytes as ISO-1859_1. This doesn't work for me... 1) numeric - Convert all characters into numerical form, and pass the numbers to Java in a long delimited string. I recommend this for short strings. 2) file - Write strings to a file, then have the Java bean slurp them up and write them back to another file. 3) mixed - Use numeric for short strings and file for long ones. <@ASSIGN instance$dataTransferMode "numeric"> ]]> This sets the main string we're playing with. Other strings, such as substrings to be used in comparisons, are set elsewhere. ]]> ]]> ]]> ]]> Tokenize the stringByteString variable to turn it into an array of bytes. Then turn each byte into a character, and append it to the return string. <@ASSIGN method$r ""> <@ASSIGN method$t <@TOKENIZE VALUE="@@method$delimitedByteString" CHARS="_">> <@ROWS ARRAY="method$t"> <@COLS> <@ASSIGN method$c "@@method$t[1,<@CURCOL>]"> <@ASSIGN method$r "<@VAR method$r><@CHAR CODE=@@method$c>"> <@ASSIGN method$returnValue "@@method$r">]]> "> <@ASSIGN method$n ""> <@ASSIGN method$d ""> <@FOR START="1" STEP="1" STOP="<@LENGTH @@method$s>"> <@ASSIGN method$c <@SUBSTRING STR="@@method$s" START="<@CURROW>" NUMCHARS="1">> <@ASSIGN method$n "<@VAR SCOPE="method" NAME="n"><@VAR SCOPE="method" NAME="d"><@ASCII CHAR=@@method$c>"> <@ASSIGN method$d "_"> <@ASSIGN method$returnValue "@@method$n">]]> <@ASSIGN method$start 0> <@ASSIGN method$end @@numchars> ]]> <@ASSIGN method$tempFileName "tempFile"> <@ASSIGN method$tempFileExtension ".txt"> <@ASSIGN method$returnValue "<@VAR SCOPE=method NAME=tempFileDir ENCODING=NONE><@VAR SCOPE=method NAME=tempFileName ENCODING=NONE>_<@VAR SCOPE=method NAME=direction ENCODING=NONE><@VAR SCOPE=method NAME=tempFileExtension ENCODING=NONE>">]]> The Tango file action automatically assigns to a local variable. It's possible that a single taf will call this class file twice, ...so there's a risk that the local variables will tread on each other. To minimize this risk, copy the old value of the local variable, use it, assign the result to a method variable and restore the old value of the local var. ]]> This method sets any of various strings used by the MB_String Java Bean. As of 2002-04-27: main - the main string to be used. subString - the string used as a substring eg. in the <@MB_SUBSTRING > tag. comparator - the string used in comparisons. ]]> This method sets any of various strings used by the MB_String Java Bean. As of 2002-04-27: main - the main string to be used. subString - the string used as a substring eg. in the <@MB_SUBSTRING > tag. comparator - the string used in comparisons. ]]> <@ASSIGN method$returnValue '<@TOKENIZE VALUE="@@method$ul" CHARS="@@method$delimiter">'> ]]> ]]> ]]>