diff --git a/navtreedata.js b/navtreedata.js
index a805340de..01668eb0f 100644
--- a/navtreedata.js
+++ b/navtreedata.js
@@ -187,12 +187,12 @@ var NAVTREE =
var NAVTREEINDEX =
[
-"annotated.html",
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aef6872e07743217fe2e2abe790a21d4c",
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a83b3c467632c017400f95ff05d2367b3",
-"logger-inl_8h.html#aa220611a86e2a544368f650b7f7315fb",
-"ondemand-inl_8h_source.html",
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#af882bb9212c81253b2f52ae763f1fab6"
+"",
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae0bc6b9803e0c989e9defaf3edcaaae4",
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5c80355d967cce16eab942a8d8351c7b",
+"logger-inl_8h.html#a6ca1434e6fe03e97dbc88360cc6ea5db",
+"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#af941be7ff0cfaeb30d15d2fb52e76dd1",
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#abdd158d04a924752c33bb54af46608e4"
];
var SYNCONMSG = 'click to disable panel synchronisation';
diff --git a/navtreeindex0.js b/navtreeindex0.js
index ef8f1df49..c5186077d 100644
--- a/navtreeindex0.js
+++ b/navtreeindex0.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX0 =
{
+"":[10,0,0,0],
+"":[10,0,0,1],
+"":[10,0,1],
+"":[10,0,0,1,0,0],
"annotated.html":[11,0],
"arm64_2begin_8h_source.html":[12,0,0,0,0,0],
"arm64_2bitmanipulation_8h_source.html":[12,0,0,0,0,1],
@@ -245,9 +249,5 @@ var NAVTREEINDEX0 =
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ad210f9115679a625ada433add55eff51":[11,0,0,1,0,7,12],
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ad742392a9223e096f1be16b7bbf20ca8":[11,0,0,1,0,7,6],
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#adbe7322f665109b9816c5bcb9c10a9cb":[11,0,0,1,0,7,10],
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#add102ee85423a75e22e4d7ca9a3eaacd":[11,0,0,1,0,7,4],
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae0bc6b9803e0c989e9defaf3edcaaae4":[11,0,0,1,0,7,16],
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae3d80f8e7f31c319fe6ee09c0860df83":[11,0,0,1,0,7,2],
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae5cda98fa74051d037c0c444c67efb15":[11,0,0,1,0,7,19],
-"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aeb4a70edd1808f36210460ed410e8dae":[11,0,0,1,0,7,3]
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#add102ee85423a75e22e4d7ca9a3eaacd":[11,0,0,1,0,7,4]
};
diff --git a/navtreeindex1.js b/navtreeindex1.js
index 1df96e75e..7444291f3 100644
--- a/navtreeindex1.js
+++ b/navtreeindex1.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX1 =
{
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae0bc6b9803e0c989e9defaf3edcaaae4":[11,0,0,1,0,7,16],
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae3d80f8e7f31c319fe6ee09c0860df83":[11,0,0,1,0,7,2],
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae5cda98fa74051d037c0c444c67efb15":[11,0,0,1,0,7,19],
+"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aeb4a70edd1808f36210460ed410e8dae":[11,0,0,1,0,7,3],
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aef6872e07743217fe2e2abe790a21d4c":[11,0,0,1,0,7,5],
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#affa38e7fd0778672e7dd02916a97ad21":[11,0,0,1,0,7,9],
"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator.html":[11,0,0,1,0,8],
@@ -245,9 +249,5 @@ var NAVTREEINDEX1 =
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a4807eeb1ed5f596b587d0b61dfb550e7":[11,0,0,0,4,0,6],
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a498ffa7fca4164634f87ff2ef0905f8b":[11,0,0,0,4,0,14],
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a54a99dcf9c422d5c24f3c570b6d9b6e4":[11,0,0,0,4,0,5],
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5ad1b60fd5df56d9fdb8bce1e08de88f":[11,0,0,0,4,0,8],
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5c80355d967cce16eab942a8d8351c7b":[11,0,0,0,4,0,2],
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a688f6c7f451602bb3385a93252c0828a":[11,0,0,0,4,0,10],
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a6d335de77b8c5b731566e48f6cacd95d":[11,0,0,0,4,0,7],
-"classsimdjson_1_1dom_1_1object_1_1iterator.html#a7b4a7d3017744fec3aa4252967f73204":[11,0,0,0,4,0,16]
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5ad1b60fd5df56d9fdb8bce1e08de88f":[11,0,0,0,4,0,8]
};
diff --git a/navtreeindex2.js b/navtreeindex2.js
index c3f86bdf2..e4bf7cf43 100644
--- a/navtreeindex2.js
+++ b/navtreeindex2.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX2 =
{
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5c80355d967cce16eab942a8d8351c7b":[11,0,0,0,4,0,2],
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a688f6c7f451602bb3385a93252c0828a":[11,0,0,0,4,0,10],
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a6d335de77b8c5b731566e48f6cacd95d":[11,0,0,0,4,0,7],
+"classsimdjson_1_1dom_1_1object_1_1iterator.html#a7b4a7d3017744fec3aa4252967f73204":[11,0,0,0,4,0,16],
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a83b3c467632c017400f95ff05d2367b3":[11,0,0,0,4,0,12],
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a951609ca7a164b499ff19adbe2de7983":[11,0,0,0,4,0,4],
"classsimdjson_1_1dom_1_1object_1_1iterator.html#a9f49fe89534f63d3d2543d5d4bad3180":[11,0,0,0,4,0,1],
@@ -245,9 +249,5 @@ var NAVTREEINDEX2 =
"logger-inl_8h.html#a1b9952154ae0172530a16854ff005d92":[10,0,0,1,0,0,14],
"logger-inl_8h.html#a273e5f25cfdef1064a5225a47d85eb4f":[10,0,0,1,0,0,2],
"logger-inl_8h.html#a4427c475cf7d49b372c768201b4d92cb":[10,0,0,1,0,0,6],
-"logger-inl_8h.html#a66e3122a7ae01bfe5f81ecb1bf1814cc":[10,0,0,1,0,0,4],
-"logger-inl_8h.html#a6ca1434e6fe03e97dbc88360cc6ea5db":[10,0,0,1,0,0,1],
-"logger-inl_8h.html#a720bb462b108c1f9bcaa02cdcdfe6546":[10,0,0,1,0,0,12],
-"logger-inl_8h.html#a7577e5a0dcaf23edf36d162959680a7c":[10,0,0,1,0,0,8],
-"logger-inl_8h.html#a92b499d3d191a02e913f90de4f641e2e":[10,0,0,1,0,0,10]
+"logger-inl_8h.html#a66e3122a7ae01bfe5f81ecb1bf1814cc":[10,0,0,1,0,0,4]
};
diff --git a/navtreeindex3.js b/navtreeindex3.js
index bcd5daf4f..d07d4de07 100644
--- a/navtreeindex3.js
+++ b/navtreeindex3.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX3 =
{
+"logger-inl_8h.html#a6ca1434e6fe03e97dbc88360cc6ea5db":[10,0,0,1,0,0,1],
+"logger-inl_8h.html#a720bb462b108c1f9bcaa02cdcdfe6546":[10,0,0,1,0,0,12],
+"logger-inl_8h.html#a7577e5a0dcaf23edf36d162959680a7c":[10,0,0,1,0,0,8],
+"logger-inl_8h.html#a92b499d3d191a02e913f90de4f641e2e":[10,0,0,1,0,0,10],
"logger-inl_8h.html#aa220611a86e2a544368f650b7f7315fb":[10,0,0,1,0,0,3],
"logger-inl_8h.html#aaa4c1a2ef6eb08bb02a8ea6e49d2a786":[10,0,0,1,0,0,11],
"logger-inl_8h.html#ab8082fd58a3d7e115016a3fc52ee8936":[10,0,0,1,0,0,0],
@@ -245,9 +249,5 @@ var NAVTREEINDEX3 =
"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#ac915f0c06e5ab0363e09593bba651330ab45cffe084dd3d20d928bee85e7b0f21":[10,0,0,1,0,15,3],
"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#ac915f0c06e5ab0363e09593bba651330af1f713c9e000f5d3f280adbd124df4f5":[10,0,0,1,0,15,0],
"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#adab1063af10b90a1f45f87b307225995":[10,0,0,1,0,28],
-"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#ae52a82c2f754a47eb9dac12223b3311d":[10,0,0,1,0,25],
-"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#af941be7ff0cfaeb30d15d2fb52e76dd1":[10,0,0,1,0,13],
-"numberparsing__tables_8h_source.html":[12,0,0,0,6,4],
-"object__iterator-inl_8h_source.html":[12,0,0,0,3,0,18],
-"object__iterator_8h_source.html":[12,0,0,0,3,0,19]
+"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#ae52a82c2f754a47eb9dac12223b3311d":[10,0,0,1,0,25]
};
diff --git a/navtreeindex4.js b/navtreeindex4.js
index cfa9e0f41..7ae857691 100644
--- a/navtreeindex4.js
+++ b/navtreeindex4.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX4 =
{
+"namespacesimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand.html#af941be7ff0cfaeb30d15d2fb52e76dd1":[10,0,0,1,0,13],
+"numberparsing__tables_8h_source.html":[12,0,0,0,6,4],
+"object__iterator-inl_8h_source.html":[12,0,0,0,3,0,18],
+"object__iterator_8h_source.html":[12,0,0,0,3,0,19],
"ondemand-inl_8h_source.html":[12,0,0,0,3,7],
"ondemand_8h_source.html":[12,0,0,0,3,8],
"padded__string-inl_8h_source.html":[12,0,0,0,26],
@@ -142,8 +146,8 @@ var NAVTREEINDEX4 =
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a567b835f20e2f854f4303e83f4d3bd74":[11,0,0,10,13],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a59a47cbdb4c226a7d33e0315cce62984":[11,0,0,10,41],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a5a4d779ce258cac95b1799f16b49695b":[11,0,0,10,48],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,22],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,23],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,22],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a61c56912d76a1a730e4cf9b5aea5d69f":[11,0,0,10,38],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a662ec28f78a9fcba046eaa4509efa6a3":[11,0,0,10,42],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a696390da51f64f6955aa43484b2e8c41":[11,0,0,10,28],
@@ -168,10 +172,10 @@ var NAVTREEINDEX4 =
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ac994a43ba5e7fbde29d82c8d437c5fb7":[11,0,0,10,52],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ad2c7498f364cf7803f83408a8629a5ac":[11,0,0,10,46],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ad93b76ab3636d40ce75059e0f8653c6f":[11,0,0,10,8],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ada47799dcb5e64e43851d78d346b1d47":[11,0,0,10,24],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ada47799dcb5e64e43851d78d346b1d47":[11,0,0,10,25],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,14],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ada47799dcb5e64e43851d78d346b1d47":[11,0,0,10,24],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,16],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,14],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ae69c9218f418dab3b1aafeb2b6504fab":[11,0,0,10,55],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#aecc254ac74f3ccd0704813be27c98470":[11,0,0,10,9],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#aeda745db35d2b64a7956a70872242fcb":[11,0,0,10,44],
@@ -245,9 +249,5 @@ var NAVTREEINDEX4 =
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#a859a70452db187eaaca4ff018f959175":[11,0,0,16,12],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#a86945d1c1c36bc51dd8a18e8ee9c0c18":[11,0,0,16,2],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#a99b1f71b33c2977afe8de124f2f662b6":[11,0,0,16,7],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#a9a5596c92c725e98767e76733fa704ac":[11,0,0,16,11],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#abdd158d04a924752c33bb54af46608e4":[11,0,0,16,0],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ad40a8df1162007a8db15ff061fd0e083":[11,0,0,16,6],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ad88110fe0070d8e28e680cbdbff198cf":[11,0,0,16,10],
-"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ae44a332b47352441d29290237942bee4":[11,0,0,16,8]
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#a9a5596c92c725e98767e76733fa704ac":[11,0,0,16,11]
};
diff --git a/navtreeindex5.js b/navtreeindex5.js
index aafce201c..51a3537c5 100644
--- a/navtreeindex5.js
+++ b/navtreeindex5.js
@@ -1,5 +1,9 @@
var NAVTREEINDEX5 =
{
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#abdd158d04a924752c33bb54af46608e4":[11,0,0,16,0],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ad40a8df1162007a8db15ff061fd0e083":[11,0,0,16,6],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ad88110fe0070d8e28e680cbdbff198cf":[11,0,0,16,10],
+"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#ae44a332b47352441d29290237942bee4":[11,0,0,16,8],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#af882bb9212c81253b2f52ae763f1fab6":[11,0,0,16,3],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#afd9f79244804cad8a3c12053c2e5da6f":[11,0,0,16,5],
"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html":[11,0,0,17],
@@ -144,9 +148,5 @@ var NAVTREEINDEX5 =
"westmere_2numberparsing_8h_source.html":[12,0,0,0,9,6],
"westmere_2simd_8h_source.html":[12,0,0,0,9,7],
"westmere_2stringparsing_8h_source.html":[12,0,0,0,9,8],
-"westmere_8h_source.html":[12,0,0,0,34],
-"":[10,0,0,0],
-"":[10,0,0,1],
-"":[10,0,1],
-"":[10,0,0,1,0,0]
+"westmere_8h_source.html":[12,0,0,0,34]
};
diff --git a/string__view_8hpp_source.html b/string__view_8hpp_source.html
index 020ba3063..89b341c25 100644
--- a/string__view_8hpp_source.html
+++ b/string__view_8hpp_source.html
@@ -105,7 +105,7 @@ $(document).ready(function(){initNavTree('string__view_8hpp_source.html',''); in
12 #define NONSTD_SV_LITE_H_INCLUDED
14 #define string_view_lite_MAJOR 1
- 15 #define string_view_lite_MINOR 6
+ 15 #define string_view_lite_MINOR 7
16 #define string_view_lite_PATCH 0
18 #define string_view_lite_VERSION nssv_STRINGIFY(string_view_lite_MAJOR) "." nssv_STRINGIFY(string_view_lite_MINOR) "." nssv_STRINGIFY(string_view_lite_PATCH)
@@ -165,7 +165,7 @@ $(document).ready(function(){initNavTree('string__view_8hpp_source.html',''); in
74 #ifndef nssv_CONFIG_NO_EXCEPTIONS
-
+ 75 # if defined(_MSC_VER)
78 # if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS)
@@ -175,7 +175,7 @@ $(document).ready(function(){initNavTree('string__view_8hpp_source.html',''); in
-
+
88 #ifndef nssv_CPLUSPLUS
@@ -191,1544 +191,1590 @@ $(document).ready(function(){initNavTree('string__view_8hpp_source.html',''); in
98 #define nssv_CPP11_OR_GREATER_ ( nssv_CPLUSPLUS >= 201103L )
99 #define nssv_CPP14_OR_GREATER ( nssv_CPLUSPLUS >= 201402L )
100 #define nssv_CPP17_OR_GREATER ( nssv_CPLUSPLUS >= 201703L )
- 101 #define nssv_CPP20_OR_GREATER ( nssv_CPLUSPLUS >= 202000L )
-
-
-
- 105 #if nssv_CPP17_OR_GREATER && defined(__has_include )
- 106 # if __has_include( <string_view> )
- 107 # define nssv_HAVE_STD_STRING_VIEW 1
-
- 109 # define nssv_HAVE_STD_STRING_VIEW 0
-
-
- 112 # define nssv_HAVE_STD_STRING_VIEW 0
-
-
- 115 #define nssv_USES_STD_STRING_VIEW ( (nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_STD) || ((nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_DEFAULT) && nssv_HAVE_STD_STRING_VIEW) )
-
- 117 #define nssv_HAVE_STARTS_WITH ( nssv_CPP20_OR_GREATER || !nssv_USES_STD_STRING_VIEW )
- 118 #define nssv_HAVE_ENDS_WITH nssv_HAVE_STARTS_WITH
-
-
-
-
-
- 124 #if nssv_USES_STD_STRING_VIEW
-
- 126 #include <string_view>
-
-
-
- 130 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
-
-
-
- 134 template<
class CharT,
class Traits,
class Allocator = std::allocator<CharT> >
- 135 std::basic_string<CharT, Traits, Allocator>
- 136 to_string( std::basic_string_view<CharT, Traits> v, Allocator
const & a = Allocator() )
-
- 138 return std::basic_string<CharT,Traits, Allocator>( v.begin(), v.end(), a );
-
-
- 141 template<
class CharT,
class Traits,
class Allocator >
- 142 std::basic_string_view<CharT, Traits>
- 143 to_string_view( std::basic_string<CharT, Traits, Allocator>
const & s )
-
- 145 return std::basic_string_view<CharT, Traits>( s.data(), s.size() );
-
-
-
-
- 150 #if nssv_CONFIG_STD_SV_OPERATOR
-
- 152 using namespace std::literals::string_view_literals;
-
-
-
- 156 #if nssv_CONFIG_USR_SV_OPERATOR
-
- 158 inline namespace literals {
- 159 inline namespace string_view_literals {
-
+ 101 #define nssv_CPP20_OR_GREATER ( nssv_CPLUSPLUS >= 202002L )
+ 102 #define nssv_CPP23_OR_GREATER ( nssv_CPLUSPLUS >= 202300L )
+
+
+
+ 106 #if nssv_CPP17_OR_GREATER && defined(__has_include )
+ 107 # if __has_include( <string_view> )
+ 108 # define nssv_HAVE_STD_STRING_VIEW 1
+
+ 110 # define nssv_HAVE_STD_STRING_VIEW 0
+
+
+ 113 # define nssv_HAVE_STD_STRING_VIEW 0
+
+
+ 116 #define nssv_USES_STD_STRING_VIEW ( (nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_STD) || ((nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_DEFAULT) && nssv_HAVE_STD_STRING_VIEW) )
+
+ 118 #define nssv_HAVE_STARTS_WITH ( nssv_CPP20_OR_GREATER || !nssv_USES_STD_STRING_VIEW )
+ 119 #define nssv_HAVE_ENDS_WITH nssv_HAVE_STARTS_WITH
+
+
+
+
+
+ 125 #if nssv_USES_STD_STRING_VIEW
+
+ 127 #include <string_view>
+
+
+
+ 131 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
+
+
+
+ 135 template<
class CharT,
class Traits,
class Allocator = std::allocator<CharT> >
+ 136 std::basic_string<CharT, Traits, Allocator>
+ 137 to_string( std::basic_string_view<CharT, Traits> v, Allocator
const & a = Allocator() )
+
+ 139 return std::basic_string<CharT,Traits, Allocator>( v.begin(), v.end(), a );
+
+
+ 142 template<
class CharT,
class Traits,
class Allocator >
+ 143 std::basic_string_view<CharT, Traits>
+ 144 to_string_view( std::basic_string<CharT, Traits, Allocator>
const & s )
+
+ 146 return std::basic_string_view<CharT, Traits>( s.data(), s.size() );
+
+
+
+
+ 151 #if nssv_CONFIG_STD_SV_OPERATOR
+
+ 153 using namespace std::literals::string_view_literals;
+
+
+
+ 157 #if nssv_CONFIG_USR_SV_OPERATOR
+
+ 159 inline namespace literals {
+ 160 inline namespace string_view_literals {
- 162 constexpr std::string_view
operator "" _sv(
const char* str,
size_t len ) noexcept
-
- 164 return std::string_view{ str, len };
-
-
- 167 constexpr std::u16string_view
operator "" _sv(
const char16_t* str,
size_t len ) noexcept
-
- 169 return std::u16string_view{ str, len };
-
-
- 172 constexpr std::u32string_view
operator "" _sv(
const char32_t* str,
size_t len ) noexcept
-
- 174 return std::u32string_view{ str, len };
-
-
- 177 constexpr std::wstring_view
operator "" _sv(
const wchar_t* str,
size_t len ) noexcept
-
- 179 return std::wstring_view{ str, len };
-
-
-
-
-
-
-
-
-
-
-
-
- 192 using std::string_view;
- 193 using std::wstring_view;
- 194 using std::u16string_view;
- 195 using std::u32string_view;
- 196 using std::basic_string_view;
-
-
-
- 200 using std::operator==;
- 201 using std::operator!=;
- 202 using std::operator<;
- 203 using std::operator<=;
- 204 using std::operator>;
- 205 using std::operator>=;
-
- 207 using std::operator<<;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 231 #if defined(_MSC_VER ) && !defined(__clang__)
- 232 # define nssv_COMPILER_MSVC_VER (_MSC_VER )
- 233 # define nssv_COMPILER_MSVC_VERSION (_MSC_VER / 10 - 10 * ( 5 + (_MSC_VER < 1900 ) ) )
-
- 235 # define nssv_COMPILER_MSVC_VER 0
- 236 # define nssv_COMPILER_MSVC_VERSION 0
-
-
- 239 #define nssv_COMPILER_VERSION( major, minor, patch ) ( 10 * ( 10 * (major) + (minor) ) + (patch) )
-
- 241 #if defined( __apple_build_version__ )
- 242 # define nssv_COMPILER_APPLECLANG_VERSION nssv_COMPILER_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
- 243 # define nssv_COMPILER_CLANG_VERSION 0
- 244 #elif defined( __clang__ )
- 245 # define nssv_COMPILER_APPLECLANG_VERSION 0
- 246 # define nssv_COMPILER_CLANG_VERSION nssv_COMPILER_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
-
- 248 # define nssv_COMPILER_APPLECLANG_VERSION 0
- 249 # define nssv_COMPILER_CLANG_VERSION 0
-
-
- 252 #if defined(__GNUC__) && !defined(__clang__)
- 253 # define nssv_COMPILER_GNUC_VERSION nssv_COMPILER_VERSION(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
-
- 255 # define nssv_COMPILER_GNUC_VERSION 0
-
-
-
- 259 #define nssv_BETWEEN( v, lo, hi ) ( (lo) <= (v) && (v) < (hi) )
-
-
-
-
- 264 # define nssv_HAS_CPP0X _HAS_CPP0X
-
- 266 # define nssv_HAS_CPP0X 0
-
-
-
-
- 271 #if nssv_COMPILER_MSVC_VER >= 1900
- 272 # undef nssv_CPP11_OR_GREATER
- 273 # define nssv_CPP11_OR_GREATER 1
-
-
- 276 #define nssv_CPP11_90 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1500)
- 277 #define nssv_CPP11_100 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1600)
- 278 #define nssv_CPP11_110 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1700)
- 279 #define nssv_CPP11_120 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1800)
- 280 #define nssv_CPP11_140 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1900)
- 281 #define nssv_CPP11_141 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1910)
-
- 283 #define nssv_CPP14_000 (nssv_CPP14_OR_GREATER)
- 284 #define nssv_CPP17_000 (nssv_CPP17_OR_GREATER)
-
-
-
- 288 #define nssv_HAVE_CONSTEXPR_11 nssv_CPP11_140
- 289 #define nssv_HAVE_EXPLICIT_CONVERSION nssv_CPP11_140
- 290 #define nssv_HAVE_INLINE_NAMESPACE nssv_CPP11_140
- 291 #define nssv_HAVE_NOEXCEPT nssv_CPP11_140
- 292 #define nssv_HAVE_NULLPTR nssv_CPP11_100
- 293 #define nssv_HAVE_REF_QUALIFIER nssv_CPP11_140
- 294 #define nssv_HAVE_UNICODE_LITERALS nssv_CPP11_140
- 295 #define nssv_HAVE_USER_DEFINED_LITERALS nssv_CPP11_140
- 296 #define nssv_HAVE_WCHAR16_T nssv_CPP11_100
- 297 #define nssv_HAVE_WCHAR32_T nssv_CPP11_100
-
- 299 #if ! ( ( nssv_CPP11_OR_GREATER && nssv_COMPILER_CLANG_VERSION ) || nssv_BETWEEN( nssv_COMPILER_CLANG_VERSION, 300, 400 ) )
- 300 # define nssv_HAVE_STD_DEFINED_LITERALS nssv_CPP11_140
-
- 302 # define nssv_HAVE_STD_DEFINED_LITERALS 0
-
-
-
-
- 307 #define nssv_HAVE_CONSTEXPR_14 nssv_CPP14_000
-
-
-
- 311 #define nssv_HAVE_NODISCARD nssv_CPP17_000
-
-
-
- 315 #define nssv_HAVE_STD_HASH nssv_CPP11_120
-
-
-
-
-
-
-
-
+
+ 163 constexpr std::string_view
operator "" _sv(
const char* str,
size_t len ) noexcept
+
+ 165 return std::string_view{ str, len };
+
+
+ 168 constexpr std::u16string_view
operator "" _sv(
const char16_t* str,
size_t len ) noexcept
+
+ 170 return std::u16string_view{ str, len };
+
+
+ 173 constexpr std::u32string_view
operator "" _sv(
const char32_t* str,
size_t len ) noexcept
+
+ 175 return std::u32string_view{ str, len };
+
+
+ 178 constexpr std::wstring_view
operator "" _sv(
const wchar_t* str,
size_t len ) noexcept
+
+ 180 return std::wstring_view{ str, len };
+
+
+
+
+
+
+
+
+
+
+
+
+ 193 using std::string_view;
+ 194 using std::wstring_view;
+ 195 using std::u16string_view;
+ 196 using std::u32string_view;
+ 197 using std::basic_string_view;
+
+
+
+ 201 using std::operator==;
+ 202 using std::operator!=;
+ 203 using std::operator<;
+ 204 using std::operator<=;
+ 205 using std::operator>;
+ 206 using std::operator>=;
+
+ 208 using std::operator<<;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 232 #if defined(_MSC_VER ) && !defined(__clang__)
+ 233 # define nssv_COMPILER_MSVC_VER (_MSC_VER )
+ 234 # define nssv_COMPILER_MSVC_VERSION (_MSC_VER / 10 - 10 * ( 5 + (_MSC_VER < 1900 ) ) )
+
+ 236 # define nssv_COMPILER_MSVC_VER 0
+ 237 # define nssv_COMPILER_MSVC_VERSION 0
+
+
+ 240 #define nssv_COMPILER_VERSION( major, minor, patch ) ( 10 * ( 10 * (major) + (minor) ) + (patch) )
+
+ 242 #if defined( __apple_build_version__ )
+ 243 # define nssv_COMPILER_APPLECLANG_VERSION nssv_COMPILER_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
+ 244 # define nssv_COMPILER_CLANG_VERSION 0
+ 245 #elif defined( __clang__ )
+ 246 # define nssv_COMPILER_APPLECLANG_VERSION 0
+ 247 # define nssv_COMPILER_CLANG_VERSION nssv_COMPILER_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
+
+ 249 # define nssv_COMPILER_APPLECLANG_VERSION 0
+ 250 # define nssv_COMPILER_CLANG_VERSION 0
+
+
+ 253 #if defined(__GNUC__) && !defined(__clang__)
+ 254 # define nssv_COMPILER_GNUC_VERSION nssv_COMPILER_VERSION(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
+
+ 256 # define nssv_COMPILER_GNUC_VERSION 0
+
+
+
+ 260 #define nssv_BETWEEN( v, lo, hi ) ( (lo) <= (v) && (v) < (hi) )
+
+
+
+
+ 265 # define nssv_HAS_CPP0X _HAS_CPP0X
+
+ 267 # define nssv_HAS_CPP0X 0
+
+
+
+
+ 272 #if nssv_COMPILER_MSVC_VER >= 1900
+ 273 # undef nssv_CPP11_OR_GREATER
+ 274 # define nssv_CPP11_OR_GREATER 1
+
+
+ 277 #define nssv_CPP11_90 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1500)
+ 278 #define nssv_CPP11_100 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1600)
+ 279 #define nssv_CPP11_110 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1700)
+ 280 #define nssv_CPP11_120 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1800)
+ 281 #define nssv_CPP11_140 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1900)
+ 282 #define nssv_CPP11_141 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1910)
+
+ 284 #define nssv_CPP14_000 (nssv_CPP14_OR_GREATER)
+ 285 #define nssv_CPP17_000 (nssv_CPP17_OR_GREATER)
+
+
+
+ 289 #define nssv_HAVE_CONSTEXPR_11 nssv_CPP11_140
+ 290 #define nssv_HAVE_EXPLICIT_CONVERSION nssv_CPP11_140
+ 291 #define nssv_HAVE_INLINE_NAMESPACE nssv_CPP11_140
+ 292 #define nssv_HAVE_IS_DEFAULT nssv_CPP11_140
+ 293 #define nssv_HAVE_IS_DELETE nssv_CPP11_140
+ 294 #define nssv_HAVE_NOEXCEPT nssv_CPP11_140
+ 295 #define nssv_HAVE_NULLPTR nssv_CPP11_100
+ 296 #define nssv_HAVE_REF_QUALIFIER nssv_CPP11_140
+ 297 #define nssv_HAVE_UNICODE_LITERALS nssv_CPP11_140
+ 298 #define nssv_HAVE_USER_DEFINED_LITERALS nssv_CPP11_140
+ 299 #define nssv_HAVE_WCHAR16_T nssv_CPP11_100
+ 300 #define nssv_HAVE_WCHAR32_T nssv_CPP11_100
+
+ 302 #if ! ( ( nssv_CPP11_OR_GREATER && nssv_COMPILER_CLANG_VERSION ) || nssv_BETWEEN( nssv_COMPILER_CLANG_VERSION, 300, 400 ) )
+ 303 # define nssv_HAVE_STD_DEFINED_LITERALS nssv_CPP11_140
+
+ 305 # define nssv_HAVE_STD_DEFINED_LITERALS 0
+
+
+
+
+ 310 #define nssv_HAVE_CONSTEXPR_14 nssv_CPP14_000
+
+
+
+ 314 #define nssv_HAVE_NODISCARD nssv_CPP17_000
+
+
+
+ 318 #define nssv_HAVE_STD_HASH nssv_CPP11_120
+
+
+
+
+
-
-
-
-
-
-
-
- 332 #define nssv_HAVE_BUILTIN_VER ( (nssv_CPP17_000 && nssv_COMPILER_MSVC_VERSION >= 142) || nssv_COMPILER_GNUC_VERSION > 0 || nssv_COMPILER_CLANG_VERSION >= 400 || nssv_COMPILER_APPLECLANG_VERSION >= 900 )
- 333 #define nssv_HAVE_BUILTIN_CE ( nssv_HAVE_BUILTIN_VER )
+
+
+
+
+
+
+
+
+
- 335 #define nssv_HAVE_BUILTIN_MEMCMP ( (nssv_HAVE_CONSTEXPR_14 && nssv_HAVE_BUILTIN_CE) || !nssv_HAVE_CONSTEXPR_14 )
- 336 #define nssv_HAVE_BUILTIN_STRLEN ( (nssv_HAVE_CONSTEXPR_11 && nssv_HAVE_BUILTIN_CE) || !nssv_HAVE_CONSTEXPR_11 )
+ 335 #define nssv_HAVE_BUILTIN_VER ( (nssv_CPP17_000 && nssv_COMPILER_MSVC_VERSION >= 142) || nssv_COMPILER_GNUC_VERSION > 0 || nssv_COMPILER_CLANG_VERSION >= 400 || nssv_COMPILER_APPLECLANG_VERSION >= 900 )
+ 336 #define nssv_HAVE_BUILTIN_CE ( nssv_HAVE_BUILTIN_VER )
-
- 339 # define nssv_HAVE_BUILTIN( x ) __has_builtin( x )
-
- 341 # define nssv_HAVE_BUILTIN( x ) 0
-
-
- 344 #if nssv_HAVE_BUILTIN(__builtin_memcmp) || nssv_HAVE_BUILTIN_VER
- 345 # define nssv_BUILTIN_MEMCMP __builtin_memcmp
-
- 347 # define nssv_BUILTIN_MEMCMP memcmp
-
-
- 350 #if nssv_HAVE_BUILTIN(__builtin_strlen) || nssv_HAVE_BUILTIN_VER
- 351 # define nssv_BUILTIN_STRLEN __builtin_strlen
-
- 353 # define nssv_BUILTIN_STRLEN strlen
-
-
-
-
- 358 #if nssv_HAVE_CONSTEXPR_11
- 359 # define nssv_constexpr constexpr
-
- 361 # define nssv_constexpr
-
-
- 364 #if nssv_HAVE_CONSTEXPR_14
- 365 # define nssv_constexpr14 constexpr
-
- 367 # define nssv_constexpr14
-
-
- 370 #if nssv_HAVE_EXPLICIT_CONVERSION
- 371 # define nssv_explicit explicit
-
- 373 # define nssv_explicit
-
-
- 376 #if nssv_HAVE_INLINE_NAMESPACE
- 377 # define nssv_inline_ns inline
-
- 379 # define nssv_inline_ns
-
-
- 382 #if nssv_HAVE_NOEXCEPT
- 383 # define nssv_noexcept noexcept
-
- 385 # define nssv_noexcept
-
-
-
-
-
-
-
-
-
-
- 396 #if nssv_HAVE_NULLPTR
- 397 # define nssv_nullptr nullptr
-
- 399 # define nssv_nullptr NULL
-
-
- 402 #if nssv_HAVE_NODISCARD
- 403 # define nssv_nodiscard [[nodiscard]]
-
- 405 # define nssv_nodiscard
-
-
-
-
-
-
-
-
-
-
- 416 #if ! nssv_CONFIG_NO_STREAM_INSERTION
-
-
-
- 420 #if ! nssv_CONFIG_NO_EXCEPTIONS
- 421 # include <stdexcept>
-
-
- 424 #if nssv_CPP11_OR_GREATER
- 425 # include <type_traits>
-
-
-
-
- 430 #if defined(__clang__)
- 431 # pragma clang diagnostic ignored "-Wreserved-user-defined-literal"
- 432 # pragma clang diagnostic push
- 433 # pragma clang diagnostic ignored "-Wuser-defined-literals"
- 434 #elif defined(__GNUC__)
- 435 # pragma GCC diagnostic push
- 436 # pragma GCC diagnostic ignored "-Wliteral-suffix"
-
-
- 439 #if nssv_COMPILER_MSVC_VERSION >= 140
- 440 # define nssv_SUPPRESS_MSGSL_WARNING(expr) [[gsl::suppress(expr)]]
- 441 # define nssv_SUPPRESS_MSVC_WARNING(code, descr) __pragma(warning(suppress: code) )
- 442 # define nssv_DISABLE_MSVC_WARNINGS(codes) __pragma(warning(push)) __pragma(warning(disable: codes))
-
- 444 # define nssv_SUPPRESS_MSGSL_WARNING(expr)
- 445 # define nssv_SUPPRESS_MSVC_WARNING(code, descr)
- 446 # define nssv_DISABLE_MSVC_WARNINGS(codes)
-
-
- 449 #if defined(__clang__)
- 450 # define nssv_RESTORE_WARNINGS() _Pragma("clang diagnostic pop")
- 451 #elif defined(__GNUC__)
- 452 # define nssv_RESTORE_WARNINGS() _Pragma("GCC diagnostic pop")
- 453 #elif nssv_COMPILER_MSVC_VERSION >= 140
- 454 # define nssv_RESTORE_WARNINGS() __pragma(warning(pop ))
-
- 456 # define nssv_RESTORE_WARNINGS()
-
-
-
-
-
-
-
-
-
- 466 nssv_DISABLE_MSVC_WARNINGS( 4455 26481 26472 )
-
-
-
- 470 namespace nonstd {
namespace sv_lite {
-
-
-
-
-
-
- 477 template<
typename CharT >
- 478 inline nssv_constexpr14
int compare( CharT
const * s1, CharT
const * s2, std::size_t count )
-
- 480 while ( count-- != 0 )
-
- 482 if ( *s1 < *s2 )
return -1;
- 483 if ( *s1 > *s2 )
return +1;
-
-
-
-
-
- 489 #if nssv_HAVE_BUILTIN_MEMCMP
+ 338 #define nssv_HAVE_BUILTIN_MEMCMP ( (nssv_HAVE_CONSTEXPR_14 && nssv_HAVE_BUILTIN_CE) || !nssv_HAVE_CONSTEXPR_14 )
+ 339 #define nssv_HAVE_BUILTIN_STRLEN ( (nssv_HAVE_CONSTEXPR_11 && nssv_HAVE_BUILTIN_CE) || !nssv_HAVE_CONSTEXPR_11 )
+
+
+ 342 # define nssv_HAVE_BUILTIN( x ) __has_builtin( x )
+
+ 344 # define nssv_HAVE_BUILTIN( x ) 0
+
+
+ 347 #if nssv_HAVE_BUILTIN(__builtin_memcmp) || nssv_HAVE_BUILTIN_VER
+ 348 # define nssv_BUILTIN_MEMCMP __builtin_memcmp
+
+ 350 # define nssv_BUILTIN_MEMCMP memcmp
+
+
+ 353 #if nssv_HAVE_BUILTIN(__builtin_strlen) || nssv_HAVE_BUILTIN_VER
+ 354 # define nssv_BUILTIN_STRLEN __builtin_strlen
+
+ 356 # define nssv_BUILTIN_STRLEN strlen
+
+
+
+
+ 361 #if nssv_HAVE_CONSTEXPR_11
+ 362 # define nssv_constexpr constexpr
+
+ 364 # define nssv_constexpr
+
+
+ 367 #if nssv_HAVE_CONSTEXPR_14
+ 368 # define nssv_constexpr14 constexpr
+
+ 370 # define nssv_constexpr14
+
+
+ 373 #if nssv_HAVE_EXPLICIT_CONVERSION
+ 374 # define nssv_explicit explicit
+
+ 376 # define nssv_explicit
+
+
+ 379 #if nssv_HAVE_INLINE_NAMESPACE
+ 380 # define nssv_inline_ns inline
+
+ 382 # define nssv_inline_ns
+
+
+ 385 #if nssv_HAVE_NOEXCEPT
+ 386 # define nssv_noexcept noexcept
+
+ 388 # define nssv_noexcept
+
+
+
+
+
+
+
+
+
+
+ 399 #if nssv_HAVE_NULLPTR
+ 400 # define nssv_nullptr nullptr
+
+ 402 # define nssv_nullptr NULL
+
+
+ 405 #if nssv_HAVE_NODISCARD
+ 406 # define nssv_nodiscard [[nodiscard]]
+
+ 408 # define nssv_nodiscard
+
+
+
+
+
+
+
+
+
+
+ 419 #if ! nssv_CONFIG_NO_STREAM_INSERTION
+
+
+
+ 423 #if ! nssv_CONFIG_NO_EXCEPTIONS
+ 424 # include <stdexcept>
+
+
+ 427 #if nssv_CPP11_OR_GREATER
+ 428 # include <type_traits>
+
+
+
+
+ 433 #if defined(__clang__)
+ 434 # pragma clang diagnostic ignored "-Wreserved-user-defined-literal"
+ 435 # pragma clang diagnostic push
+ 436 # pragma clang diagnostic ignored "-Wuser-defined-literals"
+ 437 #elif defined(__GNUC__)
+ 438 # pragma GCC diagnostic push
+ 439 # pragma GCC diagnostic ignored "-Wliteral-suffix"
+
+
+ 442 #if nssv_COMPILER_MSVC_VERSION >= 140
+ 443 # define nssv_SUPPRESS_MSGSL_WARNING(expr) [[gsl::suppress(expr)]]
+ 444 # define nssv_SUPPRESS_MSVC_WARNING(code, descr) __pragma(warning(suppress: code) )
+ 445 # define nssv_DISABLE_MSVC_WARNINGS(codes) __pragma(warning(push)) __pragma(warning(disable: codes))
+
+ 447 # define nssv_SUPPRESS_MSGSL_WARNING(expr)
+ 448 # define nssv_SUPPRESS_MSVC_WARNING(code, descr)
+ 449 # define nssv_DISABLE_MSVC_WARNINGS(codes)
+
+
+ 452 #if defined(__clang__)
+ 453 # define nssv_RESTORE_WARNINGS() _Pragma("clang diagnostic pop")
+ 454 #elif defined(__GNUC__)
+ 455 # define nssv_RESTORE_WARNINGS() _Pragma("GCC diagnostic pop")
+ 456 #elif nssv_COMPILER_MSVC_VERSION >= 140
+ 457 # define nssv_RESTORE_WARNINGS() __pragma(warning(pop ))
+
+ 459 # define nssv_RESTORE_WARNINGS()
+
+
+
+
+
+
+
+
+
+ 469 nssv_DISABLE_MSVC_WARNINGS( 4455 26481 26472 )
+
+
+
+ 473 namespace nonstd {
namespace sv_lite {
+
+
+
+
+
+
+
+
+ 482 class Traits = std::char_traits<CharT>
+
+ 484 class basic_string_view;
+
+
+
+
+
-
-
- 493 inline nssv_constexpr14
int compare(
char const * s1,
char const * s2, std::size_t count )
-
- 495 return nssv_BUILTIN_MEMCMP( s1, s2, count );
-
-
-
-
- 500 #if nssv_HAVE_BUILTIN_STRLEN
-
-
-
- 504 inline nssv_constexpr std::size_t length(
char const * s )
-
- 506 return nssv_BUILTIN_STRLEN( s );
-
-
-
-
- 511 #if defined(__OPTIMIZE__)
-
-
-
+ 491 template<
typename CharT >
+ 492 inline nssv_constexpr14
int compare( CharT
const * s1, CharT
const * s2, std::size_t count )
+
+ 494 while ( count-- != 0 )
+
+ 496 if ( *s1 < *s2 )
return -1;
+ 497 if ( *s1 > *s2 )
return +1;
+
+
+
+
+
+ 503 #if nssv_HAVE_BUILTIN_MEMCMP
+
+
+
+ 507 inline nssv_constexpr14
int compare(
char const * s1,
char const * s2, std::size_t count )
+
+ 509 return nssv_BUILTIN_MEMCMP( s1, s2, count );
+
+
+
+
+ 514 #if nssv_HAVE_BUILTIN_STRLEN
- 516 template<
typename CharT >
- 517 inline nssv_constexpr std::size_t length( CharT * s, std::size_t result = 0 )
-
- 519 return *s ==
'\0' ? result : length( s + 1, result + 1 );
-
-
-
-
-
-
- 526 template<
typename CharT >
- 527 inline nssv_constexpr14 std::size_t length( CharT * s )
-
- 529 std::size_t result = 0;
- 530 while ( *s++ !=
'\0' )
-
-
-
-
-
-
-
-
-
-
-
-
-
- 544 class Traits = std::char_traits<CharT>
-
- 546 class basic_string_view;
-
-
-
-
-
-
-
-
-
-
- 557 class basic_string_view
-
-
-
-
- 562 typedef Traits traits_type;
- 563 typedef CharT value_type;
-
- 565 typedef CharT * pointer;
- 566 typedef CharT
const * const_pointer;
- 567 typedef CharT & reference;
- 568 typedef CharT
const & const_reference;
+
+
+ 518 inline nssv_constexpr std::size_t length(
char const * s )
+
+ 520 return nssv_BUILTIN_STRLEN( s );
+
+
+
+
+ 525 #if defined(__OPTIMIZE__)
+
+
+
+
+ 530 template<
typename CharT >
+ 531 inline nssv_constexpr std::size_t length( CharT * s, std::size_t result = 0 )
+
+ 533 return *s ==
'\0' ? result : length( s + 1, result + 1 );
+
+
+
+
+
+
+ 540 template<
typename CharT >
+ 541 inline nssv_constexpr14 std::size_t length( CharT * s )
+
+ 543 std::size_t result = 0;
+ 544 while ( *s++ !=
'\0' )
+
+
+
+
+
+
+
+
+ 553 #if nssv_CPP11_OR_GREATER && ! nssv_CPP17_OR_GREATER
+ 554 #if defined(__OPTIMIZE__)
+
+
+
+
+ 559 template<
class CharT,
class Traits = std::
char_traits<CharT> >
+ 560 constexpr
const CharT* search( basic_string_view<CharT, Traits> haystack, basic_string_view<CharT, Traits> needle )
+
+ 562 return haystack.starts_with( needle ) ? haystack.begin() :
+ 563 haystack.empty() ? haystack.end() : search( haystack.substr(1), needle );
+
+
+
+
+
- 570 typedef const_pointer iterator;
- 571 typedef const_pointer const_iterator;
- 572 typedef std::reverse_iterator< const_iterator > reverse_iterator;
- 573 typedef std::reverse_iterator< const_iterator > const_reverse_iterator;
-
- 575 typedef std::size_t size_type;
- 576 typedef std::ptrdiff_t difference_type;
-
-
-
- 580 nssv_constexpr basic_string_view() nssv_noexcept
- 581 : data_( nssv_nullptr )
-
-
+ 570 template<
class CharT,
class Traits = std::
char_traits<CharT> >
+ 571 constexpr
const CharT* search( basic_string_view<CharT, Traits> haystack, basic_string_view<CharT, Traits> needle )
+
+ 573 return std::search( haystack.begin(), haystack.end(), needle.begin(), needle.end() );
+
+
+
+
+
+
+
+
+
+
- 585 #if nssv_CPP11_OR_GREATER
- 586 nssv_constexpr basic_string_view( basic_string_view
const & other ) nssv_noexcept =
default;
-
- 588 nssv_constexpr basic_string_view( basic_string_view
const & other ) nssv_noexcept
- 589 : data_( other.data_)
- 590 , size_( other.size_)
-
-
-
- 594 nssv_constexpr basic_string_view( CharT
const * s, size_type count ) nssv_noexcept
-
-
-
-
- 599 nssv_constexpr basic_string_view( CharT
const * s) nssv_noexcept
-
- 601 #if nssv_CPP17_OR_GREATER
- 602 , size_( Traits::length(s) )
- 603 #elif nssv_CPP11_OR_GREATER
- 604 , size_( detail::length(s) )
-
- 606 , size_( Traits::length(s) )
-
-
-
-
-
- 612 #if nssv_CPP11_OR_GREATER
- 613 nssv_constexpr14 basic_string_view & operator=( basic_string_view
const & other ) nssv_noexcept =
default;
-
- 615 nssv_constexpr14 basic_string_view & operator=( basic_string_view
const & other ) nssv_noexcept
-
-
-
-
-
-
-
-
-
- 625 nssv_constexpr const_iterator begin() const nssv_noexcept {
return data_; }
- 626 nssv_constexpr const_iterator end() const nssv_noexcept {
return data_ + size_; }
-
- 628 nssv_constexpr const_iterator cbegin() const nssv_noexcept {
return begin(); }
- 629 nssv_constexpr const_iterator cend() const nssv_noexcept {
return end(); }
-
- 631 nssv_constexpr const_reverse_iterator rbegin() const nssv_noexcept {
return const_reverse_iterator( end() ); }
- 632 nssv_constexpr const_reverse_iterator rend() const nssv_noexcept {
return const_reverse_iterator( begin() ); }
-
- 634 nssv_constexpr const_reverse_iterator crbegin() const nssv_noexcept {
return rbegin(); }
- 635 nssv_constexpr const_reverse_iterator crend() const nssv_noexcept {
return rend(); }
-
-
-
- 639 nssv_constexpr size_type size() const nssv_noexcept {
return size_; }
- 640 nssv_constexpr size_type length() const nssv_noexcept {
return size_; }
- 641 nssv_constexpr size_type max_size() const nssv_noexcept {
return (std::numeric_limits< size_type >::max)(); }
+
+
+
+
+
+ 590 class basic_string_view
+
+
+
+
+ 595 typedef Traits traits_type;
+ 596 typedef CharT value_type;
+
+ 598 typedef CharT * pointer;
+ 599 typedef CharT
const * const_pointer;
+ 600 typedef CharT & reference;
+ 601 typedef CharT
const & const_reference;
+
+ 603 typedef const_pointer iterator;
+ 604 typedef const_pointer const_iterator;
+ 605 typedef std::reverse_iterator< const_iterator > reverse_iterator;
+ 606 typedef std::reverse_iterator< const_iterator > const_reverse_iterator;
+
+ 608 typedef std::size_t size_type;
+ 609 typedef std::ptrdiff_t difference_type;
+
+
+
+ 613 nssv_constexpr basic_string_view() nssv_noexcept
+ 614 : data_( nssv_nullptr )
+
+
+
+ 618 #if nssv_CPP11_OR_GREATER
+ 619 nssv_constexpr basic_string_view( basic_string_view
const & other ) nssv_noexcept =
default;
+
+ 621 nssv_constexpr basic_string_view( basic_string_view
const & other ) nssv_noexcept
+ 622 : data_( other.data_)
+ 623 , size_( other.size_)
+
+
+
+ 627 nssv_constexpr basic_string_view( CharT
const * s, size_type count ) nssv_noexcept
+
+
+
+
+ 632 nssv_constexpr basic_string_view( CharT
const * s) nssv_noexcept
+
+ 634 #if nssv_CPP17_OR_GREATER
+ 635 , size_( Traits::length(s) )
+ 636 #elif nssv_CPP11_OR_GREATER
+ 637 , size_( detail::length(s) )
+
+ 639 , size_( Traits::length(s) )
+
+
-
- 644 nssv_nodiscard nssv_constexpr
bool empty() const nssv_noexcept
-
-
-
-
-
+ 643 #if nssv_HAVE_NULLPTR
+ 644 # if nssv_HAVE_IS_DELETE
+ 645 nssv_constexpr basic_string_view( std::nullptr_t ) nssv_noexcept =
delete;
+
+ 647 private: nssv_constexpr basic_string_view( std::nullptr_t ) nssv_noexcept;
public:
+
+
- 651 nssv_constexpr const_reference operator[]( size_type pos )
const
-
- 653 return data_at( pos );
-
-
- 656 nssv_constexpr14 const_reference at( size_type pos )
const
-
- 658 #if nssv_CONFIG_NO_EXCEPTIONS
- 659 assert( pos < size() );
-
-
-
- 663 throw std::out_of_range(
"nonstd::string_view::at()");
-
-
- 666 return data_at( pos );
-
+
+
+ 653 #if nssv_CPP11_OR_GREATER
+ 654 nssv_constexpr14 basic_string_view & operator=( basic_string_view
const & other ) nssv_noexcept =
default;
+
+ 656 nssv_constexpr14 basic_string_view & operator=( basic_string_view
const & other ) nssv_noexcept
+
+
+
+
+
+
+
+
+
+ 666 nssv_constexpr const_iterator begin() const nssv_noexcept {
return data_; }
+ 667 nssv_constexpr const_iterator end() const nssv_noexcept {
return data_ + size_; }
- 669 nssv_constexpr const_reference front()
const {
return data_at( 0 ); }
- 670 nssv_constexpr const_reference back()
const {
return data_at( size() - 1 ); }
+ 669 nssv_constexpr const_iterator cbegin() const nssv_noexcept {
return begin(); }
+ 670 nssv_constexpr const_iterator cend() const nssv_noexcept {
return end(); }
- 672 nssv_constexpr const_pointer data() const nssv_noexcept {
return data_; }
-
-
-
- 676 nssv_constexpr14
void remove_prefix( size_type n )
-
- 678 assert( n <= size() );
-
-
-
-
- 683 nssv_constexpr14
void remove_suffix( size_type n )
-
- 685 assert( n <= size() );
-
-
-
- 689 nssv_constexpr14
void swap( basic_string_view & other ) nssv_noexcept
-
- 691 const basic_string_view tmp(other);
-
-
-
-
-
-
- 698 size_type copy( CharT * dest, size_type n, size_type pos = 0 )
const
-
- 700 #if nssv_CONFIG_NO_EXCEPTIONS
- 701 assert( pos <= size() );
-
-
-
- 705 throw std::out_of_range(
"nonstd::string_view::copy()");
-
-
- 708 const size_type rlen = (std::min)( n, size() - pos );
+ 672 nssv_constexpr const_reverse_iterator rbegin() const nssv_noexcept {
return const_reverse_iterator( end() ); }
+ 673 nssv_constexpr const_reverse_iterator rend() const nssv_noexcept {
return const_reverse_iterator( begin() ); }
+
+ 675 nssv_constexpr const_reverse_iterator crbegin() const nssv_noexcept {
return rbegin(); }
+ 676 nssv_constexpr const_reverse_iterator crend() const nssv_noexcept {
return rend(); }
+
+
+
+ 680 nssv_constexpr size_type size() const nssv_noexcept {
return size_; }
+ 681 nssv_constexpr size_type length() const nssv_noexcept {
return size_; }
+ 682 nssv_constexpr size_type max_size() const nssv_noexcept {
return (std::numeric_limits< size_type >::max)(); }
+
+
+ 685 nssv_nodiscard nssv_constexpr
bool empty() const nssv_noexcept
+
+
+
+
+
+
+ 692 nssv_constexpr const_reference operator[]( size_type pos )
const
+
+ 694 return data_at( pos );
+
+
+ 697 nssv_constexpr14 const_reference at( size_type pos )
const
+
+ 699 #if nssv_CONFIG_NO_EXCEPTIONS
+ 700 assert( pos < size() );
+
+
+
+ 704 throw std::out_of_range(
"nonstd::string_view::at()");
+
+
+ 707 return data_at( pos );
+
- 710 (void) Traits::copy( dest, data() + pos, rlen );
-
-
-
+ 710 nssv_constexpr const_reference front()
const {
return data_at( 0 ); }
+ 711 nssv_constexpr const_reference back()
const {
return data_at( size() - 1 ); }
+
+ 713 nssv_constexpr const_pointer data() const nssv_noexcept {
return data_; }
- 715 nssv_constexpr14 basic_string_view substr( size_type pos = 0, size_type n = npos )
const
-
- 717 #if nssv_CONFIG_NO_EXCEPTIONS
- 718 assert( pos <= size() );
-
-
-
- 722 throw std::out_of_range(
"nonstd::string_view::substr()");
-
-
- 725 return basic_string_view( data() + pos, (std::min)( n, size() - pos ) );
-
-
-
+
+
+ 717 nssv_constexpr14
void remove_prefix( size_type n )
+
+ 719 assert( n <= size() );
+
+
+
+
+ 724 nssv_constexpr14
void remove_suffix( size_type n )
+
+ 726 assert( n <= size() );
+
+
- 730 nssv_constexpr14
int compare( basic_string_view other )
const nssv_noexcept
+ 730 nssv_constexpr14
void swap( basic_string_view & other ) nssv_noexcept
- 732 #if nssv_CPP17_OR_GREATER
- 733 if (
const int result = Traits::compare( data(), other.data(), (std::min)( size(), other.size() ) ) )
-
- 735 if (
const int result = detail::compare( data(), other.data(), (std::min)( size(), other.size() ) ) )
-
-
-
-
-
- 741 return size() == other.size() ? 0 : size() < other.size() ? -1 : 1;
-
-
- 744 nssv_constexpr
int compare( size_type pos1, size_type n1, basic_string_view other )
const
-
- 746 return substr( pos1, n1 ).compare( other );
-
-
- 749 nssv_constexpr
int compare( size_type pos1, size_type n1, basic_string_view other, size_type pos2, size_type n2 )
const
-
- 751 return substr( pos1, n1 ).compare( other.substr( pos2, n2 ) );
-
-
- 754 nssv_constexpr
int compare( CharT
const * s )
const
-
- 756 return compare( basic_string_view( s ) );
-
-
- 759 nssv_constexpr
int compare( size_type pos1, size_type n1, CharT
const * s )
const
-
- 761 return substr( pos1, n1 ).compare( basic_string_view( s ) );
-
-
- 764 nssv_constexpr
int compare( size_type pos1, size_type n1, CharT
const * s, size_type n2 )
const
-
- 766 return substr( pos1, n1 ).compare( basic_string_view( s, n2 ) );
+ 732 const basic_string_view tmp(other);
+
+
+
+
+
+
+ 739 size_type copy( CharT * dest, size_type n, size_type pos = 0 )
const
+
+ 741 #if nssv_CONFIG_NO_EXCEPTIONS
+ 742 assert( pos <= size() );
+
+
+
+ 746 throw std::out_of_range(
"nonstd::string_view::copy()");
+
+
+ 749 const size_type rlen = (std::min)( n, size() - pos );
+
+ 751 (void) Traits::copy( dest, data() + pos, rlen );
+
+
+
+
+ 756 nssv_constexpr14 basic_string_view substr( size_type pos = 0, size_type n = npos )
const
+
+ 758 #if nssv_CONFIG_NO_EXCEPTIONS
+ 759 assert( pos <= size() );
+
+
+
+ 763 throw std::out_of_range(
"nonstd::string_view::substr()");
+
+
+ 766 return basic_string_view( data() + pos, (std::min)( n, size() - pos ) );
-
+
-
-
- 773 nssv_constexpr
bool starts_with( basic_string_view v )
const nssv_noexcept
-
- 775 return size() >= v.size() && compare( 0, v.size(), v ) == 0;
-
-
- 778 nssv_constexpr
bool starts_with( CharT c )
const nssv_noexcept
-
- 780 return starts_with( basic_string_view( &c, 1 ) );
-
-
- 783 nssv_constexpr
bool starts_with( CharT
const * s )
const
-
- 785 return starts_with( basic_string_view( s ) );
-
-
-
+ 771 nssv_constexpr14
int compare( basic_string_view other )
const nssv_noexcept
+
+ 773 #if nssv_CPP17_OR_GREATER
+ 774 if (
const int result = Traits::compare( data(), other.data(), (std::min)( size(), other.size() ) ) )
+
+ 776 if (
const int result = detail::compare( data(), other.data(), (std::min)( size(), other.size() ) ) )
+
+
+
+
+
+ 782 return size() == other.size() ? 0 : size() < other.size() ? -1 : 1;
+
+
+ 785 nssv_constexpr
int compare( size_type pos1, size_type n1, basic_string_view other )
const
+
+ 787 return substr( pos1, n1 ).compare( other );
+
- 790 nssv_constexpr
bool ends_with( basic_string_view v )
const nssv_noexcept
+ 790 nssv_constexpr
int compare( size_type pos1, size_type n1, basic_string_view other, size_type pos2, size_type n2 )
const
- 792 return size() >= v.size() && compare( size() - v.size(), npos, v ) == 0;
+ 792 return substr( pos1, n1 ).compare( other.substr( pos2, n2 ) );
- 795 nssv_constexpr
bool ends_with( CharT c )
const nssv_noexcept
+ 795 nssv_constexpr
int compare( CharT
const * s )
const
- 797 return ends_with( basic_string_view( &c, 1 ) );
+ 797 return compare( basic_string_view( s ) );
- 800 nssv_constexpr
bool ends_with( CharT
const * s )
const
+ 800 nssv_constexpr
int compare( size_type pos1, size_type n1, CharT
const * s )
const
- 802 return ends_with( basic_string_view( s ) );
+ 802 return substr( pos1, n1 ).compare( basic_string_view( s ) );
-
-
- 807 nssv_constexpr14 size_type find( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
-
- 809 return assert( v.size() == 0 || v.data() != nssv_nullptr )
-
-
- 812 : to_pos( std::search( cbegin() + pos, cend(), v.cbegin(), v.cend(), Traits::eq ) );
-
-
- 815 nssv_constexpr14 size_type find( CharT c, size_type pos = 0 ) const nssv_noexcept
-
- 817 return find( basic_string_view( &c, 1 ), pos );
-
-
- 820 nssv_constexpr14 size_type find( CharT
const * s, size_type pos, size_type n )
const
-
- 822 return find( basic_string_view( s, n ), pos );
-
-
- 825 nssv_constexpr14 size_type find( CharT
const * s, size_type pos = 0 ) const
-
- 827 return find( basic_string_view( s ), pos );
-
-
-
-
- 832 nssv_constexpr14 size_type rfind( basic_string_view v, size_type pos = npos )
const nssv_noexcept
-
- 834 if ( size() < v.size() )
-
-
-
-
-
-
- 841 return (std::min)( size(), pos );
-
-
- 844 const_iterator last = cbegin() + (std::min)( size() - v.size(), pos ) + v.size();
- 845 const_iterator result = std::find_end( cbegin(), last, v.cbegin(), v.cend(), Traits::eq );
-
- 847 return result != last ? size_type( result - cbegin() ) : npos;
-
-
- 850 nssv_constexpr14 size_type rfind( CharT c, size_type pos = npos )
const nssv_noexcept
-
- 852 return rfind( basic_string_view( &c, 1 ), pos );
-
-
- 855 nssv_constexpr14 size_type rfind( CharT
const * s, size_type pos, size_type n )
const
-
- 857 return rfind( basic_string_view( s, n ), pos );
-
-
- 860 nssv_constexpr14 size_type rfind( CharT
const * s, size_type pos = npos )
const
-
- 862 return rfind( basic_string_view( s ), pos );
-
-
-
-
- 867 nssv_constexpr size_type find_first_of( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
-
-
-
- 871 : to_pos( std::find_first_of( cbegin() + pos, cend(), v.cbegin(), v.cend(), Traits::eq ) );
-
-
- 874 nssv_constexpr size_type find_first_of( CharT c, size_type pos = 0 ) const nssv_noexcept
-
- 876 return find_first_of( basic_string_view( &c, 1 ), pos );
-
-
- 879 nssv_constexpr size_type find_first_of( CharT
const * s, size_type pos, size_type n )
const
-
- 881 return find_first_of( basic_string_view( s, n ), pos );
-
-
- 884 nssv_constexpr size_type find_first_of( CharT
const * s, size_type pos = 0 ) const
-
- 886 return find_first_of( basic_string_view( s ), pos );
-
-
-
-
- 891 nssv_constexpr size_type find_last_of( basic_string_view v, size_type pos = npos )
const nssv_noexcept
-
-
-
-
- 896 ? find_last_of( v, size() - 1 )
- 897 : to_pos( std::find_first_of( const_reverse_iterator( cbegin() + pos + 1 ), crend(), v.cbegin(), v.cend(), Traits::eq ) );
-
-
- 900 nssv_constexpr size_type find_last_of( CharT c, size_type pos = npos )
const nssv_noexcept
-
- 902 return find_last_of( basic_string_view( &c, 1 ), pos );
-
-
- 905 nssv_constexpr size_type find_last_of( CharT
const * s, size_type pos, size_type count )
const
-
- 907 return find_last_of( basic_string_view( s, count ), pos );
-
-
- 910 nssv_constexpr size_type find_last_of( CharT
const * s, size_type pos = npos )
const
-
- 912 return find_last_of( basic_string_view( s ), pos );
-
-
-
-
- 917 nssv_constexpr size_type find_first_not_of( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
-
-
-
- 921 : to_pos( std::find_if( cbegin() + pos, cend(), not_in_view( v ) ) );
-
-
- 924 nssv_constexpr size_type find_first_not_of( CharT c, size_type pos = 0 ) const nssv_noexcept
-
- 926 return find_first_not_of( basic_string_view( &c, 1 ), pos );
-
-
- 929 nssv_constexpr size_type find_first_not_of( CharT
const * s, size_type pos, size_type count )
const
-
- 931 return find_first_not_of( basic_string_view( s, count ), pos );
-
-
- 934 nssv_constexpr size_type find_first_not_of( CharT
const * s, size_type pos = 0 ) const
-
- 936 return find_first_not_of( basic_string_view( s ), pos );
-
-
-
-
- 941 nssv_constexpr size_type find_last_not_of( basic_string_view v, size_type pos = npos )
const nssv_noexcept
-
-
-
-
- 946 ? find_last_not_of( v, size() - 1 )
- 947 : to_pos( std::find_if( const_reverse_iterator( cbegin() + pos + 1 ), crend(), not_in_view( v ) ) );
-
-
- 950 nssv_constexpr size_type find_last_not_of( CharT c, size_type pos = npos )
const nssv_noexcept
-
- 952 return find_last_not_of( basic_string_view( &c, 1 ), pos );
-
-
- 955 nssv_constexpr size_type find_last_not_of( CharT
const * s, size_type pos, size_type count )
const
-
- 957 return find_last_not_of( basic_string_view( s, count ), pos );
-
-
- 960 nssv_constexpr size_type find_last_not_of( CharT
const * s, size_type pos = npos )
const
-
- 962 return find_last_not_of( basic_string_view( s ), pos );
-
-
-
-
- 967 #if nssv_CPP17_OR_GREATER
- 968 static nssv_constexpr size_type npos = size_type(-1);
- 969 #elif nssv_CPP11_OR_GREATER
- 970 enum : size_type { npos = size_type(-1) };
-
- 972 enum { npos = size_type(-1) };
-
+ 805 nssv_constexpr
int compare( size_type pos1, size_type n1, CharT
const * s, size_type n2 )
const
+
+ 807 return substr( pos1, n1 ).compare( basic_string_view( s, n2 ) );
+
+
+
+
+
+
+ 814 nssv_constexpr
bool starts_with( basic_string_view v )
const nssv_noexcept
+
+ 816 return size() >= v.size() && compare( 0, v.size(), v ) == 0;
+
+
+ 819 nssv_constexpr
bool starts_with( CharT c )
const nssv_noexcept
+
+ 821 return starts_with( basic_string_view( &c, 1 ) );
+
+
+ 824 nssv_constexpr
bool starts_with( CharT
const * s )
const
+
+ 826 return starts_with( basic_string_view( s ) );
+
+
+
+
+ 831 nssv_constexpr
bool ends_with( basic_string_view v )
const nssv_noexcept
+
+ 833 return size() >= v.size() && compare( size() - v.size(), npos, v ) == 0;
+
+
+ 836 nssv_constexpr
bool ends_with( CharT c )
const nssv_noexcept
+
+ 838 return ends_with( basic_string_view( &c, 1 ) );
+
+
+ 841 nssv_constexpr
bool ends_with( CharT
const * s )
const
+
+ 843 return ends_with( basic_string_view( s ) );
+
+
+
+
+ 848 nssv_constexpr size_type find( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
+
+ 850 return assert( v.size() == 0 || v.data() != nssv_nullptr )
+
+
+ 853 #
if nssv_CPP11_OR_GREATER && ! nssv_CPP17_OR_GREATER
+ 854 detail::search( substr(pos), v )
+
+ 856 std::search( cbegin() + pos, cend(), v.cbegin(), v.cend(), Traits::eq )
+
+
+
+
+ 861 nssv_constexpr size_type find( CharT c, size_type pos = 0 ) const nssv_noexcept
+
+ 863 return find( basic_string_view( &c, 1 ), pos );
+
+
+ 866 nssv_constexpr size_type find( CharT
const * s, size_type pos, size_type n )
const
+
+ 868 return find( basic_string_view( s, n ), pos );
+
+
+ 871 nssv_constexpr size_type find( CharT
const * s, size_type pos = 0 ) const
+
+ 873 return find( basic_string_view( s ), pos );
+
+
+
+
+ 878 nssv_constexpr14 size_type rfind( basic_string_view v, size_type pos = npos )
const nssv_noexcept
+
+ 880 if ( size() < v.size() )
+
+
+
+
+
+
+ 887 return (std::min)( size(), pos );
+
+
+ 890 const_iterator last = cbegin() + (std::min)( size() - v.size(), pos ) + v.size();
+ 891 const_iterator result = std::find_end( cbegin(), last, v.cbegin(), v.cend(), Traits::eq );
+
+ 893 return result != last ? size_type( result - cbegin() ) : npos;
+
+
+ 896 nssv_constexpr14 size_type rfind( CharT c, size_type pos = npos )
const nssv_noexcept
+
+ 898 return rfind( basic_string_view( &c, 1 ), pos );
+
+
+ 901 nssv_constexpr14 size_type rfind( CharT
const * s, size_type pos, size_type n )
const
+
+ 903 return rfind( basic_string_view( s, n ), pos );
+
+
+ 906 nssv_constexpr14 size_type rfind( CharT
const * s, size_type pos = npos )
const
+
+ 908 return rfind( basic_string_view( s ), pos );
+
+
+
+
+ 913 nssv_constexpr size_type find_first_of( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
+
+
+
+ 917 : to_pos( std::find_first_of( cbegin() + pos, cend(), v.cbegin(), v.cend(), Traits::eq ) );
+
+
+ 920 nssv_constexpr size_type find_first_of( CharT c, size_type pos = 0 ) const nssv_noexcept
+
+ 922 return find_first_of( basic_string_view( &c, 1 ), pos );
+
+
+ 925 nssv_constexpr size_type find_first_of( CharT
const * s, size_type pos, size_type n )
const
+
+ 927 return find_first_of( basic_string_view( s, n ), pos );
+
+
+ 930 nssv_constexpr size_type find_first_of( CharT
const * s, size_type pos = 0 ) const
+
+ 932 return find_first_of( basic_string_view( s ), pos );
+
+
+
+
+ 937 nssv_constexpr size_type find_last_of( basic_string_view v, size_type pos = npos )
const nssv_noexcept
+
+
+
+
+ 942 ? find_last_of( v, size() - 1 )
+ 943 : to_pos( std::find_first_of( const_reverse_iterator( cbegin() + pos + 1 ), crend(), v.cbegin(), v.cend(), Traits::eq ) );
+
+
+ 946 nssv_constexpr size_type find_last_of( CharT c, size_type pos = npos )
const nssv_noexcept
+
+ 948 return find_last_of( basic_string_view( &c, 1 ), pos );
+
+
+ 951 nssv_constexpr size_type find_last_of( CharT
const * s, size_type pos, size_type count )
const
+
+ 953 return find_last_of( basic_string_view( s, count ), pos );
+
+
+ 956 nssv_constexpr size_type find_last_of( CharT
const * s, size_type pos = npos )
const
+
+ 958 return find_last_of( basic_string_view( s ), pos );
+
+
+
+
+ 963 nssv_constexpr size_type find_first_not_of( basic_string_view v, size_type pos = 0 ) const nssv_noexcept
+
+
+
+ 967 : to_pos( std::find_if( cbegin() + pos, cend(), not_in_view( v ) ) );
+
+
+ 970 nssv_constexpr size_type find_first_not_of( CharT c, size_type pos = 0 ) const nssv_noexcept
+
+ 972 return find_first_not_of( basic_string_view( &c, 1 ), pos );
+
-
-
-
- 978 const basic_string_view v;
+ 975 nssv_constexpr size_type find_first_not_of( CharT
const * s, size_type pos, size_type count )
const
+
+ 977 return find_first_not_of( basic_string_view( s, count ), pos );
+
- 980 nssv_constexpr
explicit not_in_view( basic_string_view v_ ) : v( v_ ) {}
-
- 982 nssv_constexpr
bool operator()( CharT c )
const
-
- 984 return npos == v.find_first_of( c );
-
-
-
- 988 nssv_constexpr size_type to_pos( const_iterator it )
const
-
- 990 return it == cend() ? npos : size_type( it - cbegin() );
-
-
- 993 nssv_constexpr size_type to_pos( const_reverse_iterator it )
const
-
- 995 return it == crend() ? npos : size_type( crend() - it - 1 );
-
-
- 998 nssv_constexpr const_reference data_at( size_type pos )
const
-
- 1000 #if nssv_BETWEEN( nssv_COMPILER_GNUC_VERSION, 1, 500 )
-
-
- 1003 return assert( pos < size() ), data_[pos];
-
-
-
-
- 1008 const_pointer data_;
-
+ 980 nssv_constexpr size_type find_first_not_of( CharT
const * s, size_type pos = 0 ) const
+
+ 982 return find_first_not_of( basic_string_view( s ), pos );
+
+
+
+
+ 987 nssv_constexpr size_type find_last_not_of( basic_string_view v, size_type pos = npos )
const nssv_noexcept
+
+
+
+
+ 992 ? find_last_not_of( v, size() - 1 )
+ 993 : to_pos( std::find_if( const_reverse_iterator( cbegin() + pos + 1 ), crend(), not_in_view( v ) ) );
+
+
+ 996 nssv_constexpr size_type find_last_not_of( CharT c, size_type pos = npos )
const nssv_noexcept
+
+ 998 return find_last_not_of( basic_string_view( &c, 1 ), pos );
+
+
+ 1001 nssv_constexpr size_type find_last_not_of( CharT
const * s, size_type pos, size_type count )
const
+
+ 1003 return find_last_not_of( basic_string_view( s, count ), pos );
+
+
+ 1006 nssv_constexpr size_type find_last_not_of( CharT
const * s, size_type pos = npos )
const
+
+ 1008 return find_last_not_of( basic_string_view( s ), pos );
+
-
- 1012 #if nssv_CONFIG_CONVERSION_STD_STRING_CLASS_METHODS
-
- 1014 template<
class Allocator >
- 1015 basic_string_view( std::basic_string<CharT, Traits, Allocator>
const & s ) nssv_noexcept
-
-
-
-
- 1020 #if nssv_HAVE_EXPLICIT_CONVERSION
-
- 1022 template<
class Allocator >
- 1023 explicit operator std::basic_string<CharT, Traits, Allocator>()
const
-
-
-
+
+
+ 1013 #if nssv_CPP17_OR_GREATER
+ 1014 static nssv_constexpr size_type npos = size_type(-1);
+ 1015 #elif nssv_CPP11_OR_GREATER
+ 1016 enum : size_type { npos = size_type(-1) };
+
+ 1018 enum { npos = size_type(-1) };
+
+
+
+
+
+ 1024 const basic_string_view v;
+
+ 1026 nssv_constexpr
explicit not_in_view( basic_string_view v_ ) : v( v_ ) {}
-
-
- 1030 #if nssv_CPP11_OR_GREATER
-
- 1032 template<
class Allocator = std::allocator<CharT> >
- 1033 std::basic_string<CharT, Traits, Allocator>
- 1034 to_string( Allocator
const & a = Allocator() )
const
+ 1028 nssv_constexpr
bool operator()( CharT c )
const
+
+ 1030 return npos == v.find_first_of( c );
+
+
+
+ 1034 nssv_constexpr size_type to_pos( const_iterator it )
const
- 1036 return std::basic_string<CharT, Traits, Allocator>( begin(), end(), a );
+ 1036 return it == cend() ? npos : size_type( it - cbegin() );
-
-
- 1041 std::basic_string<CharT, Traits>
-
-
- 1044 return std::basic_string<CharT, Traits>( begin(), end() );
-
-
- 1047 template<
class Allocator >
- 1048 std::basic_string<CharT, Traits, Allocator>
-
-
- 1051 return std::basic_string<CharT, Traits, Allocator>( begin(), end(), a );
-
-
-
-
-
-
-
-
-
-
-
-
-
+ 1039 nssv_constexpr size_type to_pos( const_reverse_iterator it )
const
+
+ 1041 return it == crend() ? npos : size_type( crend() - it - 1 );
+
+
+ 1044 nssv_constexpr const_reference data_at( size_type pos )
const
+
+ 1046 #if nssv_BETWEEN( nssv_COMPILER_GNUC_VERSION, 1, 500 )
+
+
+ 1049 return assert( pos < size() ), data_[pos];
+
+
+
+
+ 1054 const_pointer data_;
+
+
+
+ 1058 #if nssv_CONFIG_CONVERSION_STD_STRING_CLASS_METHODS
+
+ 1060 template<
class Allocator >
+ 1061 basic_string_view( std::basic_string<CharT, Traits, Allocator>
const & s ) nssv_noexcept
+
+
+
- 1066 template<
class CharT,
class Traits >
- 1067 nssv_constexpr
bool operator== (
- 1068 basic_string_view <CharT, Traits> lhs,
- 1069 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1070 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
-
- 1072 template<
class CharT,
class Traits >
- 1073 nssv_constexpr
bool operator!= (
- 1074 basic_string_view <CharT, Traits> lhs,
- 1075 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1076 {
return !( lhs == rhs ); }
+ 1066 #if nssv_HAVE_EXPLICIT_CONVERSION
+
+ 1068 template<
class Allocator >
+ 1069 explicit operator std::basic_string<CharT, Traits, Allocator>()
const
+
+
+
+
+
+
+ 1076 #if nssv_CPP11_OR_GREATER
- 1078 template<
class CharT,
class Traits >
- 1079 nssv_constexpr
bool operator< (
- 1080 basic_string_view <CharT, Traits> lhs,
- 1081 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1082 {
return lhs.compare( rhs ) < 0; }
-
- 1084 template<
class CharT,
class Traits >
- 1085 nssv_constexpr
bool operator<= (
- 1086 basic_string_view <CharT, Traits> lhs,
- 1087 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1088 {
return lhs.compare( rhs ) <= 0; }
-
- 1090 template<
class CharT,
class Traits >
- 1091 nssv_constexpr
bool operator> (
- 1092 basic_string_view <CharT, Traits> lhs,
- 1093 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1094 {
return lhs.compare( rhs ) > 0; }
-
- 1096 template<
class CharT,
class Traits >
- 1097 nssv_constexpr
bool operator>= (
- 1098 basic_string_view <CharT, Traits> lhs,
- 1099 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1100 {
return lhs.compare( rhs ) >= 0; }
+ 1078 template<
class Allocator = std::allocator<CharT> >
+ 1079 std::basic_string<CharT, Traits, Allocator>
+ 1080 to_string( Allocator
const & a = Allocator() )
const
+
+ 1082 return std::basic_string<CharT, Traits, Allocator>( begin(), end(), a );
+
+
+
+
+ 1087 std::basic_string<CharT, Traits>
+
+
+ 1090 return std::basic_string<CharT, Traits>( begin(), end() );
+
+
+ 1093 template<
class Allocator >
+ 1094 std::basic_string<CharT, Traits, Allocator>
+
+
+ 1097 return std::basic_string<CharT, Traits, Allocator>( begin(), end(), a );
+
+
+
-
-
-
-
-
- 1107 #if ! nssv_CPP11_OR_GREATER || nssv_BETWEEN( nssv_COMPILER_MSVC_VERSION, 100, 141 )
+
+
+
+
+
+
-
-
-
-
- 1113 template<
class CharT,
class Traits>
-
- 1115 basic_string_view<CharT, Traits> lhs,
- 1116 CharT
const * rhs ) nssv_noexcept
- 1117 {
return lhs.size() == detail::length( rhs ) && lhs.compare( rhs ) == 0; }
-
- 1119 template<
class CharT,
class Traits>
-
-
- 1122 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1123 {
return detail::length( lhs ) == rhs.size() && rhs.compare( lhs ) == 0; }
-
- 1125 template<
class CharT,
class Traits>
-
- 1127 basic_string_view<CharT, Traits> lhs,
- 1128 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1129 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
-
- 1131 template<
class CharT,
class Traits>
-
- 1133 std::basic_string<CharT, Traits> rhs,
- 1134 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1135 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
-
-
-
- 1139 template<
class CharT,
class Traits>
- 1140 nssv_constexpr
bool operator!=(
- 1141 basic_string_view<CharT, Traits> lhs,
- 1142 CharT
const * rhs ) nssv_noexcept
- 1143 {
return !( lhs == rhs ); }
-
- 1145 template<
class CharT,
class Traits>
- 1146 nssv_constexpr
bool operator!=(
-
- 1148 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1149 {
return !( lhs == rhs ); }
-
- 1151 template<
class CharT,
class Traits>
- 1152 nssv_constexpr
bool operator!=(
- 1153 basic_string_view<CharT, Traits> lhs,
- 1154 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1155 {
return !( lhs == rhs ); }
+
+
+
+ 1112 template<
class CharT,
class Traits >
+ 1113 nssv_constexpr
bool operator== (
+ 1114 basic_string_view <CharT, Traits> lhs,
+ 1115 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1116 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
+
+ 1118 template<
class CharT,
class Traits >
+ 1119 nssv_constexpr
bool operator!= (
+ 1120 basic_string_view <CharT, Traits> lhs,
+ 1121 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1122 {
return !( lhs == rhs ); }
+
+ 1124 template<
class CharT,
class Traits >
+ 1125 nssv_constexpr
bool operator< (
+ 1126 basic_string_view <CharT, Traits> lhs,
+ 1127 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1128 {
return lhs.compare( rhs ) < 0; }
+
+ 1130 template<
class CharT,
class Traits >
+ 1131 nssv_constexpr
bool operator<= (
+ 1132 basic_string_view <CharT, Traits> lhs,
+ 1133 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1134 {
return lhs.compare( rhs ) <= 0; }
+
+ 1136 template<
class CharT,
class Traits >
+ 1137 nssv_constexpr
bool operator> (
+ 1138 basic_string_view <CharT, Traits> lhs,
+ 1139 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1140 {
return lhs.compare( rhs ) > 0; }
+
+ 1142 template<
class CharT,
class Traits >
+ 1143 nssv_constexpr
bool operator>= (
+ 1144 basic_string_view <CharT, Traits> lhs,
+ 1145 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1146 {
return lhs.compare( rhs ) >= 0; }
+
+
+
+
+
+
+ 1153 #if ! nssv_CPP11_OR_GREATER || nssv_BETWEEN( nssv_COMPILER_MSVC_VERSION, 100, 141 )
+
+
- 1157 template<
class CharT,
class Traits>
- 1158 nssv_constexpr
bool operator!=(
- 1159 std::basic_string<CharT, Traits> rhs,
- 1160 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1161 {
return !( lhs == rhs ); }
-
-
+
+
+ 1159 template<
class CharT,
class Traits>
+
+ 1161 basic_string_view<CharT, Traits> lhs,
+ 1162 CharT
const * rhs ) nssv_noexcept
+ 1163 {
return lhs.size() == detail::length( rhs ) && lhs.compare( rhs ) == 0; }
1165 template<
class CharT,
class Traits>
- 1166 nssv_constexpr
bool operator<(
- 1167 basic_string_view<CharT, Traits> lhs,
- 1168 CharT
const * rhs ) nssv_noexcept
- 1169 {
return lhs.compare( rhs ) < 0; }
+
+
+ 1168 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1169 {
return detail::length( lhs ) == rhs.size() && rhs.compare( lhs ) == 0; }
1171 template<
class CharT,
class Traits>
- 1172 nssv_constexpr
bool operator<(
-
- 1174 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1175 {
return rhs.compare( lhs ) > 0; }
+
+ 1173 basic_string_view<CharT, Traits> lhs,
+ 1174 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1175 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
1177 template<
class CharT,
class Traits>
- 1178 nssv_constexpr
bool operator<(
- 1179 basic_string_view<CharT, Traits> lhs,
- 1180 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1181 {
return lhs.compare( rhs ) < 0; }
+
+ 1179 std::basic_string<CharT, Traits> rhs,
+ 1180 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1181 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
- 1183 template<
class CharT,
class Traits>
- 1184 nssv_constexpr
bool operator<(
- 1185 std::basic_string<CharT, Traits> rhs,
- 1186 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1187 {
return rhs.compare( lhs ) > 0; }
-
-
+
+
+ 1185 template<
class CharT,
class Traits>
+ 1186 nssv_constexpr
bool operator!=(
+ 1187 basic_string_view<CharT, Traits> lhs,
+ 1188 CharT
const * rhs ) nssv_noexcept
+ 1189 {
return !( lhs == rhs ); }
1191 template<
class CharT,
class Traits>
- 1192 nssv_constexpr
bool operator<=(
- 1193 basic_string_view<CharT, Traits> lhs,
- 1194 CharT
const * rhs ) nssv_noexcept
- 1195 {
return lhs.compare( rhs ) <= 0; }
+ 1192 nssv_constexpr
bool operator!=(
+
+ 1194 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1195 {
return !( lhs == rhs ); }
1197 template<
class CharT,
class Traits>
- 1198 nssv_constexpr
bool operator<=(
-
- 1200 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1201 {
return rhs.compare( lhs ) >= 0; }
+ 1198 nssv_constexpr
bool operator!=(
+ 1199 basic_string_view<CharT, Traits> lhs,
+ 1200 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1201 {
return !( lhs == rhs ); }
1203 template<
class CharT,
class Traits>
- 1204 nssv_constexpr
bool operator<=(
- 1205 basic_string_view<CharT, Traits> lhs,
- 1206 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1207 {
return lhs.compare( rhs ) <= 0; }
+ 1204 nssv_constexpr
bool operator!=(
+ 1205 std::basic_string<CharT, Traits> rhs,
+ 1206 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1207 {
return !( lhs == rhs ); }
- 1209 template<
class CharT,
class Traits>
- 1210 nssv_constexpr
bool operator<=(
- 1211 std::basic_string<CharT, Traits> rhs,
- 1212 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1213 {
return rhs.compare( lhs ) >= 0; }
-
-
+
+
+ 1211 template<
class CharT,
class Traits>
+ 1212 nssv_constexpr
bool operator<(
+ 1213 basic_string_view<CharT, Traits> lhs,
+ 1214 CharT
const * rhs ) nssv_noexcept
+ 1215 {
return lhs.compare( rhs ) < 0; }
1217 template<
class CharT,
class Traits>
- 1218 nssv_constexpr
bool operator>(
- 1219 basic_string_view<CharT, Traits> lhs,
- 1220 CharT
const * rhs ) nssv_noexcept
- 1221 {
return lhs.compare( rhs ) > 0; }
+ 1218 nssv_constexpr
bool operator<(
+
+ 1220 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1221 {
return rhs.compare( lhs ) > 0; }
1223 template<
class CharT,
class Traits>
- 1224 nssv_constexpr
bool operator>(
-
- 1226 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1227 {
return rhs.compare( lhs ) < 0; }
+ 1224 nssv_constexpr
bool operator<(
+ 1225 basic_string_view<CharT, Traits> lhs,
+ 1226 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1227 {
return lhs.compare( rhs ) < 0; }
1229 template<
class CharT,
class Traits>
- 1230 nssv_constexpr
bool operator>(
- 1231 basic_string_view<CharT, Traits> lhs,
- 1232 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1233 {
return lhs.compare( rhs ) > 0; }
+ 1230 nssv_constexpr
bool operator<(
+ 1231 std::basic_string<CharT, Traits> rhs,
+ 1232 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1233 {
return rhs.compare( lhs ) > 0; }
- 1235 template<
class CharT,
class Traits>
- 1236 nssv_constexpr
bool operator>(
- 1237 std::basic_string<CharT, Traits> rhs,
- 1238 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1239 {
return rhs.compare( lhs ) < 0; }
-
-
+
+
+ 1237 template<
class CharT,
class Traits>
+ 1238 nssv_constexpr
bool operator<=(
+ 1239 basic_string_view<CharT, Traits> lhs,
+ 1240 CharT
const * rhs ) nssv_noexcept
+ 1241 {
return lhs.compare( rhs ) <= 0; }
1243 template<
class CharT,
class Traits>
- 1244 nssv_constexpr
bool operator>=(
- 1245 basic_string_view<CharT, Traits> lhs,
- 1246 CharT
const * rhs ) nssv_noexcept
- 1247 {
return lhs.compare( rhs ) >= 0; }
+ 1244 nssv_constexpr
bool operator<=(
+
+ 1246 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1247 {
return rhs.compare( lhs ) >= 0; }
1249 template<
class CharT,
class Traits>
- 1250 nssv_constexpr
bool operator>=(
-
- 1252 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
- 1253 {
return rhs.compare( lhs ) <= 0; }
+ 1250 nssv_constexpr
bool operator<=(
+ 1251 basic_string_view<CharT, Traits> lhs,
+ 1252 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1253 {
return lhs.compare( rhs ) <= 0; }
1255 template<
class CharT,
class Traits>
- 1256 nssv_constexpr
bool operator>=(
- 1257 basic_string_view<CharT, Traits> lhs,
- 1258 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
- 1259 {
return lhs.compare( rhs ) >= 0; }
+ 1256 nssv_constexpr
bool operator<=(
+ 1257 std::basic_string<CharT, Traits> rhs,
+ 1258 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1259 {
return rhs.compare( lhs ) >= 0; }
- 1261 template<
class CharT,
class Traits>
- 1262 nssv_constexpr
bool operator>=(
- 1263 std::basic_string<CharT, Traits> rhs,
- 1264 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
- 1265 {
return rhs.compare( lhs ) <= 0; }
-
-
+
+
+ 1263 template<
class CharT,
class Traits>
+ 1264 nssv_constexpr
bool operator>(
+ 1265 basic_string_view<CharT, Traits> lhs,
+ 1266 CharT
const * rhs ) nssv_noexcept
+ 1267 {
return lhs.compare( rhs ) > 0; }
- 1269 #define nssv_BASIC_STRING_VIEW_I(T,U) typename std::decay< basic_string_view<T,U> >::type
-
- 1271 #if defined(_MSC_VER)
- 1272 # define nssv_MSVC_ORDER(x) , int=x
-
- 1274 # define nssv_MSVC_ORDER(x)
-
-
-
-
- 1279 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
-
- 1281 basic_string_view <CharT, Traits> lhs,
- 1282 nssv_BASIC_STRING_VIEW_I(CharT, Traits) rhs ) nssv_noexcept
- 1283 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
-
- 1285 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
-
- 1287 nssv_BASIC_STRING_VIEW_I(CharT, Traits) lhs,
- 1288 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
- 1289 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
-
-
-
- 1293 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
- 1294 nssv_constexpr
bool operator!= (
- 1295 basic_string_view < CharT, Traits > lhs,
- 1296 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
- 1297 {
return !( lhs == rhs ); }
-
- 1299 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
- 1300 nssv_constexpr
bool operator!= (
- 1301 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
- 1302 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
- 1303 {
return !( lhs == rhs ); }
-
-
+ 1269 template<
class CharT,
class Traits>
+ 1270 nssv_constexpr
bool operator>(
+
+ 1272 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1273 {
return rhs.compare( lhs ) < 0; }
+
+ 1275 template<
class CharT,
class Traits>
+ 1276 nssv_constexpr
bool operator>(
+ 1277 basic_string_view<CharT, Traits> lhs,
+ 1278 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1279 {
return lhs.compare( rhs ) > 0; }
+
+ 1281 template<
class CharT,
class Traits>
+ 1282 nssv_constexpr
bool operator>(
+ 1283 std::basic_string<CharT, Traits> rhs,
+ 1284 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1285 {
return rhs.compare( lhs ) < 0; }
+
+
+
+ 1289 template<
class CharT,
class Traits>
+ 1290 nssv_constexpr
bool operator>=(
+ 1291 basic_string_view<CharT, Traits> lhs,
+ 1292 CharT
const * rhs ) nssv_noexcept
+ 1293 {
return lhs.compare( rhs ) >= 0; }
+
+ 1295 template<
class CharT,
class Traits>
+ 1296 nssv_constexpr
bool operator>=(
+
+ 1298 basic_string_view<CharT, Traits> rhs ) nssv_noexcept
+ 1299 {
return rhs.compare( lhs ) <= 0; }
+
+ 1301 template<
class CharT,
class Traits>
+ 1302 nssv_constexpr
bool operator>=(
+ 1303 basic_string_view<CharT, Traits> lhs,
+ 1304 std::basic_string<CharT, Traits> rhs ) nssv_noexcept
+ 1305 {
return lhs.compare( rhs ) >= 0; }
- 1307 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
- 1308 nssv_constexpr
bool operator< (
- 1309 basic_string_view < CharT, Traits > lhs,
- 1310 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
- 1311 {
return lhs.compare( rhs ) < 0; }
+ 1307 template<
class CharT,
class Traits>
+ 1308 nssv_constexpr
bool operator>=(
+ 1309 std::basic_string<CharT, Traits> rhs,
+ 1310 basic_string_view<CharT, Traits> lhs ) nssv_noexcept
+ 1311 {
return rhs.compare( lhs ) <= 0; }
- 1313 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
- 1314 nssv_constexpr
bool operator< (
- 1315 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
- 1316 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
- 1317 {
return lhs.compare( rhs ) < 0; }
-
-
-
- 1321 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
- 1322 nssv_constexpr
bool operator<= (
- 1323 basic_string_view < CharT, Traits > lhs,
- 1324 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
- 1325 {
return lhs.compare( rhs ) <= 0; }
-
- 1327 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
- 1328 nssv_constexpr
bool operator<= (
- 1329 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
- 1330 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
- 1331 {
return lhs.compare( rhs ) <= 0; }
-
-
-
- 1335 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
- 1336 nssv_constexpr
bool operator> (
- 1337 basic_string_view < CharT, Traits > lhs,
- 1338 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
- 1339 {
return lhs.compare( rhs ) > 0; }
-
- 1341 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
- 1342 nssv_constexpr
bool operator> (
- 1343 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
- 1344 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
- 1345 {
return lhs.compare( rhs ) > 0; }
-
-
-
- 1349 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
- 1350 nssv_constexpr
bool operator>= (
- 1351 basic_string_view < CharT, Traits > lhs,
- 1352 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
- 1353 {
return lhs.compare( rhs ) >= 0; }
-
- 1355 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
- 1356 nssv_constexpr
bool operator>= (
- 1357 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
- 1358 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
- 1359 {
return lhs.compare( rhs ) >= 0; }
-
- 1361 #undef nssv_MSVC_ORDER
- 1362 #undef nssv_BASIC_STRING_VIEW_I
-
-
-
-
-
- 1368 #if ! nssv_CONFIG_NO_STREAM_INSERTION
-
-
-
- 1372 template<
class Stream >
- 1373 void write_padding( Stream & os, std::streamsize n )
-
- 1375 for ( std::streamsize i = 0; i < n; ++i )
- 1376 os.rdbuf()->sputc( os.fill() );
-
+
+
+ 1315 #define nssv_BASIC_STRING_VIEW_I(T,U) typename std::decay< basic_string_view<T,U> >::type
+
+ 1317 #if defined(_MSC_VER)
+ 1318 # define nssv_MSVC_ORDER(x) , int=x
+
+ 1320 # define nssv_MSVC_ORDER(x)
+
+
+
+
+ 1325 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+
+ 1327 basic_string_view <CharT, Traits> lhs,
+ 1328 nssv_BASIC_STRING_VIEW_I(CharT, Traits) rhs ) nssv_noexcept
+ 1329 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
+
+ 1331 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+
+ 1333 nssv_BASIC_STRING_VIEW_I(CharT, Traits) lhs,
+ 1334 basic_string_view <CharT, Traits> rhs ) nssv_noexcept
+ 1335 {
return lhs.size() == rhs.size() && lhs.compare( rhs ) == 0; }
+
+
+
+ 1339 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+ 1340 nssv_constexpr
bool operator!= (
+ 1341 basic_string_view < CharT, Traits > lhs,
+ 1342 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
+ 1343 {
return !( lhs == rhs ); }
+
+ 1345 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+ 1346 nssv_constexpr
bool operator!= (
+ 1347 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
+ 1348 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
+ 1349 {
return !( lhs == rhs ); }
+
+
+
+ 1353 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+ 1354 nssv_constexpr
bool operator< (
+ 1355 basic_string_view < CharT, Traits > lhs,
+ 1356 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
+ 1357 {
return lhs.compare( rhs ) < 0; }
+
+ 1359 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+ 1360 nssv_constexpr
bool operator< (
+ 1361 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
+ 1362 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
+ 1363 {
return lhs.compare( rhs ) < 0; }
+
+
+
+ 1367 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+ 1368 nssv_constexpr
bool operator<= (
+ 1369 basic_string_view < CharT, Traits > lhs,
+ 1370 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
+ 1371 {
return lhs.compare( rhs ) <= 0; }
+
+ 1373 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+ 1374 nssv_constexpr
bool operator<= (
+ 1375 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
+ 1376 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
+ 1377 {
return lhs.compare( rhs ) <= 0; }
- 1379 template<
class Stream,
class View >
- 1380 Stream & write_to_stream( Stream & os, View
const & sv )
-
- 1382 typename Stream::sentry sentry( os );
-
-
-
+
+
+ 1381 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+ 1382 nssv_constexpr
bool operator> (
+ 1383 basic_string_view < CharT, Traits > lhs,
+ 1384 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
+ 1385 {
return lhs.compare( rhs ) > 0; }
- 1387 const std::streamsize length =
static_cast<std::streamsize
>( sv.length() );
-
-
- 1390 const bool pad = ( length < os.width() );
- 1391 const bool left_pad = pad && ( os.flags() & std::ios_base::adjustfield ) == std::ios_base::right;
+ 1387 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+ 1388 nssv_constexpr
bool operator> (
+ 1389 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
+ 1390 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
+ 1391 {
return lhs.compare( rhs ) > 0; }
-
- 1394 write_padding( os, os.width() - length );
-
-
- 1397 os.rdbuf()->sputn( sv.begin(), length );
-
- 1399 if ( pad && !left_pad )
- 1400 write_padding( os, os.width() - length );
-
-
-
-
-
-
-
-
+
+
+ 1395 template<
class CharT,
class Traits nssv_MSVC_ORDER(1) >
+ 1396 nssv_constexpr
bool operator>= (
+ 1397 basic_string_view < CharT, Traits > lhs,
+ 1398 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) rhs ) nssv_noexcept
+ 1399 {
return lhs.compare( rhs ) >= 0; }
+
+ 1401 template<
class CharT,
class Traits nssv_MSVC_ORDER(2) >
+ 1402 nssv_constexpr
bool operator>= (
+ 1403 nssv_BASIC_STRING_VIEW_I( CharT, Traits ) lhs,
+ 1404 basic_string_view < CharT, Traits > rhs ) nssv_noexcept
+ 1405 {
return lhs.compare( rhs ) >= 0; }
+
+ 1407 #undef nssv_MSVC_ORDER
+ 1408 #undef nssv_BASIC_STRING_VIEW_I
- 1410 template<
class CharT,
class Traits >
- 1411 std::basic_ostream<CharT, Traits> &
-
- 1413 std::basic_ostream<CharT, Traits>& os,
- 1414 basic_string_view <CharT, Traits> sv )
-
- 1416 return detail::write_to_stream( os, sv );
-
-
-
-
-
-
- 1423 typedef basic_string_view<char> string_view;
- 1424 typedef basic_string_view<wchar_t> wstring_view;
- 1425 #if nssv_HAVE_WCHAR16_T
- 1426 typedef basic_string_view<char16_t> u16string_view;
- 1427 typedef basic_string_view<char32_t> u32string_view;
-
+
+
+
+
+ 1414 #if ! nssv_CONFIG_NO_STREAM_INSERTION
+
+
+
+ 1418 template<
class Stream >
+ 1419 void write_padding( Stream & os, std::streamsize n )
+
+ 1421 for ( std::streamsize i = 0; i < n; ++i )
+ 1422 os.rdbuf()->sputc( os.fill() );
+
+
+ 1425 template<
class Stream,
class View >
+ 1426 Stream & write_to_stream( Stream & os, View
const & sv )
+
+ 1428 typename Stream::sentry sentry( os );
-
-
-
-
-
-
- 1436 #if nssv_HAVE_USER_DEFINED_LITERALS
-
-
- 1439 nssv_inline_ns
namespace literals {
- 1440 nssv_inline_ns
namespace string_view_literals {
+
+
+
+ 1433 const std::streamsize length =
static_cast<std::streamsize
>( sv.length() );
+
+
+ 1436 const bool pad = ( length < os.width() );
+ 1437 const bool left_pad = pad && ( os.flags() & std::ios_base::adjustfield ) == std::ios_base::right;
+
+
+ 1440 write_padding( os, os.width() - length );
- 1442 #if nssv_CONFIG_STD_SV_OPERATOR && nssv_HAVE_STD_DEFINED_LITERALS
-
- 1444 nssv_constexpr nonstd::sv_lite::string_view
operator "" sv(
const char* str,
size_t len ) nssv_noexcept
-
- 1446 return nonstd::sv_lite::string_view{ str, len };
-
-
- 1449 nssv_constexpr nonstd::sv_lite::u16string_view
operator "" sv(
const char16_t* str,
size_t len ) nssv_noexcept
-
- 1451 return nonstd::sv_lite::u16string_view{ str, len };
+
+ 1443 os.rdbuf()->sputn( sv.begin(), length );
+
+ 1445 if ( pad && !left_pad )
+ 1446 write_padding( os, os.width() - length );
+
+
+
+
+
- 1454 nssv_constexpr nonstd::sv_lite::u32string_view
operator "" sv(
const char32_t* str,
size_t len ) nssv_noexcept
-
- 1456 return nonstd::sv_lite::u32string_view{ str, len };
-
-
- 1459 nssv_constexpr nonstd::sv_lite::wstring_view
operator "" sv(
const wchar_t* str,
size_t len ) nssv_noexcept
-
- 1461 return nonstd::sv_lite::wstring_view{ str, len };
-
-
-
-
- 1466 #if nssv_CONFIG_USR_SV_OPERATOR
-
- 1468 nssv_constexpr nonstd::sv_lite::string_view
operator "" _sv(
const char* str,
size_t len ) nssv_noexcept
-
- 1470 return nonstd::sv_lite::string_view{ str, len };
-
-
- 1473 nssv_constexpr nonstd::sv_lite::u16string_view
operator "" _sv(
const char16_t* str,
size_t len ) nssv_noexcept
-
- 1475 return nonstd::sv_lite::u16string_view{ str, len };
-
+
+
+ 1456 template<
class CharT,
class Traits >
+ 1457 std::basic_ostream<CharT, Traits> &
+
+ 1459 std::basic_ostream<CharT, Traits>& os,
+ 1460 basic_string_view <CharT, Traits> sv )
+
+ 1462 return detail::write_to_stream( os, sv );
+
+
+
+
+
+
+ 1469 typedef basic_string_view<char> string_view;
+ 1470 typedef basic_string_view<wchar_t> wstring_view;
+ 1471 #if nssv_HAVE_WCHAR16_T
+ 1472 typedef basic_string_view<char16_t> u16string_view;
+ 1473 typedef basic_string_view<char32_t> u32string_view;
+
+
+
- 1478 nssv_constexpr nonstd::sv_lite::u32string_view
operator "" _sv(
const char32_t* str,
size_t len ) nssv_noexcept
-
- 1480 return nonstd::sv_lite::u32string_view{ str, len };
-
-
- 1483 nssv_constexpr nonstd::sv_lite::wstring_view
operator "" _sv(
const wchar_t* str,
size_t len ) nssv_noexcept
-
- 1485 return nonstd::sv_lite::wstring_view{ str, len };
-
+
+
+
+
+ 1482 #if nssv_HAVE_USER_DEFINED_LITERALS
+
+
+ 1485 nssv_inline_ns
namespace literals {
+ 1486 nssv_inline_ns
namespace string_view_literals {
-
+ 1488 #if nssv_CONFIG_STD_SV_OPERATOR && nssv_HAVE_STD_DEFINED_LITERALS
-
-
-
-
-
-
-
-
- 1498 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
+ 1490 nssv_constexpr nonstd::sv_lite::string_view
operator "" sv(
const char* str,
size_t len ) nssv_noexcept
+
+ 1492 return nonstd::sv_lite::string_view{ str, len };
+
+
+ 1495 nssv_constexpr nonstd::sv_lite::u16string_view
operator "" sv(
const char16_t* str,
size_t len ) nssv_noexcept
+
+ 1497 return nonstd::sv_lite::u16string_view{ str, len };
+
-
-
-
-
+ 1500 nssv_constexpr nonstd::sv_lite::u32string_view
operator "" sv(
const char32_t* str,
size_t len ) nssv_noexcept
+
+ 1502 return nonstd::sv_lite::u32string_view{ str, len };
+
- 1505 #if nssv_CPP11_OR_GREATER && nssv_COMPILER_MSVC_VERSION != 140
-
- 1507 template<
class CharT,
class Traits,
class Allocator = std::allocator<CharT> >
- 1508 std::basic_string<CharT, Traits, Allocator>
- 1509 to_string( basic_string_view<CharT, Traits> v, Allocator
const & a = Allocator() )
-
- 1511 return std::basic_string<CharT,Traits, Allocator>( v.begin(), v.end(), a );
-
+ 1505 nssv_constexpr nonstd::sv_lite::wstring_view
operator "" sv(
const wchar_t* str,
size_t len ) nssv_noexcept
+
+ 1507 return nonstd::sv_lite::wstring_view{ str, len };
+
+
+
+
+ 1512 #if nssv_CONFIG_USR_SV_OPERATOR
-
-
- 1516 template<
class CharT,
class Traits >
- 1517 std::basic_string<CharT, Traits>
- 1518 to_string( basic_string_view<CharT, Traits> v )
-
- 1520 return std::basic_string<CharT, Traits>( v.begin(), v.end() );
-
-
- 1523 template<
class CharT,
class Traits,
class Allocator >
- 1524 std::basic_string<CharT, Traits, Allocator>
- 1525 to_string( basic_string_view<CharT, Traits> v, Allocator
const & a )
-
- 1527 return std::basic_string<CharT, Traits, Allocator>( v.begin(), v.end(), a );
-
-
-
-
- 1532 template<
class CharT,
class Traits,
class Allocator >
- 1533 basic_string_view<CharT, Traits>
- 1534 to_string_view( std::basic_string<CharT, Traits, Allocator>
const & s )
-
- 1536 return basic_string_view<CharT, Traits>( s.data(), s.size() );
-
-
-
-
-
-
-
-
-
-
-
+ 1514 nssv_constexpr nonstd::sv_lite::string_view
operator "" _sv(
const char* str,
size_t len ) nssv_noexcept
+
+ 1516 return nonstd::sv_lite::string_view{ str, len };
+
+
+ 1519 nssv_constexpr nonstd::sv_lite::u16string_view
operator "" _sv(
const char16_t* str,
size_t len ) nssv_noexcept
+
+ 1521 return nonstd::sv_lite::u16string_view{ str, len };
+
+
+ 1524 nssv_constexpr nonstd::sv_lite::u32string_view
operator "" _sv(
const char32_t* str,
size_t len ) nssv_noexcept
+
+ 1526 return nonstd::sv_lite::u32string_view{ str, len };
+
+
+ 1529 nssv_constexpr nonstd::sv_lite::wstring_view
operator "" _sv(
const wchar_t* str,
size_t len ) nssv_noexcept
+
+ 1531 return nonstd::sv_lite::wstring_view{ str, len };
+
+
+
+
+
+
+
+
+
+
+
+
+ 1544 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
+
+
+
- 1549 using sv_lite::basic_string_view;
- 1550 using sv_lite::string_view;
- 1551 using sv_lite::wstring_view;
+
+
+ 1551 #if nssv_CPP11_OR_GREATER && nssv_COMPILER_MSVC_VERSION != 140
- 1553 #if nssv_HAVE_WCHAR16_T
- 1554 using sv_lite::u16string_view;
-
- 1556 #if nssv_HAVE_WCHAR32_T
- 1557 using sv_lite::u32string_view;
-
+ 1553 template<
class CharT,
class Traits,
class Allocator = std::allocator<CharT> >
+ 1554 std::basic_string<CharT, Traits, Allocator>
+ 1555 to_string( basic_string_view<CharT, Traits> v, Allocator
const & a = Allocator() )
+
+ 1557 return std::basic_string<CharT,Traits, Allocator>( v.begin(), v.end(), a );
+
-
+
- 1562 using sv_lite::operator==;
- 1563 using sv_lite::operator!=;
- 1564 using sv_lite::operator<;
- 1565 using sv_lite::operator<=;
- 1566 using sv_lite::operator>;
- 1567 using sv_lite::operator>=;
+ 1562 template<
class CharT,
class Traits >
+ 1563 std::basic_string<CharT, Traits>
+ 1564 to_string( basic_string_view<CharT, Traits> v )
+
+ 1566 return std::basic_string<CharT, Traits>( v.begin(), v.end() );
+
- 1569 #if ! nssv_CONFIG_NO_STREAM_INSERTION
- 1570 using sv_lite::operator<<;
-
-
- 1573 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
- 1574 using sv_lite::to_string;
- 1575 using sv_lite::to_string_view;
-
+ 1569 template<
class CharT,
class Traits,
class Allocator >
+ 1570 std::basic_string<CharT, Traits, Allocator>
+ 1571 to_string( basic_string_view<CharT, Traits> v, Allocator
const & a )
+
+ 1573 return std::basic_string<CharT, Traits, Allocator>( v.begin(), v.end(), a );
+
+
+
-
-
-
-
-
-
+ 1578 template<
class CharT,
class Traits,
class Allocator >
+ 1579 basic_string_view<CharT, Traits>
+ 1580 to_string_view( std::basic_string<CharT, Traits, Allocator>
const & s )
+
+ 1582 return basic_string_view<CharT, Traits>( s.data(), s.size() );
+
- 1585 #if nssv_HAVE_STD_HASH
+
- 1587 #include <functional>
+
-
-
-
- 1592 struct hash< nonstd::string_view >
-
-
- 1595 std::size_t operator()( nonstd::string_view v )
const nssv_noexcept
-
- 1597 return std::hash<std::string>()( std::string( v.data(), v.size() ) );
-
-
-
-
- 1602 struct hash< nonstd::wstring_view >
-
-
- 1605 std::size_t operator()( nonstd::wstring_view v )
const nssv_noexcept
-
- 1607 return std::hash<std::wstring>()( std::wstring( v.data(), v.size() ) );
-
-
-
-
- 1612 struct hash< nonstd::u16string_view >
-
-
- 1615 std::size_t operator()( nonstd::u16string_view v )
const nssv_noexcept
-
- 1617 return std::hash<std::u16string>()( std::u16string( v.data(), v.size() ) );
-
-
-
-
- 1622 struct hash< nonstd::u32string_view >
-
-
- 1625 std::size_t operator()( nonstd::u32string_view v )
const nssv_noexcept
-
- 1627 return std::hash<std::u32string>()( std::u32string( v.data(), v.size() ) );
-
-
+
+
+
+
+
+
+ 1595 using sv_lite::basic_string_view;
+ 1596 using sv_lite::string_view;
+ 1597 using sv_lite::wstring_view;
+
+ 1599 #if nssv_HAVE_WCHAR16_T
+ 1600 using sv_lite::u16string_view;
+
+ 1602 #if nssv_HAVE_WCHAR32_T
+ 1603 using sv_lite::u32string_view;
+
+
+
+
+ 1608 using sv_lite::operator==;
+ 1609 using sv_lite::operator!=;
+ 1610 using sv_lite::operator<;
+ 1611 using sv_lite::operator<=;
+ 1612 using sv_lite::operator>;
+ 1613 using sv_lite::operator>=;
+
+ 1615 #if ! nssv_CONFIG_NO_STREAM_INSERTION
+ 1616 using sv_lite::operator<<;
+
+
+ 1619 #if nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS
+ 1620 using sv_lite::to_string;
+ 1621 using sv_lite::to_string_view;
+
+
+
+
+
+
+
+
-
+ 1631 #if nssv_HAVE_STD_HASH
-
+ 1633 #include <functional>
- 1635 nssv_RESTORE_WARNINGS()
+
-
-
+
+ 1638 struct hash< nonstd::string_view >
+
+
+ 1641 std::size_t operator()( nonstd::string_view v )
const nssv_noexcept
+
+ 1643 return std::hash<std::string>()( std::string( v.data(), v.size() ) );
+
+
+
+
+ 1648 struct hash< nonstd::wstring_view >
+
+
+ 1651 std::size_t operator()( nonstd::wstring_view v )
const nssv_noexcept
+
+ 1653 return std::hash<std::wstring>()( std::wstring( v.data(), v.size() ) );
+
+
+
+
+ 1658 struct hash< nonstd::u16string_view >
+
+
+ 1661 std::size_t operator()( nonstd::u16string_view v )
const nssv_noexcept
+
+ 1663 return std::hash<std::u16string>()( std::u16string( v.data(), v.size() ) );
+
+
+
+
+ 1668 struct hash< nonstd::u32string_view >
+
+
+ 1671 std::size_t operator()( nonstd::u32string_view v )
const nssv_noexcept
+
+ 1673 return std::hash<std::u32string>()( std::u32string( v.data(), v.size() ) );
+
+
+
+
+
+
+
+ 1681 nssv_RESTORE_WARNINGS()
+
+
+
simdjson_unused simdjson_inline bool operator==(const raw_json_string &a, std::string_view c) noexcept
Comparisons between raw_json_string and std::string_view instances are potentially unsafe: the user i...
std::string to_string(T x)
Converts JSON to a string.