(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: util ::

interface XStringEscape
Description
This interface is used to encode an arbitrary String into a escaped form.

The escaped form is chosen to be suitable for use with other interfaces of the object or service providing this interface.

Any characters or character sequences that are not compatible with any naming rules or restrictions must be replaced by an escaped form, that complies to these rules.

The transformation should preserve all traits of the string that are generally respected by the service. For example, the case of a string may be lost after encoding and then decoding, if the service generally is case insensitive.

Other than that the encoding is one-to-one and can be reversed. The encoding should try to preserve as much as possible of the original string, to keep human-readable input human-friendly where possible. Strings that already conform to the naming conventions should be left unchanged or minimally modified.


Methods' Summary
escapeString encodes an arbitrary string into an escaped form compatible with some naming rules.  
unescapeString decodes an escaped string into the original form.  
Methods' Details
escapeString
string
escapeString( [in] string  aString )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
encodes an arbitrary string into an escaped form compatible with some naming rules.
unescapeString
string
unescapeString( [in] string  aEscapedString )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
decodes an escaped string into the original form.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.