Class Right
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the RIGHT string function that returns a specified number of characters from the end of a string.
public class Right : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Right
- Implements
Remarks
The RIGHT function extracts the rightmost characters from a string. This is useful for extracting suffixes, file extensions, or the end portion of identifiers. If the length exceeds the string length, the entire string is returned.
Constructors
- Right(Column, int)
Initializes a new instance of RIGHT with a literal length.
- Right(Column, Column)
Initializes a new instance of RIGHT with a column-based length.
- Right(Expression, int)
Initializes a new instance of RIGHT for a string expression.