Polycom PDS 2000 Car Stereo System User Manual


 
Polycom Digital Signage Administrator Guide Parsing Rule Reference Guide
200 Polycom, Inc.
TrimFromEnd, TrimFromStart, TrimToEnd and TromToStart
These four rules all remove some text from the source container. They all take
the same parameter, SearchText. The rules differ in whether they trim the
beginning or end of a string, and whether or not they include the SearchText
value in the result.
Parameters:
SearchText: The first occurrence of this string will form the basis of the
trimming.
Examples:
Suppose the Source container contains "Mary had a little lamb". The following
rule places " little lamb" (note the leading space!) in the MaryStuff container.
<ParsingRule Type="TrimToEnd" Source="Source" Result="MaryStuff">
<SearchText>had a</SearchText>
</ParsingRule>
The following rule places "ry had a little lamb" (everything after the first "a")
in the MaryStuff container.
<ParsingRule Type="TrimToEnd" Source="Source" Result="MaryStuff">
<SearchText>a</SearchText>
</ParsingRule>
The following rule places "Mary " (note the trailing space!) in the MaryStuff
container.
<ParsingRule Type="TrimFromStart" Source="Source" Result="MaryStuff">
<SearchText>had a</SearchText>
</ParsingRule>
The following rule places "M" (everything before the first "a") in the MaryStuff
container.
<ParsingRule Type="TrimFromStart" Source="Source" Result="MaryStuff">
<SearchText>a</SearchText>
</ParsingRule>
Ucase
The Ucase rule converts to uppercase all the letters in the Source container.
Parameters: None
Example:
<ParsingRule Type="Ucase" Source="SomeSource" Result="AllBigLetters"
/>