File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -198,14 +198,22 @@ namespace web { namespace json
198
198
// / </summary>
199
199
// / <param name="value">The C++ value to create a JSON value from</param>
200
200
// / <returns>A JSON string value</returns>
201
+ // / <remarks>
202
+ // / This overload has O(n) performance because it tries to determine if
203
+ // / specified string has characters that should be properly escaped in JSON.
204
+ // / <remarks>
201
205
static _ASYNCRTIMP value __cdecl string (utility::string_t value);
202
206
203
207
// / <summary>
204
- // / Creates a string value
208
+ // / Creates a string value specifying if the string contains characters to escape
205
209
// / </summary>
206
210
// / <param name="value">The C++ value to create a JSON value from</param>
207
- // / <param name="has_escape_chars">Whether <paramref name="value" /> contains characters that should be escaped in JSON value</param>
211
+ // / <param name="has_escape_chars">Whether <paramref name="value" /> contains characters
212
+ // / that should be escaped in JSON value</param>
208
213
// / <returns>A JSON string value</returns>
214
+ // / <remarks>
215
+ // / This overload has O(1) performance.
216
+ // / </remarks>
209
217
static _ASYNCRTIMP value __cdecl string (utility::string_t value, bool has_escape_chars);
210
218
211
219
#ifdef _MS_WINDOWS
You can’t perform that action at this time.
0 commit comments