[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

UTF8UpperCaseFast

Gets the uppercase value for the specified text. Optimized to improve speed for ASCII content in the argument.

Declaration

Source position: lazutf8.pas line 133

function UTF8UpperCaseFast(

  const AText: string

):string;

Arguments

AText

  

String with the content examined and converted to its uppercase representation.

Function result

Uppercase value for the specified text.

Description

UTF8UpperCaseFast examines the ordinal values for the characters in AText to determine how the return value is derived. It is optimized for ASCII content (byte values in the range 1..128). It converts individual characters in the range ['a'..'z'] by subtracting 32 from their ordinal values.

If a non-ASCII byte value is found in AText, the return value is derived by calling UTF8UpperCase with the value in AText as an argument.

Version info

Added in LazUtils version 4.0.

See also

UTF8UpperCase

  

Converts the specified string to uppercase using Unicode case mapping rules.

UTF8LowerCaseFast

  

Gets the lowercase value for the specified text. Optimized to improve speed for ASCII content in the argument.


Version 4.0 Generated 2025-05-03 Home