System.JSON.Utils.TJsonTextUtils.ShouldEscapeJavaScriptString
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);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.JSON.Utils.pas System.JSON.Utils.hpp |
System.JSON.Utils | TJsonTextUtils |
説明
指定された文字列にエスケープが必要な文字が含まれていれば True を、含まれていなければ False を返します。
指定された文字エスケープ フラグの配列で True になっている文字や、指定された文字エスケープ フラグの配列の最大インデックスよりも大きい順序値の文字が文字列に含まれている場合に、ShouldEscapeJavaScriptString は True を返します。