This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public sealed class StringViperModule
Visual Basic (Declaration) Copy imageCopy Code
                                  Public NotInheritable Class StringViperModule

The type exposes the following methods.

Public Methods

  Name Description
Public method Static member Abstract
Creates a (plain text) abstract of the specified text, including the specified word(s).
Public method AddAIMRelation
Adds an item to the AIM relations collection.
(Inherited from Module.)
Public method Static member AppendIfMissing
Appends the second string to the first if the first one doesn't end with the second one.
Public method Static member AppendIfMissingAny
Appends a string if the source doesn't end with any of the characters specified in anyChars.
Public method ApplyProperties
Applies the properties from the SXML processing environment into the current module.
(Inherited from BaseModule.)
Public method Static member BBDecode
Decodes a string containing BBCode formatting tags to the equivalent XHTML-formatted string representation.
Public method Static member BBEncode
Encodes a string containing XHTML formatting tags to the equivalent BBCode-formatted string representation.
Public method BeginExecute
Override this to execute code before Execute() is fired.
Last point to add data to the Cache Signature.
(Inherited from Module.)
Public method Static member Capitalize
Returns a capitalized string.
Public method Capture
Passes an SXML subtree to the current module.
(Inherited from BaseModule.)
Public method Static member CheckSum
Creates a checksum for the given input.
Public method CheckTimeout
Checks whether execution has timed out, given the setting of TimeoutMilliseconds()()()().
(Inherited from BaseModule.)
Public method ClearForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method Static member Concat Overloaded.
Public method Static member Contains Overloaded.
Public method Static member DecodeAmpersand
Decodes AMP XML entities in the given string.
Public method Static member DecodeCharEntities
Decodes the HTML character entity references in given string.
Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from BaseModule.)
Public method DoPreparse
Check whether to preparse data in the given property.
(Inherited from BaseModule.)
Public method DoRecurseTag
Determines whether to recurse on a given tag
Public method Static member Enclose Overloaded.
Public method Static member EncodeAmpersand
Encodes ampersand characters to AMP XML entities in the given string.
Public method Static member EncodeAttribute Overloaded.
Public method Static member EncodeQuotes
Encodes single and double quotes in the given string where single quotes are emitted as numeric entities. Double quote is encoded using AMP QUOT named entity.
Public method EndExecute
Override this to execute code after Execute() is fired.
(Inherited from Module.)
Public method Static member EndsWith Overloaded.
Public method Static member Equals Overloaded.
Public method Static member Eval
Evaluates the given string as a Viper expression.
Public method EvaluatePropertyExpression
Evaluates an expression in a property with Expression Syntax
(Inherited from Module.)
Public method Execute
Execute the macro. Should be overridden by inherited class.
(Inherited from Module.)
Public method ExecuteRawParameter
Executes the data of a raw parameter.
(Inherited from Module.)
Public method ExistsBuffer
Checks whether a local buffer exists.
(Inherited from BaseModule.)
Public method Find
Finds the specified child module.
(Inherited from BaseModule.)
Public method FindExtension
Finds an extension macro.
(Inherited from BaseModule.)
Public method Static member Format
Formats the specified string/number into the specified format. This method always uses the invariant culture.
Public method Static member FormatSize Overloaded.
Public method GetAIMRelations
Gets a list of all outgoing AIM relations created by the macro.
(Inherited from BaseModule.)
Public method GetBuffer
Gets a local buffer.
(Inherited from BaseModule.)
Public method GetException
Returns the text message of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetExceptionSmartsiteCode
Returns the Smartsite Error code of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetExceptionString
Returns the full information of the exception that has occurred, including the stack trace.
(Inherited from BaseModule.)
Public method GetExceptionType
Returns the full Type name of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetForcedResult
Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult().
(Inherited from Module.)
Public method GetHashCode (Inherited from Object.)
Public method GetInnerException
Returns the text message of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetInnerExceptionSmartsiteCode
Returns Smartsite error code of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetInnerExceptionString
Returns the full information of the inner exception of the exception that has occurred, including the stack trace.
(Inherited from BaseModule.)
Public method GetInnerExceptionType
Returns the full Type name of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetParameter
Gets the value of the given parameter/property.
(Inherited from BaseModule.)
Public method GetParameter
Gets the value of the given parameter/property.
(Inherited from BaseModule.)
Public method GetParent
Gets the parent Module of this module.
(Inherited from BaseModule.)
Public method GetParent
Gets the parent Module of this module, optionally crossing RenderContext boundaries if allowed so by embeds (Sandboxing off).
(Inherited from BaseModule.)
Public method GetRenderTime
Returns the render time of the macro in milliseconds.
(Inherited from Module.)
Public method GetResult
Returns the result of the macro.
Typically used in the ResultFormat property, to format, convert or encode the result.
(Inherited from BaseModule.)
Public method GetResult
Returns the result of the macro.
Typically used in the ResultFormat property, to format, convert or encode the result.
(Inherited from BaseModule.)
Public method GetType (Inherited from Object.)
Public method Static member HtmlDecode Overloaded.
Public method Static member HtmlEncode Overloaded.
Public method Static member IfEmpty
Returns the value if it is not empty, the defaultValue otherwise.
Public method Static member Indent Overloaded.
Public method Static member IndexOf Overloaded.
Public method Initialize
Called to initialize this Module
(Inherited from BaseModule.)
Public method IsChildOf
Determines whether the module is a descendant of the given parent
(Inherited from BaseModule.)
Public method Static member IsEmpty Overloaded.
Public method Static member IsMatch Overloaded.
Public method Static member IsNumeric
Checks whether the given object can be cast to an integer.
Public method Static member JsDecode
Unescapes all Javascript escaped characters such that it becomes a normal string.
Public method Static member JsEncode
Escapes all characters in the input string such that the output is a valid Javascript string. Escaped character are e.g. Carriage Return, Linefeed, Tab, single quote, double quote and backslash.
Public method Static member LastIndexOf Overloaded.
Public method Static member Length
Returns the length of the given string.
Public method Static member Literal
Returns a literal string.
Public method Static member NormalizeLineEndings
Normalizes the line endings to use CrLf characters.
Public method Static member NormalizeWhitespace
Normalizes the whitespace.
Public method Static member Pad Overloaded.
Public method ParameterExists
Checks whether the given parameter/property is set.
(Inherited from BaseModule.)
Public method PreInitialize
Called just before initialization of the module
(Inherited from Module.)
Public method Static member Quote Overloaded.
Public method ReadyExecuting
Method that is called after the module has executed.
(Inherited from Module.)
Public method Static member RemoveTags Overloaded.
Public method Static member RemoveVipers Overloaded.
Public method Static member RemoveWhitespace
Removes all whitespace.
Public method Static member Repeat
Repeats the given string.
Public method ScopeTerminated
Executed when the module is about to get out of scope.
(Inherited from BaseModule.)
Public method SetBuffer
Sets a local buffer.
(Inherited from BaseModule.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method Static member Split Overloaded.
Public method Static member StartsWith Overloaded.
Public method Static member Substring Overloaded.
Public method Static member SXMLDecode Overloaded.
Public method Static member SXMLEncode Overloaded.
Public method TestCondition
Tests whether execution should take place based on the expression in the condition property
(Inherited from Module.)
Public method TestPropertyExpression
Tests whether an expression in a property with Expression Syntax evaluates to true.
(Inherited from Module.)
Public method ThrowCurrentException
Makes Smartsite throw the current exception.
(Inherited from BaseModule.)
Public method ThrowInnerException
Makes Smartsite throw the inner exception.
(Inherited from BaseModule.)
Public method Static member ToHex
Returns the Hex representation of the given string.
Public method Static member ToLower
Returns a lower case version of the given string.
Public method Static member ToMD5
Returns the Md5 hash of the given string.
Public method ToString
Returns a string that represents the current macro.
(Inherited from Module.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Module.)
Public method Static member ToTitleCase
Returns a "titlecase" version of the given string. Generally, title casing converts the first character of each word to uppercase and the rest of the characters to lowercase. However, a word that is entirely uppercase, such as an acronym, is not converted.
Public method Static member ToUpper
Returns an upper case version of the given string.
Public method Static member TrimLeftRight Overloaded.
Public method Static member TrimString Overloaded.
Public method Static member Truncate Overloaded.
Public method Static member UrlDecode
Urldecodes the given string. (Converts a string that has been encoded for transmission in a URL into a decoded string.)
Public method Static member UrlEncode
Urlencodes the given string.
Public method Static member XmlDecode Overloaded.
Public method Static member XmlEncode Overloaded.

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method IsBufferName
Determines whether the data is a buffer name.
(Inherited from Module.)
Protected method IsSingleSaveBuffername
Determines whether a single save buffername is used.
(Inherited from Module.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetCurrentProperty
Sets the current property.
(Inherited from BaseModule.)

Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method IModuleExec..::..Cancel (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..FinishExecute (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..Initialize (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetChildException (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetInitialized
Triggers the Initialized status in the module.
(Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetProperty (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetProperty (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..StartExecute (Inherited from BaseModule.)

See Also

Advanced