System.JSON.Utils.TJsonTextUtils.ShouldEscapeJavaScriptString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ShouldEscapeJavaScriptString(const S: string; const CharEscapeFlags: array of Boolean): Boolean;

C++

__classmethod bool __fastcall ShouldEscapeJavaScriptString(const System::UnicodeString S, const bool *CharEscapeFlags, const int CharEscapeFlags_High);

Properties

Type Visibility Source Unit Parent
function public
System.JSON.Utils.pas
System.JSON.Utils.hpp
System.JSON.Utils TJsonTextUtils

Description

Returns True if the specified string contains a character that requires escaping, or False otherwise.

If the string contains a character that is True in the specified array of character escaping flags or a character that has an ordinal value higher that the highest index of the specified array of character escaping flags, ShouldEscapeJavaScriptString returns True.

See Also