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

IsPureAscii

Determines whether the specified string contains only single-byte ASCII characters.

Declaration

Source position: lazutf8.pas line 153

function IsPureAscii(

  S: string

):Boolean;

Arguments

S

  

String with the characters examined in the method.

Function result

Returns True if all of the characters in S have a value less than $7F.

Description

Used in the implementation of the TStringListUTF8Fast.InsertItem method.

Version info

Added in LazUtils version 3.2.

See also

TStringListUTF8Fast.InsertItem

  

Ensures that the UseLocale property is enabled when a new line with non-ASCII data is stored in the string list.


Version 3.2 Generated 2024-02-25 Home