cohtml.DefaultTextTransformManager

Provides default transformation functionality for Cohtml. Handles uppercase, lowercase, and capitalized conversions of UTF-8 strings.

Inherits from cohtml.Net.ITextTransformationManager, SystemIDisposable

Public Functions

Name
override boolCaseMapCharacters(CaseOperation operation, string utf8Text, uint bytesCountUnused, TransformationResult transformed)
Applies a case transformation to the provided UTF-8 text based on the specified operation. Handles null or empty input safely and writes the transformed text into the given TransformationResult.

Additional inherited members

Public Classes inherited from cohtml.Net.ITextTransformationManager

Name
classTransformationResult

Public Types inherited from cohtml.Net.ITextTransformationManager

Name
enum classCaseOperation { Uppercase, Lowercase, Capitalize}
The type of text transformation that is required Examples: Uppercase -> “my text” becomes “MY TEXT”, each character is uppercase Lowercase -> “My Text” becomes “my text”, each character is lowercase Capitalize -> “my text” becomes “My Text”, each first character of each word is uppercase.

Public Functions inherited from cohtml.Net.ITextTransformationManager

Name
virtual voidDispose()
ITextTransformationManager()
delegate boolSwigDelegateITextTransformationManager_0(int operation, string utf8Text, uint bytesCount, global.System.IntPtr transformed, global.System.IntPtr swigId)

Protected Attributes inherited from cohtml.Net.ITextTransformationManager

Name
boolswigCMemOwn

Public Functions Documentation

function CaseMapCharacters

override bool CaseMapCharacters(
    CaseOperation operation,
    string utf8Text,
    uint bytesCountUnused,
    TransformationResult transformed
)

Applies a case transformation to the provided UTF-8 text based on the specified operation. Handles null or empty input safely and writes the transformed text into the given TransformationResult.

Parameters:

  • operation The case operation to apply (uppercase, lowercase, capitalize).
  • utf8Text The original UTF-8 text to transform.
  • bytesCountUnused The byte length of the input string (unused).
  • transformed The output structure where the transformed result is stored.

Return: True if the transformation was performed successfully, false if an unexpected error occurred.