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

DbgStr

Generates a debugger message with the content from the specified value.

Declaration

Source position: lazloggerbase.pas line 308

function DbgStr(

  const StringWithSpecialChars: string

):string; overload;

function DbgStr(

  const StringWithSpecialChars: string;

  StartPos: PtrInt;

  Len: PtrInt

):string; overload;

function DbgStr(

  const p: PChar;

  Len: PtrInt

):string; overload;

Arguments

StringWithSpecialChars

  

String with the special characters converted to hexadecimal notation.

Function result

String with the value after special characters are converted to hexadecimal notation.

Arguments

StringWithSpecialChars

  

String with the special characters converted to hexadecimal notation.

StartPos

  

Ordinal position for the first character examined in the routine.

Len

  

Pointer an Integer with the number of characters examined in the routine.

Arguments

p

  

Constant PChar type with the content examined and converted in the routine.

Len

  

Pointer an Integer with the number of characters examined in the routine.

Description

DbgStr is an overloaded String function used to generate a string value using the content and formatting specified in the parameter values. The overloaded variants allow the string (or a range of characters in the string) which may contain multi-byte UTF-8 characters to be formatted for use in a debugger message. Any character with an ordinal value not in the range #32..#126 is converted to its hexadecimal character notation like #$FF. Any character with a value in the range #32..#126 is not altered.


Version 4.0 Generated 2025-05-03 Home