couchbase 3.1.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/ext/CMakeLists.txt +47 -113
- data/ext/couchbase/CMakeLists.txt +142 -0
- data/ext/{LICENSE.txt → couchbase/LICENSE.txt} +0 -0
- data/ext/{cmake → couchbase/cmake}/Backtrace.cmake +0 -0
- data/ext/{cmake → couchbase/cmake}/BuildTracing.cmake +0 -0
- data/ext/{cmake → couchbase/cmake}/Cache.cmake +0 -0
- data/ext/couchbase/cmake/CompilerWarnings.cmake +83 -0
- data/ext/couchbase/cmake/DetectStandardFilesystem.cmake +30 -0
- data/ext/couchbase/cmake/OpenSSL.cmake +24 -0
- data/ext/couchbase/cmake/PreventInSourceBuilds.cmake +21 -0
- data/ext/couchbase/cmake/Sanitizers.cmake +67 -0
- data/ext/couchbase/cmake/StandardProjectSettings.cmake +45 -0
- data/ext/{cmake → couchbase/cmake}/StaticAnalyzers.cmake +0 -0
- data/ext/couchbase/cmake/Testing.cmake +63 -0
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +44 -0
- data/ext/couchbase/cmake/VersionInfo.cmake +46 -0
- data/ext/couchbase/cmake/build_config.hxx.in +20 -0
- data/ext/couchbase/cmake/build_version.hxx.in +32 -0
- data/ext/couchbase/cmake/test_filesystem.cpp.in +22 -0
- data/ext/couchbase/couchbase/analytics_scan_consistency.hxx +26 -0
- data/ext/couchbase/couchbase/bucket.hxx +536 -0
- data/ext/couchbase/couchbase/capella_ca.hxx +43 -0
- data/ext/couchbase/couchbase/cas.hxx +47 -0
- data/ext/couchbase/couchbase/cas_fmt.hxx +37 -0
- data/ext/couchbase/couchbase/cluster.cxx +111 -0
- data/ext/couchbase/couchbase/cluster.hxx +423 -0
- data/ext/couchbase/couchbase/cluster_options.cxx +45 -0
- data/ext/couchbase/couchbase/cluster_options.hxx +78 -0
- data/ext/couchbase/couchbase/crypto/CMakeLists.txt +12 -0
- data/ext/couchbase/couchbase/crypto/cbcrypto.cc +887 -0
- data/ext/couchbase/couchbase/crypto/cbcrypto.h +88 -0
- data/ext/couchbase/couchbase/design_document_namespace.hxx +26 -0
- data/ext/couchbase/couchbase/design_document_namespace_fmt.hxx +47 -0
- data/ext/couchbase/couchbase/diagnostics.hxx +97 -0
- data/ext/couchbase/couchbase/diagnostics_fmt.hxx +113 -0
- data/ext/couchbase/couchbase/diagnostics_json.hxx +100 -0
- data/ext/couchbase/couchbase/document_id.cxx +89 -0
- data/ext/couchbase/couchbase/document_id.hxx +102 -0
- data/ext/couchbase/couchbase/document_id_fmt.hxx +37 -0
- data/ext/couchbase/couchbase/error_context/analytics.hxx +51 -0
- data/ext/couchbase/couchbase/error_context/http.hxx +47 -0
- data/ext/couchbase/couchbase/error_context/key_value.hxx +50 -0
- data/ext/couchbase/couchbase/error_context/query.hxx +51 -0
- data/ext/couchbase/couchbase/error_context/search.hxx +50 -0
- data/ext/couchbase/couchbase/error_context/view.hxx +51 -0
- data/ext/couchbase/couchbase/errors.hxx +1038 -0
- data/ext/couchbase/couchbase/io/CMakeLists.txt +12 -0
- data/ext/couchbase/couchbase/io/dns_client.hxx +217 -0
- data/ext/couchbase/couchbase/io/dns_codec.hxx +206 -0
- data/ext/couchbase/couchbase/io/dns_config.hxx +115 -0
- data/ext/couchbase/couchbase/io/dns_message.hxx +555 -0
- data/ext/couchbase/couchbase/io/http_command.hxx +174 -0
- data/ext/couchbase/couchbase/io/http_context.hxx +40 -0
- data/ext/couchbase/couchbase/io/http_message.hxx +116 -0
- data/ext/couchbase/couchbase/io/http_parser.cxx +141 -0
- data/ext/couchbase/couchbase/io/http_parser.hxx +55 -0
- data/ext/couchbase/couchbase/io/http_session.hxx +544 -0
- data/ext/couchbase/couchbase/io/http_session_manager.hxx +377 -0
- data/ext/couchbase/couchbase/io/http_traits.hxx +30 -0
- data/ext/couchbase/couchbase/io/ip_protocol.hxx +28 -0
- data/ext/couchbase/couchbase/io/mcbp_command.hxx +300 -0
- data/ext/couchbase/couchbase/io/mcbp_context.hxx +39 -0
- data/ext/couchbase/couchbase/io/mcbp_message.cxx +39 -0
- data/ext/couchbase/couchbase/io/mcbp_message.hxx +55 -0
- data/ext/couchbase/couchbase/io/mcbp_parser.cxx +86 -0
- data/ext/couchbase/couchbase/io/mcbp_parser.hxx +45 -0
- data/ext/couchbase/couchbase/io/mcbp_session.hxx +1317 -0
- data/ext/couchbase/couchbase/io/mcbp_traits.hxx +30 -0
- data/ext/couchbase/couchbase/io/query_cache.hxx +61 -0
- data/ext/couchbase/{io → couchbase/io}/retry_action.hxx +0 -0
- data/ext/couchbase/couchbase/io/retry_context.hxx +38 -0
- data/ext/couchbase/couchbase/io/retry_orchestrator.hxx +112 -0
- data/ext/couchbase/couchbase/io/retry_reason.hxx +158 -0
- data/ext/couchbase/couchbase/io/retry_reason_fmt.hxx +103 -0
- data/ext/couchbase/couchbase/io/retry_strategy.hxx +152 -0
- data/ext/couchbase/couchbase/io/streams.hxx +253 -0
- data/ext/couchbase/couchbase/json_string.hxx +48 -0
- data/ext/couchbase/couchbase/logger/CMakeLists.txt +9 -0
- data/ext/couchbase/couchbase/logger/configuration.hxx +52 -0
- data/ext/couchbase/couchbase/logger/custom_rotating_file_sink.cxx +157 -0
- data/ext/couchbase/couchbase/logger/custom_rotating_file_sink.hxx +76 -0
- data/ext/couchbase/couchbase/logger/logger.cxx +337 -0
- data/ext/couchbase/couchbase/logger/logger.hxx +235 -0
- data/ext/couchbase/couchbase/management/CMakeLists.txt +13 -0
- data/ext/couchbase/couchbase/management/analytics_dataset.hxx +30 -0
- data/ext/couchbase/couchbase/management/analytics_index.hxx +30 -0
- data/ext/couchbase/couchbase/management/analytics_link.hxx +22 -0
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.cxx +67 -0
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.hxx +76 -0
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external_json.hxx +52 -0
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.cxx +104 -0
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.hxx +107 -0
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote_json.hxx +63 -0
- data/ext/couchbase/couchbase/management/analytics_link_s3_external.cxx +57 -0
- data/ext/couchbase/couchbase/management/analytics_link_s3_external.hxx +69 -0
- data/ext/couchbase/couchbase/management/analytics_link_s3_external_json.hxx +47 -0
- data/ext/couchbase/couchbase/management/bucket_settings.hxx +134 -0
- data/ext/couchbase/couchbase/management/bucket_settings_json.hxx +123 -0
- data/ext/couchbase/couchbase/management/design_document.hxx +41 -0
- data/ext/couchbase/couchbase/management/eventing_function.hxx +188 -0
- data/ext/couchbase/couchbase/management/eventing_function_json.hxx +212 -0
- data/ext/couchbase/couchbase/management/eventing_status.hxx +84 -0
- data/ext/couchbase/couchbase/management/eventing_status_json.hxx +77 -0
- data/ext/couchbase/couchbase/management/query_index.hxx +39 -0
- data/ext/couchbase/couchbase/management/rbac.hxx +77 -0
- data/ext/couchbase/couchbase/management/rbac_fmt.hxx +49 -0
- data/ext/couchbase/couchbase/management/rbac_json.hxx +179 -0
- data/ext/couchbase/couchbase/management/search_index.hxx +38 -0
- data/ext/couchbase/couchbase/management/search_index_json.hxx +58 -0
- data/ext/couchbase/couchbase/meta/CMakeLists.txt +15 -0
- data/ext/couchbase/couchbase/meta/version.cxx +181 -0
- data/ext/couchbase/couchbase/meta/version.hxx +45 -0
- data/ext/couchbase/couchbase/metrics/CMakeLists.txt +11 -0
- data/ext/couchbase/couchbase/metrics/logging_meter.cxx +194 -0
- data/ext/couchbase/couchbase/metrics/logging_meter.hxx +74 -0
- data/ext/couchbase/couchbase/metrics/logging_meter_options.hxx +28 -0
- data/ext/couchbase/couchbase/metrics/meter.hxx +52 -0
- data/ext/couchbase/couchbase/metrics/noop_meter.hxx +47 -0
- data/ext/couchbase/couchbase/mutation_token.hxx +31 -0
- data/ext/couchbase/couchbase/mutation_token_fmt.hxx +37 -0
- data/ext/couchbase/couchbase/operations/CMakeLists.txt +35 -0
- data/ext/couchbase/couchbase/operations/document_analytics.cxx +195 -0
- data/ext/couchbase/couchbase/operations/document_analytics.hxx +92 -0
- data/ext/couchbase/couchbase/operations/document_append.cxx +46 -0
- data/ext/couchbase/couchbase/operations/document_append.hxx +63 -0
- data/ext/couchbase/couchbase/operations/document_decrement.cxx +57 -0
- data/ext/couchbase/couchbase/operations/document_decrement.hxx +67 -0
- data/ext/couchbase/couchbase/operations/document_exists.cxx +49 -0
- data/ext/couchbase/couchbase/operations/document_exists.hxx +61 -0
- data/ext/couchbase/couchbase/operations/document_get.cxx +44 -0
- data/ext/couchbase/couchbase/operations/document_get.hxx +53 -0
- data/ext/couchbase/couchbase/operations/document_get_and_lock.cxx +45 -0
- data/ext/couchbase/couchbase/operations/document_get_and_lock.hxx +54 -0
- data/ext/couchbase/couchbase/operations/document_get_and_touch.cxx +45 -0
- data/ext/couchbase/couchbase/operations/document_get_and_touch.hxx +54 -0
- data/ext/couchbase/couchbase/operations/document_get_projected.cxx +227 -0
- data/ext/couchbase/couchbase/operations/document_get_projected.hxx +58 -0
- data/ext/couchbase/couchbase/operations/document_increment.cxx +57 -0
- data/ext/couchbase/couchbase/operations/document_increment.hxx +67 -0
- data/ext/couchbase/couchbase/operations/document_insert.cxx +48 -0
- data/ext/couchbase/couchbase/operations/document_insert.hxx +65 -0
- data/ext/couchbase/couchbase/operations/document_lookup_in.cxx +81 -0
- data/ext/couchbase/couchbase/operations/document_lookup_in.hxx +64 -0
- data/ext/couchbase/couchbase/operations/document_mutate_in.cxx +104 -0
- data/ext/couchbase/couchbase/operations/document_mutate_in.hxx +82 -0
- data/ext/couchbase/couchbase/operations/document_prepend.cxx +46 -0
- data/ext/couchbase/couchbase/operations/document_prepend.hxx +63 -0
- data/ext/couchbase/couchbase/operations/document_query.cxx +370 -0
- data/ext/couchbase/couchbase/operations/document_query.hxx +123 -0
- data/ext/couchbase/couchbase/operations/document_remove.cxx +46 -0
- data/ext/couchbase/couchbase/operations/document_remove.hxx +63 -0
- data/ext/couchbase/couchbase/operations/document_replace.cxx +52 -0
- data/ext/couchbase/couchbase/operations/document_replace.hxx +67 -0
- data/ext/couchbase/couchbase/operations/document_search.cxx +311 -0
- data/ext/couchbase/couchbase/operations/document_search.hxx +153 -0
- data/ext/couchbase/couchbase/operations/document_touch.cxx +43 -0
- data/ext/couchbase/couchbase/operations/document_touch.hxx +52 -0
- data/ext/couchbase/couchbase/operations/document_unlock.cxx +43 -0
- data/ext/couchbase/couchbase/operations/document_unlock.hxx +52 -0
- data/ext/couchbase/couchbase/operations/document_upsert.cxx +52 -0
- data/ext/couchbase/couchbase/operations/document_upsert.hxx +66 -0
- data/ext/couchbase/couchbase/operations/document_view.cxx +183 -0
- data/ext/couchbase/couchbase/operations/document_view.hxx +97 -0
- data/ext/couchbase/couchbase/operations/http_noop.cxx +60 -0
- data/ext/couchbase/couchbase/operations/http_noop.hxx +48 -0
- data/ext/couchbase/couchbase/operations/management/CMakeLists.txt +79 -0
- data/ext/couchbase/couchbase/operations/management/analytics.hxx +34 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.cxx +94 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.hxx +57 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.cxx +83 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.hxx +54 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.cxx +80 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.cxx +82 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.cxx +82 -0
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.cxx +70 -0
- data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_create.cxx +106 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_create.hxx +56 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_drop.cxx +90 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_drop.hxx +55 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.cxx +80 -0
- data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_connect.cxx +82 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_connect.hxx +57 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_create.cxx +87 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_create.hxx +77 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.cxx +80 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.hxx +56 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_drop.cxx +103 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_drop.hxx +56 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.cxx +130 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.hxx +63 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_replace.cxx +87 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_replace.hxx +78 -0
- data/ext/couchbase/couchbase/operations/management/analytics_link_utils.hxx +37 -0
- data/ext/couchbase/couchbase/operations/management/analytics_problem.hxx +30 -0
- data/ext/couchbase/couchbase/operations/management/bucket.hxx +25 -0
- data/ext/couchbase/couchbase/operations/management/bucket_create.cxx +171 -0
- data/ext/couchbase/couchbase/operations/management/bucket_create.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/bucket_describe.cxx +67 -0
- data/ext/couchbase/couchbase/operations/management/bucket_describe.hxx +61 -0
- data/ext/couchbase/couchbase/operations/management/bucket_drop.cxx +52 -0
- data/ext/couchbase/couchbase/operations/management/bucket_drop.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/bucket_flush.cxx +59 -0
- data/ext/couchbase/couchbase/operations/management/bucket_flush.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/bucket_get.cxx +59 -0
- data/ext/couchbase/couchbase/operations/management/bucket_get.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/bucket_get_all.cxx +59 -0
- data/ext/couchbase/couchbase/operations/management/bucket_get_all.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/bucket_update.cxx +130 -0
- data/ext/couchbase/couchbase/operations/management/bucket_update.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/cluster_describe.cxx +90 -0
- data/ext/couchbase/couchbase/operations/management/cluster_describe.hxx +72 -0
- data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.cxx +44 -0
- data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.hxx +48 -0
- data/ext/couchbase/couchbase/operations/management/collection_create.cxx +83 -0
- data/ext/couchbase/couchbase/operations/management/collection_create.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/collection_drop.cxx +73 -0
- data/ext/couchbase/couchbase/operations/management/collection_drop.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/collections.hxx +25 -0
- data/ext/couchbase/couchbase/operations/management/collections_manifest_get.cxx +40 -0
- data/ext/couchbase/couchbase/operations/management/collections_manifest_get.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/error_utils.cxx +265 -0
- data/ext/couchbase/couchbase/operations/management/error_utils.hxx +48 -0
- data/ext/couchbase/couchbase/operations/management/eventing.hxx +28 -0
- data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/eventing_drop_function.cxx +57 -0
- data/ext/couchbase/couchbase/operations/management/eventing_drop_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.cxx +64 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_function.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_function.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_status.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_get_status.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/eventing_pause_function.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_pause_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/eventing_problem.hxx +31 -0
- data/ext/couchbase/couchbase/operations/management/eventing_resume_function.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_resume_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.cxx +56 -0
- data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.cxx +341 -0
- data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/freeform.cxx +55 -0
- data/ext/couchbase/couchbase/operations/management/freeform.hxx +55 -0
- data/ext/couchbase/couchbase/operations/management/group_drop.cxx +51 -0
- data/ext/couchbase/couchbase/operations/management/group_drop.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/group_get.cxx +60 -0
- data/ext/couchbase/couchbase/operations/management/group_get.hxx +50 -0
- data/ext/couchbase/couchbase/operations/management/group_get_all.cxx +58 -0
- data/ext/couchbase/couchbase/operations/management/group_get_all.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/group_upsert.cxx +96 -0
- data/ext/couchbase/couchbase/operations/management/group_upsert.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/query.hxx +23 -0
- data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.cxx +88 -0
- data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.hxx +61 -0
- data/ext/couchbase/couchbase/operations/management/query_index_create.cxx +149 -0
- data/ext/couchbase/couchbase/operations/management/query_index_create.hxx +65 -0
- data/ext/couchbase/couchbase/operations/management/query_index_drop.cxx +128 -0
- data/ext/couchbase/couchbase/operations/management/query_index_drop.hxx +61 -0
- data/ext/couchbase/couchbase/operations/management/query_index_get_all.cxx +126 -0
- data/ext/couchbase/couchbase/operations/management/query_index_get_all.hxx +54 -0
- data/ext/couchbase/couchbase/operations/management/role_get_all.cxx +58 -0
- data/ext/couchbase/couchbase/operations/management/role_get_all.hxx +49 -0
- data/ext/couchbase/couchbase/operations/management/scope_create.cxx +75 -0
- data/ext/couchbase/couchbase/operations/management/scope_create.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/scope_drop.cxx +70 -0
- data/ext/couchbase/couchbase/operations/management/scope_drop.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/scope_get_all.cxx +62 -0
- data/ext/couchbase/couchbase/operations/management/scope_get_all.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/search.hxx +30 -0
- data/ext/couchbase/couchbase/operations/management/search_get_stats.cxx +41 -0
- data/ext/couchbase/couchbase/operations/management/search_get_stats.hxx +48 -0
- data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.cxx +85 -0
- data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.hxx +54 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.cxx +73 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.cxx +73 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.hxx +57 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_query.cxx +73 -0
- data/ext/couchbase/couchbase/operations/management/search_index_control_query.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/search_index_drop.cxx +72 -0
- data/ext/couchbase/couchbase/operations/management/search_index_drop.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get.cxx +75 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get.hxx +54 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_all.cxx +67 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_all.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.cxx +79 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_stats.cxx +71 -0
- data/ext/couchbase/couchbase/operations/management/search_index_get_stats.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/search_index_upsert.cxx +108 -0
- data/ext/couchbase/couchbase/operations/management/search_index_upsert.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/user.hxx +28 -0
- data/ext/couchbase/couchbase/operations/management/user_drop.cxx +52 -0
- data/ext/couchbase/couchbase/operations/management/user_drop.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/user_get.cxx +61 -0
- data/ext/couchbase/couchbase/operations/management/user_get.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/user_get_all.cxx +59 -0
- data/ext/couchbase/couchbase/operations/management/user_get_all.hxx +51 -0
- data/ext/couchbase/couchbase/operations/management/user_upsert.cxx +101 -0
- data/ext/couchbase/couchbase/operations/management/user_upsert.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/view.hxx +23 -0
- data/ext/couchbase/couchbase/operations/management/view_index_drop.cxx +46 -0
- data/ext/couchbase/couchbase/operations/management/view_index_drop.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/view_index_get.cxx +74 -0
- data/ext/couchbase/couchbase/operations/management/view_index_get.hxx +53 -0
- data/ext/couchbase/couchbase/operations/management/view_index_get_all.cxx +108 -0
- data/ext/couchbase/couchbase/operations/management/view_index_get_all.hxx +52 -0
- data/ext/couchbase/couchbase/operations/management/view_index_upsert.cxx +71 -0
- data/ext/couchbase/couchbase/operations/management/view_index_upsert.hxx +51 -0
- data/ext/couchbase/couchbase/operations/mcbp_noop.cxx +38 -0
- data/ext/couchbase/couchbase/operations/mcbp_noop.hxx +49 -0
- data/ext/couchbase/couchbase/operations.hxx +42 -0
- data/ext/couchbase/couchbase/origin.hxx +185 -0
- data/ext/couchbase/couchbase/platform/CMakeLists.txt +16 -0
- data/ext/couchbase/couchbase/platform/backtrace.c +189 -0
- data/ext/couchbase/{platform → couchbase/platform}/backtrace.h +0 -0
- data/ext/couchbase/couchbase/platform/base64.cc +234 -0
- data/ext/couchbase/couchbase/platform/base64.h +44 -0
- data/ext/couchbase/couchbase/platform/dirutils.cc +123 -0
- data/ext/couchbase/couchbase/platform/dirutils.h +43 -0
- data/ext/couchbase/couchbase/platform/random.cc +120 -0
- data/ext/couchbase/{platform → couchbase/platform}/random.h +0 -0
- data/ext/couchbase/couchbase/platform/string_hex.cc +99 -0
- data/ext/couchbase/couchbase/platform/string_hex.h +50 -0
- data/ext/couchbase/couchbase/platform/terminate_handler.cc +125 -0
- data/ext/couchbase/{platform → couchbase/platform}/terminate_handler.h +0 -0
- data/ext/couchbase/couchbase/platform/uuid.cc +98 -0
- data/ext/couchbase/{platform → couchbase/platform}/uuid.h +0 -0
- data/ext/couchbase/couchbase/protocol/CMakeLists.txt +42 -0
- data/ext/couchbase/couchbase/protocol/client_opcode.hxx +359 -0
- data/ext/couchbase/couchbase/protocol/client_opcode_fmt.hxx +316 -0
- data/ext/couchbase/couchbase/protocol/client_request.cxx +37 -0
- data/ext/couchbase/couchbase/protocol/client_request.hxx +157 -0
- data/ext/couchbase/couchbase/protocol/client_response.cxx +74 -0
- data/ext/couchbase/couchbase/protocol/client_response.hxx +211 -0
- data/ext/couchbase/couchbase/protocol/cmd_append.cxx +82 -0
- data/ext/couchbase/couchbase/protocol/cmd_append.hxx +107 -0
- data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.cxx +51 -0
- data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.hxx +57 -0
- data/ext/couchbase/couchbase/protocol/cmd_decrement.cxx +112 -0
- data/ext/couchbase/couchbase/protocol/cmd_decrement.hxx +131 -0
- data/ext/couchbase/couchbase/protocol/cmd_exists.cxx +92 -0
- data/ext/couchbase/couchbase/protocol/cmd_exists.hxx +121 -0
- data/ext/couchbase/couchbase/protocol/cmd_get.cxx +63 -0
- data/ext/couchbase/couchbase/protocol/cmd_get.hxx +101 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.cxx +68 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.hxx +117 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.cxx +70 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.hxx +117 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.cxx +84 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.hxx +89 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.cxx +50 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.hxx +98 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.cxx +44 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.hxx +84 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_error_map.cxx +59 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_error_map.hxx +103 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_meta.cxx +74 -0
- data/ext/couchbase/couchbase/protocol/cmd_get_meta.hxx +119 -0
- data/ext/couchbase/couchbase/protocol/cmd_hello.cxx +66 -0
- data/ext/couchbase/couchbase/protocol/cmd_hello.hxx +144 -0
- data/ext/couchbase/couchbase/protocol/cmd_increment.cxx +117 -0
- data/ext/couchbase/couchbase/protocol/cmd_increment.hxx +131 -0
- data/ext/couchbase/couchbase/protocol/cmd_info.hxx +29 -0
- data/ext/couchbase/couchbase/protocol/cmd_insert.cxx +92 -0
- data/ext/couchbase/couchbase/protocol/cmd_insert.hxx +123 -0
- data/ext/couchbase/couchbase/protocol/cmd_lookup_in.cxx +109 -0
- data/ext/couchbase/couchbase/protocol/cmd_lookup_in.hxx +165 -0
- data/ext/couchbase/couchbase/protocol/cmd_mutate_in.cxx +174 -0
- data/ext/couchbase/couchbase/protocol/cmd_mutate_in.hxx +311 -0
- data/ext/couchbase/couchbase/protocol/cmd_noop.cxx +36 -0
- data/ext/couchbase/couchbase/protocol/cmd_noop.hxx +75 -0
- data/ext/couchbase/couchbase/protocol/cmd_prepend.cxx +82 -0
- data/ext/couchbase/couchbase/protocol/cmd_prepend.hxx +102 -0
- data/ext/couchbase/couchbase/protocol/cmd_remove.cxx +83 -0
- data/ext/couchbase/couchbase/protocol/cmd_remove.hxx +93 -0
- data/ext/couchbase/couchbase/protocol/cmd_replace.cxx +105 -0
- data/ext/couchbase/couchbase/protocol/cmd_replace.hxx +130 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.cxx +40 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.hxx +97 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.cxx +48 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.hxx +82 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_step.cxx +40 -0
- data/ext/couchbase/couchbase/protocol/cmd_sasl_step.hxx +97 -0
- data/ext/couchbase/couchbase/protocol/cmd_select_bucket.cxx +36 -0
- data/ext/couchbase/couchbase/protocol/cmd_select_bucket.hxx +82 -0
- data/ext/couchbase/couchbase/protocol/cmd_touch.cxx +57 -0
- data/ext/couchbase/couchbase/protocol/cmd_touch.hxx +84 -0
- data/ext/couchbase/couchbase/protocol/cmd_unlock.cxx +48 -0
- data/ext/couchbase/couchbase/protocol/cmd_unlock.hxx +81 -0
- data/ext/couchbase/couchbase/protocol/cmd_upsert.cxx +104 -0
- data/ext/couchbase/couchbase/protocol/cmd_upsert.hxx +125 -0
- data/ext/couchbase/couchbase/protocol/datatype.hxx +48 -0
- data/ext/couchbase/couchbase/protocol/durability_level.hxx +59 -0
- data/ext/couchbase/couchbase/protocol/durability_level_fmt.hxx +52 -0
- data/ext/couchbase/{protocol → couchbase/protocol}/enhanced_error_info.hxx +0 -0
- data/ext/couchbase/couchbase/protocol/enhanced_error_info_fmt.hxx +44 -0
- data/ext/couchbase/couchbase/protocol/frame_info_id.hxx +142 -0
- data/ext/couchbase/couchbase/protocol/frame_info_id_fmt.hxx +79 -0
- data/ext/couchbase/couchbase/protocol/hello_feature.hxx +186 -0
- data/ext/couchbase/couchbase/protocol/hello_feature_fmt.hxx +106 -0
- data/ext/couchbase/couchbase/protocol/magic.hxx +53 -0
- data/ext/couchbase/couchbase/protocol/magic_fmt.hxx +58 -0
- data/ext/couchbase/couchbase/protocol/server_opcode.hxx +39 -0
- data/ext/couchbase/couchbase/protocol/server_opcode_fmt.hxx +46 -0
- data/ext/couchbase/couchbase/protocol/server_request.hxx +121 -0
- data/ext/couchbase/couchbase/protocol/status.cxx +187 -0
- data/ext/couchbase/couchbase/protocol/status.hxx +180 -0
- data/ext/couchbase/couchbase/protocol/status_fmt.hxx +241 -0
- data/ext/couchbase/couchbase/query_profile_mode.hxx +27 -0
- data/ext/couchbase/couchbase/query_scan_consistency.hxx +23 -0
- data/ext/couchbase/couchbase/sasl/CMakeLists.txt +16 -0
- data/ext/couchbase/couchbase/sasl/client.cc +50 -0
- data/ext/couchbase/couchbase/sasl/client.h +128 -0
- data/ext/couchbase/couchbase/sasl/context.cc +34 -0
- data/ext/couchbase/couchbase/sasl/context.h +52 -0
- data/ext/couchbase/couchbase/sasl/error.h +28 -0
- data/ext/couchbase/couchbase/sasl/error_fmt.h +70 -0
- data/ext/couchbase/couchbase/sasl/mechanism.cc +45 -0
- data/ext/couchbase/couchbase/sasl/mechanism.h +52 -0
- data/ext/couchbase/couchbase/sasl/plain/plain.cc +39 -0
- data/ext/couchbase/couchbase/sasl/plain/plain.h +54 -0
- data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.cc +372 -0
- data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.h +184 -0
- data/ext/couchbase/couchbase/sasl/scram-sha/stringutils.cc +82 -0
- data/ext/couchbase/{cbsasl → couchbase/sasl}/scram-sha/stringutils.h +0 -0
- data/ext/couchbase/couchbase/search_highlight_style.hxx +23 -0
- data/ext/couchbase/couchbase/search_scan_consistency.hxx +23 -0
- data/ext/couchbase/couchbase/service_type.hxx +31 -0
- data/ext/couchbase/couchbase/service_type_fmt.hxx +61 -0
- data/ext/couchbase/couchbase/timeout_defaults.hxx +42 -0
- data/ext/couchbase/couchbase/topology/CMakeLists.txt +9 -0
- data/ext/couchbase/couchbase/topology/capabilities.hxx +43 -0
- data/ext/couchbase/couchbase/topology/capabilities_fmt.hxx +106 -0
- data/ext/couchbase/couchbase/topology/collections_manifest.hxx +42 -0
- data/ext/couchbase/couchbase/topology/collections_manifest_fmt.hxx +52 -0
- data/ext/couchbase/couchbase/topology/collections_manifest_json.hxx +50 -0
- data/ext/couchbase/couchbase/topology/configuration.cxx +223 -0
- data/ext/couchbase/couchbase/topology/configuration.hxx +120 -0
- data/ext/couchbase/couchbase/topology/configuration_fmt.hxx +166 -0
- data/ext/couchbase/couchbase/topology/configuration_json.hxx +259 -0
- data/ext/couchbase/couchbase/topology/error_map.hxx +149 -0
- data/ext/couchbase/couchbase/topology/error_map_fmt.hxx +94 -0
- data/ext/couchbase/couchbase/topology/error_map_json.hxx +88 -0
- data/ext/couchbase/couchbase/tracing/CMakeLists.txt +9 -0
- data/ext/couchbase/couchbase/tracing/constants.hxx +274 -0
- data/ext/couchbase/couchbase/tracing/noop_tracer.hxx +55 -0
- data/ext/couchbase/couchbase/tracing/request_tracer.hxx +79 -0
- data/ext/couchbase/couchbase/tracing/threshold_logging_options.hxx +68 -0
- data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.cxx +422 -0
- data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.hxx +49 -0
- data/ext/couchbase/couchbase/utils/CMakeLists.txt +17 -0
- data/ext/couchbase/couchbase/utils/byteswap.cxx +45 -0
- data/ext/couchbase/couchbase/utils/byteswap.hxx +49 -0
- data/ext/couchbase/couchbase/utils/connection_string.cxx +420 -0
- data/ext/couchbase/couchbase/utils/connection_string.hxx +76 -0
- data/ext/couchbase/{utils → couchbase/utils}/crc32.hxx +0 -0
- data/ext/couchbase/couchbase/utils/duration_parser.cxx +193 -0
- data/ext/couchbase/couchbase/utils/duration_parser.hxx +45 -0
- data/ext/couchbase/couchbase/utils/join_strings.hxx +65 -0
- data/ext/couchbase/couchbase/utils/json.cxx +71 -0
- data/ext/couchbase/couchbase/utils/json.hxx +37 -0
- data/ext/couchbase/couchbase/utils/json_stream_control.hxx +32 -0
- data/ext/couchbase/couchbase/utils/json_streaming_lexer.cxx +394 -0
- data/ext/couchbase/couchbase/utils/json_streaming_lexer.hxx +58 -0
- data/ext/couchbase/couchbase/utils/movable_function.hxx +110 -0
- data/ext/couchbase/couchbase/utils/name_codec.hxx +41 -0
- data/ext/couchbase/couchbase/utils/unsigned_leb128.hxx +181 -0
- data/ext/couchbase/couchbase/utils/url_codec.cxx +404 -0
- data/ext/couchbase/couchbase/utils/url_codec.hxx +72 -0
- data/ext/couchbase/couchbase/view_scan_consistency.hxx +27 -0
- data/ext/couchbase/couchbase/view_sort_order.hxx +23 -0
- data/ext/couchbase/test/CMakeLists.txt +22 -0
- data/ext/couchbase/test/benchmark_helper_integration.hxx +22 -0
- data/ext/couchbase/test/benchmark_integration_get.cxx +45 -0
- data/ext/couchbase/test/test_helper.hxx +25 -0
- data/ext/couchbase/test/test_helper_integration.hxx +24 -0
- data/ext/couchbase/test/test_integration_arithmetic.cxx +112 -0
- data/ext/couchbase/test/test_integration_binary_operations.cxx +115 -0
- data/ext/couchbase/test/test_integration_collections.cxx +176 -0
- data/ext/couchbase/test/test_integration_connect.cxx +148 -0
- data/ext/couchbase/test/test_integration_crud.cxx +726 -0
- data/ext/couchbase/test/test_integration_diagnostics.cxx +365 -0
- data/ext/couchbase/test/test_integration_durability.cxx +82 -0
- data/ext/couchbase/test/test_integration_management.cxx +2657 -0
- data/ext/couchbase/test/test_integration_query.cxx +407 -0
- data/ext/couchbase/test/test_integration_subdoc.cxx +893 -0
- data/ext/couchbase/test/test_unit_connection_string.cxx +379 -0
- data/ext/couchbase/test/test_unit_json_streaming_lexer.cxx +115 -0
- data/ext/couchbase/test/test_unit_jsonsl.cxx +511 -0
- data/ext/couchbase/test/test_unit_utils.cxx +127 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/any_io_executor.hpp +301 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_allocator.hpp +177 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_cancellation_slot.hpp +177 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_executor.hpp +222 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/associator.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/async_result.hpp +1271 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/awaitable.hpp +133 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +1303 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +703 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_file.hpp +829 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_io_object.hpp +290 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_random_access_file.hpp +677 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_raw_socket.hpp +1294 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_readable_pipe.hpp +523 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +798 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_serial_port.hpp +907 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_signal_set.hpp +576 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket.hpp +1923 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +2606 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +407 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +687 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_file.hpp +730 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_socket.hpp +1120 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf.hpp +452 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +36 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +821 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_writable_pipe.hpp +519 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/bind_cancellation_slot.hpp +721 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/bind_executor.hpp +754 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffer.hpp +2496 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffer_registration.hpp +327 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream.hpp +253 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +25 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream.hpp +279 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +25 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream.hpp +245 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +25 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/buffers_iterator.hpp +521 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_signal.hpp +305 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_state.hpp +235 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_type.hpp +174 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/co_spawn.hpp +499 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/completion_condition.hpp +218 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/compose.hpp +136 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/connect.hpp +1136 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/connect_pipe.hpp +83 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/coroutine.hpp +328 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/deadline_timer.hpp +38 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/defer.hpp +130 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detached.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/array.hpp +38 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/array_fwd.hpp +34 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/assert.hpp +32 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/atomic_count.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +163 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +69 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/bind_handler.hpp +1071 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +107 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +841 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +126 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +88 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/call_stack.hpp +125 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono.hpp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +190 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/completion_handler.hpp +88 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +94 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +120 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +149 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/config.hpp +1998 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +451 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstddef.hpp +31 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstdint.hpp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +34 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +335 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/dependent_type.hpp +36 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +179 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +148 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +148 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +230 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +278 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/event.hpp +48 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +83 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_function.hpp +204 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_op.hpp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +39 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/fenced_block.hpp +80 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/functional.hpp +44 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/future.hpp +33 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +91 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +68 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +65 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +99 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/global.hpp +52 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +288 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +45 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +80 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +264 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +559 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_work.hpp +525 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/hash_map.hpp +331 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +118 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +933 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +111 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +460 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +109 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +817 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +171 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +396 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +202 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +131 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.ipp +879 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +249 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +113 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +599 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +74 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +129 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +63 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +46 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +149 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +46 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +225 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +302 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +158 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +674 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +357 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +94 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +197 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +746 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +3964 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +185 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +354 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +158 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +87 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +202 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/thread_context.ipp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +97 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +101 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +76 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +250 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +525 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +120 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +608 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +192 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +821 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +448 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +136 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +150 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +57 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +626 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +92 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +121 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +82 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_control.hpp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +172 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +190 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +185 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +661 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +184 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +180 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_file_service.hpp +251 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +111 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_operation.hpp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_service.hpp +318 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +277 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +137 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +200 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +201 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +187 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +186 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +189 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service.hpp +613 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +663 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_wait_op.hpp +109 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +338 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_executor.hpp +126 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +254 -0
- data/ext/{third_party → couchbase/third_party}/asio/asio/include/asio/detail/limits.hpp +0 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +59 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/memory.hpp +133 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/mutex.hpp +48 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/noncopyable.hpp +43 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_event.hpp +106 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +47 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_global.hpp +59 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_mutex.hpp +60 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_reactor.hpp +83 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +69 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +519 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +60 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_thread.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +68 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/object_pool.hpp +171 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +214 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/op_queue.hpp +162 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/operation.hpp +38 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +89 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/pop_options.hpp +153 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_event.hpp +175 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +118 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_global.hpp +80 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +76 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_serial_port_service.hpp +248 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +85 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +64 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_thread.hpp +109 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +79 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/push_options.hpp +219 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +511 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +98 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +242 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +123 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +159 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +164 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +145 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +162 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +156 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +607 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +654 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +98 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor.hpp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +212 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +105 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +44 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +140 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_op.hpp +45 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +150 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service.hpp +145 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +158 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler.hpp +241 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +78 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_task.hpp +49 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +40 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +101 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +87 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +46 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_reactor.hpp +252 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/service_registry.hpp +164 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +44 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_handler.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_init.hpp +47 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_op.hpp +49 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +241 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_holder.hpp +98 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_ops.hpp +383 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_option.hpp +316 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +91 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_types.hpp +417 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/source_location.hpp +45 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/static_mutex.hpp +52 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_event.hpp +188 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_global.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_mutex.hpp +73 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +81 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_thread.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +173 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_service.hpp +144 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/string_view.hpp +47 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread.hpp +60 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_context.hpp +51 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_group.hpp +99 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +260 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_error.hpp +53 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_exception.hpp +51 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue.hpp +389 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +68 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +103 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +37 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +42 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +69 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/type_traits.hpp +156 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +294 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_handler.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_op.hpp +49 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_event.hpp +164 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +149 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_global.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_file_service.hpp +280 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +117 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +403 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +110 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +345 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +127 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +96 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +96 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +171 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +232 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +338 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +135 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +133 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +125 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +118 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +659 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +832 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +34 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +128 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_mutex.hpp +78 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +195 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +74 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_thread.hpp +147 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +79 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wince_thread.hpp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +305 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +65 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +125 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +212 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +98 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +119 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +110 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +250 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +362 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +147 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +106 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winsock_init.hpp +128 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +151 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +327 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/dispatch.hpp +121 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/error.hpp +356 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/error_code.hpp +202 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/allocator.hpp +337 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/any_executor.hpp +2351 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bad_executor.hpp +47 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking.hpp +1551 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +1212 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +397 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +1215 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/connect.hpp +489 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/context.hpp +233 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/context_as.hpp +221 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +152 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +105 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +128 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +261 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +233 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/execute.hpp +283 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/executor.hpp +252 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +40 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +36 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/mapping.hpp +1116 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/occupancy.hpp +226 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/operation_state.hpp +94 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +867 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/prefer_only.hpp +331 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver.hpp +280 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +48 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/relationship.hpp +865 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/schedule.hpp +287 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/scheduler.hpp +86 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/sender.hpp +311 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_done.hpp +250 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_error.hpp +250 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_value.hpp +483 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/start.hpp +247 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/submit.hpp +450 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution.hpp +48 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/execution_context.hpp +412 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/executor.hpp +347 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/executor_work_guard.hpp +302 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/append.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_single.hpp +135 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_tuple.hpp +131 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/awaitable_operators.hpp +536 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_channel.hpp +415 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +424 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/cancellation_condition.hpp +155 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_error.hpp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_traits.hpp +231 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/co_spawn.hpp +191 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/concurrent_channel.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro.hpp +263 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro_traits.hpp +228 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/deferred.hpp +605 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_handler.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_message.hpp +122 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_operation.hpp +199 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_payload.hpp +93 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +131 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +140 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_service.hpp +497 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/completion_handler_erasure.hpp +158 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +118 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/has_signature.hpp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +611 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/partial_promise.hpp +176 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/append.hpp +217 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_single.hpp +229 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_tuple.hpp +246 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/channel_error.ipp +61 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/coro.hpp +1204 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/deferred.hpp +104 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/parallel_group.hpp +432 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/prepend.hpp +217 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/promise.hpp +102 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/use_coro.hpp +267 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/parallel_group.hpp +215 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/prepend.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/promise.hpp +610 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/use_coro.hpp +169 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/file_base.hpp +160 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +193 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +123 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +133 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +110 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +121 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +122 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +127 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +104 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +111 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/high_resolution_timer.hpp +44 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/any_io_executor.ipp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/awaitable.hpp +760 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +498 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +478 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/cancellation_signal.ipp +96 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/co_spawn.hpp +346 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/compose.hpp +707 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect.hpp +905 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.hpp +73 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.ipp +149 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/defer.hpp +256 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/detached.hpp +130 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/dispatch.hpp +251 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/error.ipp +128 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/error_code.ipp +206 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.hpp +109 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.ipp +82 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.hpp +300 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.ipp +43 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.hpp +444 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.ipp +175 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +49 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/post.hpp +256 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read.hpp +1199 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_at.hpp +733 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_until.hpp +3315 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/redirect_error.hpp +609 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +59 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +554 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/spawn.hpp +517 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/src.hpp +95 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.hpp +34 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.ipp +92 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_executor.hpp +185 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.hpp +354 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.ipp +141 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +291 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_future.hpp +1028 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/write.hpp +1100 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/write_at.hpp +644 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/io_context.hpp +1560 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/io_context_strand.hpp +376 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/io_service.hpp +33 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/io_service_strand.hpp +20 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address.hpp +290 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4.hpp +355 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +162 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +134 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6.hpp +382 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +183 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +129 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +53 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +291 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +1076 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +113 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +192 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +244 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +311 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +141 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +199 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +566 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp +42 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/icmp.hpp +115 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.ipp +239 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +210 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +350 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +43 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +54 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +216 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +53 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +185 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/multicast.hpp +191 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v4.hpp +261 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v6.hpp +235 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_base.hpp +129 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +43 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/tcp.hpp +155 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/udp.hpp +111 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/unicast.hpp +70 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/v6_only.hpp +69 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/is_applicable_property.hpp +61 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/is_executor.hpp +46 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/is_read_buffered.hpp +59 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/is_write_buffered.hpp +59 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +247 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/connect_pair.hpp +101 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +80 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +139 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +131 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/local/stream_protocol.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/multiple_exceptions.hpp +58 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/packaged_task.hpp +126 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/placeholders.hpp +151 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +720 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +501 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor.hpp +37 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +37 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/post.hpp +126 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/prefer.hpp +734 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/query.hpp +324 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/random_access_file.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/read.hpp +1388 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/read_at.hpp +738 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/read_until.hpp +3031 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/readable_pipe.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/redirect_error.hpp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/registered_buffer.hpp +356 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/require.hpp +571 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/require_concept.hpp +352 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/serial_port.hpp +36 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/serial_port_base.hpp +167 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/signal_set.hpp +28 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/socket_base.hpp +559 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/spawn.hpp +344 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context.hpp +761 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context_base.hpp +209 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +119 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +170 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +363 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +165 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/io.hpp +425 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +101 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +34 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +66 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +72 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +69 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +206 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +62 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +76 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/error.hpp +125 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.ipp +1245 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/error.ipp +102 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +73 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +164 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/src.hpp +29 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +98 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream.hpp +972 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream_base.hpp +52 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_context.hpp +67 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +63 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl.hpp +28 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/static_thread_pool.hpp +31 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/steady_timer.hpp +42 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/strand.hpp +569 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/stream_file.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/streambuf.hpp +33 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/system_context.hpp +90 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/system_error.hpp +131 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/system_executor.hpp +684 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/system_timer.hpp +42 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/this_coro.hpp +280 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/thread.hpp +92 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/thread_pool.hpp +1140 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/time_traits.hpp +86 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +114 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +114 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_free.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_member.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +104 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_free.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_member.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_free.hpp +234 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_member.hpp +234 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_free.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_member.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_query.hpp +108 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require.hpp +123 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +124 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_free.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_member.hpp +112 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/buffer.hpp +24 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/executor.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/internet.hpp +40 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/io_context.hpp +20 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/net.hpp +26 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/netfwd.hpp +254 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/socket.hpp +27 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/timer.hpp +26 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/unyield.hpp +21 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/use_awaitable.hpp +166 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/use_future.hpp +160 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/uses_executor.hpp +71 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/version.hpp +23 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/wait_traits.hpp +56 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +435 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +361 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +510 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +494 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/object_handle.hpp +38 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +39 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +145 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +37 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/stream_handle.hpp +37 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/writable_pipe.hpp +35 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/write.hpp +1346 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/write_at.hpp +746 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/yield.hpp +23 -0
- data/ext/couchbase/third_party/asio/asio/include/asio.hpp +201 -0
- data/ext/couchbase/third_party/fmt/CMakeLists.txt +410 -0
- data/ext/couchbase/third_party/fmt/ChangeLog.rst +4364 -0
- data/ext/{third_party/spdlog/include/spdlog/fmt/bundled → couchbase/third_party/fmt}/LICENSE.rst +0 -0
- data/ext/couchbase/third_party/fmt/README.rst +528 -0
- data/ext/couchbase/third_party/fmt/include/fmt/args.h +244 -0
- data/ext/couchbase/third_party/fmt/include/fmt/chrono.h +2055 -0
- data/ext/couchbase/third_party/fmt/include/fmt/color.h +638 -0
- data/ext/couchbase/third_party/fmt/include/fmt/compile.h +642 -0
- data/ext/couchbase/third_party/fmt/include/fmt/core.h +3217 -0
- data/ext/couchbase/third_party/fmt/include/fmt/format-inl.h +2637 -0
- data/ext/couchbase/third_party/fmt/include/fmt/format.h +3120 -0
- data/ext/couchbase/third_party/fmt/include/fmt/locale.h +2 -0
- data/ext/couchbase/third_party/fmt/include/fmt/os.h +527 -0
- data/ext/couchbase/third_party/fmt/include/fmt/ostream.h +135 -0
- data/ext/couchbase/third_party/fmt/include/fmt/printf.h +657 -0
- data/ext/couchbase/third_party/fmt/include/fmt/ranges.h +742 -0
- data/ext/couchbase/third_party/fmt/include/fmt/xchar.h +236 -0
- data/ext/couchbase/third_party/fmt/src/fmt.cc +99 -0
- data/ext/couchbase/third_party/fmt/src/format.cc +124 -0
- data/ext/couchbase/third_party/fmt/src/os.cc +361 -0
- data/ext/couchbase/third_party/fmt/support/cmake/FindSetEnv.cmake +7 -0
- data/ext/couchbase/third_party/fmt/support/cmake/JoinPaths.cmake +26 -0
- data/ext/couchbase/third_party/fmt/support/cmake/cxx14.cmake +70 -0
- data/ext/couchbase/third_party/fmt/support/cmake/fmt-config.cmake.in +4 -0
- data/ext/couchbase/third_party/fmt/support/cmake/fmt.pc.in +11 -0
- data/ext/couchbase/third_party/gsl/CMakeLists.txt +61 -0
- data/ext/{third_party → couchbase/third_party}/gsl/LICENSE +0 -0
- data/ext/{third_party → couchbase/third_party}/gsl/ThirdPartyNotices.txt +0 -0
- data/ext/couchbase/third_party/gsl/cmake/guidelineSupportLibrary.cmake +116 -0
- data/ext/couchbase/third_party/gsl/include/CMakeLists.txt +20 -0
- data/ext/couchbase/third_party/gsl/include/gsl/algorithm +63 -0
- data/ext/couchbase/third_party/gsl/include/gsl/assert +136 -0
- data/ext/couchbase/third_party/gsl/include/gsl/byte +213 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl +32 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl_algorithm +4 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl_assert +3 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl_byte +3 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl_narrow +3 -0
- data/ext/couchbase/third_party/gsl/include/gsl/gsl_util +3 -0
- data/ext/couchbase/third_party/gsl/include/gsl/narrow +66 -0
- data/ext/couchbase/third_party/gsl/include/gsl/pointers +323 -0
- data/ext/couchbase/third_party/gsl/include/gsl/span +821 -0
- data/ext/couchbase/third_party/gsl/include/gsl/span_ext +212 -0
- data/ext/couchbase/third_party/gsl/include/gsl/string_span +767 -0
- data/ext/couchbase/third_party/gsl/include/gsl/util +157 -0
- data/ext/couchbase/third_party/hdr_histogram_c/CMakeLists.txt +84 -0
- data/ext/couchbase/third_party/hdr_histogram_c/COPYING.txt +121 -0
- data/ext/couchbase/third_party/hdr_histogram_c/LICENSE.txt +41 -0
- data/ext/couchbase/third_party/hdr_histogram_c/config.cmake.in +6 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/CMakeLists.txt +83 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_atomic.h +146 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_encoding.c +322 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_encoding.h +79 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_endian.h +116 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_histogram.c +1211 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_histogram.h +516 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_histogram_log.c +1290 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_histogram_log.h +236 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_histogram_log_no_op.c +171 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_interval_recorder.c +227 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_interval_recorder.h +109 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_malloc.h +19 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_tests.h +22 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_thread.c +108 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_thread.h +55 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_time.c +98 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_time.h +49 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_writer_reader_phaser.c +143 -0
- data/ext/couchbase/third_party/hdr_histogram_c/src/hdr_writer_reader_phaser.h +51 -0
- data/ext/{third_party → couchbase/third_party}/http_parser/LICENSE-MIT +0 -0
- data/ext/{third_party → couchbase/third_party}/http_parser/http_parser.c +0 -0
- data/ext/{third_party → couchbase/third_party}/http_parser/http_parser.h +0 -0
- data/ext/couchbase/third_party/json/CMakeLists.txt +90 -0
- data/ext/couchbase/third_party/json/LICENSE +21 -0
- data/ext/{third_party → couchbase/third_party}/json/LICENSE.double-conversion +0 -0
- data/ext/{third_party → couchbase/third_party}/json/LICENSE.itoa +0 -0
- data/ext/{third_party → couchbase/third_party}/json/LICENSE.ryu +0 -0
- data/ext/couchbase/third_party/json/external/PEGTL/.cmake/pegtl-config.cmake.in +4 -0
- data/ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in +22 -0
- data/ext/couchbase/third_party/json/external/PEGTL/CMakeLists.txt +155 -0
- data/ext/couchbase/third_party/json/external/PEGTL/LICENSE +21 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/apply_mode.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/argv_input.hpp +49 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/ascii.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/buffer_input.hpp +226 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action.hpp +38 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_state.hpp +71 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_states.hpp +62 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_control.hpp +36 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_state.hpp +69 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_states.hpp +61 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/config.hpp +11 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/abnf.hpp +35 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/add_state.hpp +69 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/alphabet.hpp +67 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze.hpp +189 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp +277 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp +55 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/control_action.hpp +81 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/coverage.hpp +151 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/forward.hpp +16 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/function.hpp +52 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/http.hpp +277 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp +98 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp +196 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp +196 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp +103 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/if_then.hpp +56 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/instantiate.hpp +38 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/integer.hpp +468 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp +77 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp +198 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp +102 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp +33 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp +45 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp +43 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp +77 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp +52 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp +45 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/iri.hpp +106 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json.hpp +91 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp +33 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp +88 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp +83 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp +443 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp +111 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/peg.hpp +121 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/predicates.hpp +126 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print.hpp +75 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp +53 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/proto3.hpp +142 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/raw_string.hpp +232 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp +72 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp +121 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp +100 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_string.hpp +43 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp +45 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp +193 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/state_control.hpp +122 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/to_string.hpp +38 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/trace.hpp +227 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint16.hpp +62 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint32.hpp +62 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint64.hpp +63 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint8.hpp +36 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/unescape.hpp +214 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uri.hpp +111 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf16.hpp +57 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf32.hpp +57 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/cstream_input.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/demangle.hpp +175 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/disable_action.hpp +35 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input.hpp +37 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp +39 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_success.hpp +39 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/enable_action.hpp +35 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol.hpp +37 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol_pair.hpp +18 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/file_input.hpp +44 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action_input.hpp +106 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/any.hpp +77 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply.hpp +53 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0.hpp +51 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0_single.hpp +34 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply_single.hpp +34 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/at.hpp +55 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bof.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bol.hpp +31 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump.hpp +45 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump_help.hpp +26 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bytes.hpp +43 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/control.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_eol.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp +58 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp +40 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_false.hpp +16 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_true.hpp +16 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/disable.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/discard.hpp +34 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable_control.hpp +25 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eof.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eol.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eolf.hpp +33 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/failure.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp +159 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp +243 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_reader.hpp +152 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/filesystem.hpp +64 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply.hpp +21 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply0.hpp +21 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_match.hpp +40 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_unwind.hpp +21 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/identifier.hpp +22 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_apply.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must.hpp +52 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must_else.hpp +26 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_then_else.hpp +51 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/input_pair.hpp +29 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istream_reader.hpp +50 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istring.hpp +81 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/iterator.hpp +49 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp +37 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_eol.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_must.hpp +25 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail.hpp +22 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp +22 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/marker.hpp +80 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/minus.hpp +21 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply.hpp +28 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp +26 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/must.hpp +69 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/not_at.hpp +55 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/one.hpp +66 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/opt.hpp +57 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad_opt.hpp +20 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/path_to_string.hpp +28 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_char.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp +89 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp +90 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/plus.hpp +60 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/raise.hpp +49 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/range.hpp +60 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/ranges.hpp +90 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rematch.hpp +72 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep.hpp +67 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min.hpp +20 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp +81 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_opt.hpp +61 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/require.hpp +42 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/result_on_found.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rules.hpp +64 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/seq.hpp +58 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/sor.hpp +67 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star.hpp +52 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star_must.hpp +24 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/state.hpp +75 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/string.hpp +67 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/success.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp +69 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/until.hpp +88 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/istream_input.hpp +32 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/match.hpp +173 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/memory_input.hpp +378 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/mmap_input.hpp +79 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/must_if.hpp +69 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/normal.hpp +99 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/nothing.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse.hpp +72 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse_error.hpp +119 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/position.hpp +98 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/read_input.hpp +54 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply.hpp +16 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply0.hpp +16 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rewind_mode.hpp +20 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rules.hpp +71 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/string_input.hpp +64 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/tracking_mode.hpp +19 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/type_list.hpp +46 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/utf8.hpp +28 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/version.hpp +13 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/visit.hpp +80 -0
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl.hpp +48 -0
- data/ext/couchbase/third_party/json/include/tao/json/basic_value.hpp +962 -0
- data/ext/couchbase/third_party/json/include/tao/json/binary.hpp +103 -0
- data/ext/couchbase/third_party/json/include/tao/json/binary_view.hpp +31 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/constant.hpp +231 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/element.hpp +71 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/element2.hpp +35 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/factory.hpp +253 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/for_nothing_value.hpp +17 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/for_unknown_key.hpp +17 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/inherit.hpp +14 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/array.hpp +105 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/elementr.hpp +134 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/elementw.hpp +251 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/inherit.hpp +45 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/object.hpp +269 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/internal/type_key.hpp +54 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/member.hpp +47 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/member_kind.hpp +17 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding/versions.hpp +130 -0
- data/ext/couchbase/third_party/json/include/tao/json/binding.hpp +74 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/consume_file.hpp +34 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/consume_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/from_binary.hpp +44 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/from_file.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/from_input.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/from_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/to_stream.hpp +161 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/events/to_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/from_binary.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/from_file.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/from_input.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/from_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/internal/grammar.hpp +424 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/internal/major.hpp +28 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/parts_parser.hpp +395 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/to_stream.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor/to_string.hpp +29 -0
- data/ext/couchbase/third_party/json/include/tao/json/cbor.hpp +19 -0
- data/ext/couchbase/third_party/json/include/tao/json/consume.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/consume_file.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/consume_string.hpp +31 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/array_traits.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/deque_traits.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/diff.hpp +106 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/get.hpp +152 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +92 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +76 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +105 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +36 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/list_traits.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/map_traits.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/multimap_traits.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/multiset_traits.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/pair_traits.hpp +21 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/patch.hpp +117 -0
- data/ext/{third_party → couchbase/third_party}/json/include/tao/json/contrib/pointer_traits.hpp +0 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/position.hpp +166 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/reference.hpp +113 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/schema.hpp +1874 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/set_traits.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +98 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/traits.hpp +128 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/tuple_traits.hpp +51 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +97 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/variant_traits.hpp +73 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +45 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/vector_traits.hpp +51 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/apply.hpp +20 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/binary_to_base64.hpp +26 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/binary_to_base64url.hpp +28 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/binary_to_exception.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/binary_to_hex.hpp +26 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/compare.hpp +255 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/debug.hpp +145 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/discard.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_file.hpp +28 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_input.hpp +45 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_stream.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_string.hpp +38 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_value.hpp +205 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/hash.hpp +174 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +50 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +49 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +48 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +62 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +57 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +82 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/limit_value_count.hpp +46 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +31 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/non_finite_to_null.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/non_finite_to_string.hpp +40 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/prefer_signed.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/prefer_unsigned.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/produce.hpp +120 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/ref.hpp +114 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/statistics.hpp +112 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/tee.hpp +386 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/to_pretty_stream.hpp +172 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/to_stream.hpp +142 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/to_string.hpp +39 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/to_value.hpp +137 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/transformer.hpp +70 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/validate_event_order.hpp +415 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/validate_keys.hpp +52 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/virtual_base.hpp +192 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/virtual_ref.hpp +179 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/virtual_wrap.hpp +166 -0
- data/ext/couchbase/third_party/json/include/tao/json/events.hpp +52 -0
- data/ext/couchbase/third_party/json/include/tao/json/external/double.hpp +1306 -0
- data/ext/couchbase/third_party/json/include/tao/json/external/itoa.hpp +151 -0
- data/ext/couchbase/third_party/json/include/tao/json/external/ryu.hpp +1216 -0
- data/ext/couchbase/third_party/json/include/tao/json/forward.hpp +44 -0
- data/ext/couchbase/third_party/json/include/tao/json/from_file.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/from_input.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/from_stream.hpp +45 -0
- data/ext/couchbase/third_party/json/include/tao/json/from_string.hpp +41 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/action.hpp +271 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/base64.hpp +55 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/base64url.hpp +53 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/dependent_false.hpp +14 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/endian.hpp +60 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/endian_gcc.hpp +198 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/endian_win.hpp +103 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/errors.hpp +86 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/escape.hpp +69 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/filesystem.hpp +15 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/format.hpp +59 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/grammar.hpp +231 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/hexdump.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/identity.hpp +22 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/number_state.hpp +81 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/number_traits.hpp +267 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/pair.hpp +42 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/parse_util.hpp +113 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/sha256.hpp +218 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/single.hpp +40 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/string_t.hpp +35 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/type_traits.hpp +97 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/unescape_action.hpp +24 -0
- data/ext/couchbase/third_party/json/include/tao/json/internal/uri_fragment.hpp +182 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/consume_file.hpp +34 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/consume_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/from_file.hpp +29 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/from_input.hpp +45 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/from_string.hpp +39 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +69 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +67 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/events/to_string.hpp +39 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/from_file.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/from_input.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/from_stream.hpp +48 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/from_string.hpp +42 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/action.hpp +380 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +115 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/errors.hpp +110 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +381 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/integer.hpp +255 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +28 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/is_identifier.hpp +23 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/parts_parser.hpp +261 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/to_stream.hpp +36 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn/to_string.hpp +34 -0
- data/ext/couchbase/third_party/json/include/tao/json/jaxn.hpp +19 -0
- data/ext/couchbase/third_party/json/include/tao/json/message_extension.hpp +49 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/consume_file.hpp +34 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/consume_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/from_binary.hpp +44 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/from_file.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/from_input.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/from_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +214 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/events/to_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/from_binary.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/from_file.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/from_input.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/from_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/internal/format.hpp +57 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +230 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/parts_parser.hpp +315 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/to_stream.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack/to_string.hpp +29 -0
- data/ext/couchbase/third_party/json/include/tao/json/msgpack.hpp +19 -0
- data/ext/couchbase/third_party/json/include/tao/json/operators.hpp +490 -0
- data/ext/couchbase/third_party/json/include/tao/json/parts_parser.hpp +333 -0
- data/ext/couchbase/third_party/json/include/tao/json/pointer.hpp +433 -0
- data/ext/couchbase/third_party/json/include/tao/json/produce.hpp +61 -0
- data/ext/couchbase/third_party/json/include/tao/json/self_contained.hpp +130 -0
- data/ext/couchbase/third_party/json/include/tao/json/span.hpp +496 -0
- data/ext/couchbase/third_party/json/include/tao/json/stream.hpp +38 -0
- data/ext/couchbase/third_party/json/include/tao/json/to_stream.hpp +42 -0
- data/ext/couchbase/third_party/json/include/tao/json/to_string.hpp +25 -0
- data/ext/couchbase/third_party/json/include/tao/json/traits.hpp +975 -0
- data/ext/couchbase/third_party/json/include/tao/json/type.hpp +112 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/consume_file.hpp +34 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/consume_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/from_binary.hpp +44 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/from_file.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/from_input.hpp +43 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/from_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +174 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/events/to_string.hpp +37 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/from_binary.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/from_file.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/from_input.hpp +33 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/from_string.hpp +32 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +415 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/internal/marker.hpp +46 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/parts_parser.hpp +396 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/to_stream.hpp +28 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson/to_string.hpp +30 -0
- data/ext/couchbase/third_party/json/include/tao/json/ubjson.hpp +19 -0
- data/ext/couchbase/third_party/json/include/tao/json/utf8.hpp +56 -0
- data/ext/couchbase/third_party/json/include/tao/json/value.hpp +12 -0
- data/ext/couchbase/third_party/json/include/tao/json.hpp +45 -0
- data/ext/couchbase/third_party/jsonsl/LICENSE +20 -0
- data/ext/couchbase/third_party/jsonsl/jsonsl.c +3059 -0
- data/ext/couchbase/third_party/jsonsl/jsonsl.h +978 -0
- data/ext/couchbase/third_party/snappy/CMakeLists.txt +297 -0
- data/ext/{third_party → couchbase/third_party}/snappy/COPYING +0 -0
- data/ext/{third_party → couchbase/third_party}/snappy/cmake/SnappyConfig.cmake.in +0 -0
- data/ext/couchbase/third_party/snappy/cmake/config.h.in +62 -0
- data/ext/{third_party → couchbase/third_party}/snappy/snappy-c.cc +0 -0
- data/ext/{third_party → couchbase/third_party}/snappy/snappy-c.h +0 -0
- data/ext/couchbase/third_party/snappy/snappy-internal.h +231 -0
- data/ext/couchbase/third_party/snappy/snappy-sinksource.cc +104 -0
- data/ext/{third_party → couchbase/third_party}/snappy/snappy-sinksource.h +0 -0
- data/ext/couchbase/third_party/snappy/snappy-stubs-internal.cc +42 -0
- data/ext/couchbase/third_party/snappy/snappy-stubs-internal.h +606 -0
- data/ext/couchbase/third_party/snappy/snappy-stubs-public.h.in +74 -0
- data/ext/couchbase/third_party/snappy/snappy.cc +1661 -0
- data/ext/couchbase/third_party/snappy/snappy.h +207 -0
- data/ext/couchbase/third_party/spdlog/CMakeLists.txt +320 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/LICENSE +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/cmake/ide.cmake +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/cmake/pch.h.in +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/cmake/spdlog.pc.in +0 -0
- data/ext/couchbase/third_party/spdlog/cmake/spdlogCPack.cmake +60 -0
- data/ext/couchbase/third_party/spdlog/cmake/spdlogConfig.cmake.in +19 -0
- data/ext/couchbase/third_party/spdlog/cmake/utils.cmake +62 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/cmake/version.rc.in +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/async.h +93 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/async_logger-inl.h +92 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/async_logger.h +68 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/cfg/argv.h +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/cfg/env.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/cfg/helpers-inl.h +120 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/cfg/helpers.h +29 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/common-inl.h +78 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/common.h +276 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/backtracer-inl.h +69 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/backtracer.h +45 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/details/circular_q.h +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/details/console_globals.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/file_helper-inl.h +147 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/file_helper.h +59 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/fmt_helper.h +117 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/log_msg-inl.h +37 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/log_msg.h +37 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/log_msg_buffer-inl.h +58 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/log_msg_buffer.h +33 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/mpmc_blocking_q.h +126 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/details/null_mutex.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/os-inl.h +599 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/os.h +118 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/periodic_worker-inl.h +49 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/periodic_worker.h +40 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/registry-inl.h +313 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/registry.h +115 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/synchronous_factory.h +24 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/tcp_client-windows.h +175 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/tcp_client.h +146 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/thread_pool-inl.h +129 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/thread_pool.h +120 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/details/windows_include.h +11 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bin_to_hex.h +217 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/args.h +232 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/chrono.h +1308 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/color.h +627 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/compile.h +639 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/core.h +3002 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/format-inl.h +2620 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/format.h +2830 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/locale.h +2 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/os.h +515 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/ostream.h +181 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/printf.h +652 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/ranges.h +468 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/bundled/xchar.h +236 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/chrono.h +20 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/compile.h +20 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/fmt.h +27 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/ostr.h +20 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/fmt/xchar.h +20 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/formatter.h +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/fwd.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/logger-inl.h +257 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/logger.h +403 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/pattern_formatter-inl.h +1395 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/pattern_formatter.h +126 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/android_sink.h +119 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +145 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/ansicolor_sink.h +118 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/base_sink-inl.h +63 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/base_sink.h +52 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +43 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/basic_file_sink.h +58 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/daily_file_sink.h +242 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/sinks/dist_sink.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/dup_filter_sink.h +94 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/hourly_file_sink.h +194 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/mongo_sink.h +98 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/msvc_sink.h +48 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/sinks/null_sink.h +0 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/sinks/ostream_sink.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/qt_sinks.h +93 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +131 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/rotating_file_sink.h +78 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/sink-inl.h +25 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/sink.h +35 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +38 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks.h +45 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +139 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/stdout_sinks.h +87 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/sinks/syslog_sink.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/systemd_sink.h +103 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/tcp_sink.h +81 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/win_eventlog_sink.h +276 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +175 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/sinks/wincolor_sink.h +85 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/spdlog-inl.h +125 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/spdlog.h +345 -0
- data/ext/{third_party → couchbase/third_party}/spdlog/include/spdlog/stopwatch.h +0 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/tweakme.h +124 -0
- data/ext/couchbase/third_party/spdlog/include/spdlog/version.h +10 -0
- data/ext/couchbase/third_party/spdlog/src/async.cpp +13 -0
- data/ext/couchbase/third_party/spdlog/src/cfg.cpp +8 -0
- data/ext/couchbase/third_party/spdlog/src/color_sinks.cpp +51 -0
- data/ext/couchbase/third_party/spdlog/src/file_sinks.cpp +20 -0
- data/ext/couchbase/third_party/spdlog/src/fmt.cpp +68 -0
- data/ext/couchbase/third_party/spdlog/src/spdlog.cpp +26 -0
- data/ext/couchbase/third_party/spdlog/src/stdout_sinks.cpp +29 -0
- data/ext/couchbase.cxx +7422 -0
- data/ext/ext_build_version.hxx.in +20 -0
- data/ext/extconf.rb +56 -17
- data/ext/revisions.rb +2 -0
- data/lib/active_support/cache/couchbase_store.rb +32 -55
- data/lib/couchbase/binary_collection.rb +5 -5
- data/lib/couchbase/bucket.rb +2 -2
- data/lib/couchbase/cluster.rb +17 -14
- data/lib/couchbase/collection.rb +26 -25
- data/lib/couchbase/collection_options.rb +23 -9
- data/lib/couchbase/configuration.rb +1 -1
- data/lib/couchbase/errors.rb +6 -0
- data/lib/couchbase/management/analytics_index_manager.rb +920 -226
- data/lib/couchbase/management/bucket_manager.rb +215 -71
- data/lib/couchbase/management/collection_manager.rb +173 -61
- data/lib/couchbase/management/query_index_manager.rb +360 -180
- data/lib/couchbase/options.rb +122 -3
- data/lib/couchbase/scope.rb +107 -3
- data/lib/couchbase/search_options.rb +84 -0
- data/lib/couchbase/subdoc.rb +1 -1
- data/lib/couchbase/utils/time.rb +4 -0
- data/lib/couchbase/version.rb +10 -10
- metadata +1775 -1314
- data/ext/build_config.hxx.in +0 -22
- data/ext/build_version.hxx.in +0 -30
- data/ext/cmake/CompilerWarnings.cmake +0 -84
- data/ext/cmake/PreventInSourceBuilds.cmake +0 -21
- data/ext/cmake/Sanitizers.cmake +0 -66
- data/ext/cmake/StandardProjectSettings.cmake +0 -40
- data/ext/cmake/Testing.cmake +0 -49
- data/ext/cmake/ThirdPartyDependencies.cmake +0 -20
- data/ext/cmake/VersionInfo.cmake +0 -37
- data/ext/couchbase/bucket.hxx +0 -372
- data/ext/couchbase/capabilities.hxx +0 -117
- data/ext/couchbase/cbcrypto/cbcrypto.cc +0 -888
- data/ext/couchbase/cbcrypto/cbcrypto.h +0 -89
- data/ext/couchbase/cbsasl/client.cc +0 -48
- data/ext/couchbase/cbsasl/client.h +0 -127
- data/ext/couchbase/cbsasl/context.cc +0 -33
- data/ext/couchbase/cbsasl/context.h +0 -52
- data/ext/couchbase/cbsasl/error.h +0 -72
- data/ext/couchbase/cbsasl/mechanism.cc +0 -48
- data/ext/couchbase/cbsasl/mechanism.h +0 -55
- data/ext/couchbase/cbsasl/plain/plain.cc +0 -36
- data/ext/couchbase/cbsasl/plain/plain.h +0 -53
- data/ext/couchbase/cbsasl/scram-sha/scram-sha.cc +0 -390
- data/ext/couchbase/cbsasl/scram-sha/scram-sha.h +0 -185
- data/ext/couchbase/cbsasl/scram-sha/stringutils.cc +0 -81
- data/ext/couchbase/cluster.hxx +0 -356
- data/ext/couchbase/cluster_options.hxx +0 -56
- data/ext/couchbase/collections_manifest.hxx +0 -88
- data/ext/couchbase/configuration.hxx +0 -652
- data/ext/couchbase/couchbase.cxx +0 -7800
- data/ext/couchbase/diagnostics.hxx +0 -248
- data/ext/couchbase/document_id.hxx +0 -40
- data/ext/couchbase/error_context/analytics.hxx +0 -46
- data/ext/couchbase/error_context/http.hxx +0 -44
- data/ext/couchbase/error_context/key_value.hxx +0 -47
- data/ext/couchbase/error_context/query.hxx +0 -46
- data/ext/couchbase/error_context/search.hxx +0 -47
- data/ext/couchbase/error_context/view.hxx +0 -47
- data/ext/couchbase/error_map.hxx +0 -261
- data/ext/couchbase/errors.hxx +0 -706
- data/ext/couchbase/io/dns_client.hxx +0 -217
- data/ext/couchbase/io/dns_codec.hxx +0 -206
- data/ext/couchbase/io/dns_config.hxx +0 -116
- data/ext/couchbase/io/dns_message.hxx +0 -555
- data/ext/couchbase/io/http_command.hxx +0 -111
- data/ext/couchbase/io/http_context.hxx +0 -37
- data/ext/couchbase/io/http_message.hxx +0 -47
- data/ext/couchbase/io/http_parser.hxx +0 -176
- data/ext/couchbase/io/http_session.hxx +0 -444
- data/ext/couchbase/io/http_session_manager.hxx +0 -264
- data/ext/couchbase/io/mcbp_command.hxx +0 -249
- data/ext/couchbase/io/mcbp_context.hxx +0 -37
- data/ext/couchbase/io/mcbp_message.hxx +0 -63
- data/ext/couchbase/io/mcbp_parser.hxx +0 -101
- data/ext/couchbase/io/mcbp_session.hxx +0 -1356
- data/ext/couchbase/io/query_cache.hxx +0 -61
- data/ext/couchbase/io/retry_context.hxx +0 -38
- data/ext/couchbase/io/retry_orchestrator.hxx +0 -112
- data/ext/couchbase/io/retry_reason.hxx +0 -235
- data/ext/couchbase/io/retry_strategy.hxx +0 -156
- data/ext/couchbase/io/streams.hxx +0 -216
- data/ext/couchbase/mutation_token.hxx +0 -38
- data/ext/couchbase/operations/analytics_dataset_create.hxx +0 -125
- data/ext/couchbase/operations/analytics_dataset_drop.hxx +0 -112
- data/ext/couchbase/operations/analytics_dataset_get_all.hxx +0 -114
- data/ext/couchbase/operations/analytics_dataverse_create.hxx +0 -112
- data/ext/couchbase/operations/analytics_dataverse_drop.hxx +0 -111
- data/ext/couchbase/operations/analytics_get_pending_mutations.hxx +0 -99
- data/ext/couchbase/operations/analytics_index_create.hxx +0 -135
- data/ext/couchbase/operations/analytics_index_drop.hxx +0 -117
- data/ext/couchbase/operations/analytics_index_get_all.hxx +0 -113
- data/ext/couchbase/operations/analytics_link_connect.hxx +0 -109
- data/ext/couchbase/operations/analytics_link_disconnect.hxx +0 -108
- data/ext/couchbase/operations/bucket_create.hxx +0 -171
- data/ext/couchbase/operations/bucket_drop.hxx +0 -70
- data/ext/couchbase/operations/bucket_flush.hxx +0 -69
- data/ext/couchbase/operations/bucket_get.hxx +0 -78
- data/ext/couchbase/operations/bucket_get_all.hxx +0 -73
- data/ext/couchbase/operations/bucket_settings.hxx +0 -166
- data/ext/couchbase/operations/bucket_update.hxx +0 -147
- data/ext/couchbase/operations/cluster_developer_preview_enable.hxx +0 -64
- data/ext/couchbase/operations/collection_create.hxx +0 -102
- data/ext/couchbase/operations/collection_drop.hxx +0 -92
- data/ext/couchbase/operations/collections_manifest_get.hxx +0 -66
- data/ext/couchbase/operations/design_document.hxx +0 -59
- data/ext/couchbase/operations/document_analytics.hxx +0 -316
- data/ext/couchbase/operations/document_append.hxx +0 -72
- data/ext/couchbase/operations/document_decrement.hxx +0 -83
- data/ext/couchbase/operations/document_exists.hxx +0 -83
- data/ext/couchbase/operations/document_get.hxx +0 -66
- data/ext/couchbase/operations/document_get_and_lock.hxx +0 -67
- data/ext/couchbase/operations/document_get_and_touch.hxx +0 -67
- data/ext/couchbase/operations/document_get_projected.hxx +0 -257
- data/ext/couchbase/operations/document_increment.hxx +0 -85
- data/ext/couchbase/operations/document_insert.hxx +0 -77
- data/ext/couchbase/operations/document_lookup_in.hxx +0 -112
- data/ext/couchbase/operations/document_mutate_in.hxx +0 -151
- data/ext/couchbase/operations/document_prepend.hxx +0 -72
- data/ext/couchbase/operations/document_query.hxx +0 -440
- data/ext/couchbase/operations/document_remove.hxx +0 -72
- data/ext/couchbase/operations/document_replace.hxx +0 -79
- data/ext/couchbase/operations/document_search.hxx +0 -392
- data/ext/couchbase/operations/document_touch.hxx +0 -63
- data/ext/couchbase/operations/document_unlock.hxx +0 -63
- data/ext/couchbase/operations/document_upsert.hxx +0 -77
- data/ext/couchbase/operations/document_view.hxx +0 -245
- data/ext/couchbase/operations/group_drop.hxx +0 -72
- data/ext/couchbase/operations/group_get.hxx +0 -80
- data/ext/couchbase/operations/group_get_all.hxx +0 -77
- data/ext/couchbase/operations/group_upsert.hxx +0 -125
- data/ext/couchbase/operations/http_noop.hxx +0 -78
- data/ext/couchbase/operations/mcbp_noop.hxx +0 -55
- data/ext/couchbase/operations/query_index_build_deferred.hxx +0 -93
- data/ext/couchbase/operations/query_index_create.hxx +0 -152
- data/ext/couchbase/operations/query_index_drop.hxx +0 -126
- data/ext/couchbase/operations/query_index_get_all.hxx +0 -124
- data/ext/couchbase/operations/rbac.hxx +0 -276
- data/ext/couchbase/operations/role_get_all.hxx +0 -77
- data/ext/couchbase/operations/scope_create.hxx +0 -95
- data/ext/couchbase/operations/scope_drop.hxx +0 -89
- data/ext/couchbase/operations/scope_get_all.hxx +0 -82
- data/ext/couchbase/operations/search_get_stats.hxx +0 -60
- data/ext/couchbase/operations/search_index.hxx +0 -79
- data/ext/couchbase/operations/search_index_analyze_document.hxx +0 -105
- data/ext/couchbase/operations/search_index_control_ingest.hxx +0 -93
- data/ext/couchbase/operations/search_index_control_plan_freeze.hxx +0 -93
- data/ext/couchbase/operations/search_index_control_query.hxx +0 -93
- data/ext/couchbase/operations/search_index_drop.hxx +0 -90
- data/ext/couchbase/operations/search_index_get.hxx +0 -93
- data/ext/couchbase/operations/search_index_get_all.hxx +0 -89
- data/ext/couchbase/operations/search_index_get_documents_count.hxx +0 -101
- data/ext/couchbase/operations/search_index_get_stats.hxx +0 -88
- data/ext/couchbase/operations/search_index_upsert.hxx +0 -119
- data/ext/couchbase/operations/user_drop.hxx +0 -73
- data/ext/couchbase/operations/user_get.hxx +0 -81
- data/ext/couchbase/operations/user_get_all.hxx +0 -78
- data/ext/couchbase/operations/user_upsert.hxx +0 -132
- data/ext/couchbase/operations/view_index_drop.hxx +0 -68
- data/ext/couchbase/operations/view_index_get.hxx +0 -97
- data/ext/couchbase/operations/view_index_get_all.hxx +0 -132
- data/ext/couchbase/operations/view_index_upsert.hxx +0 -88
- data/ext/couchbase/operations.hxx +0 -109
- data/ext/couchbase/origin.hxx +0 -179
- data/ext/couchbase/platform/backtrace.c +0 -189
- data/ext/couchbase/platform/base64.cc +0 -234
- data/ext/couchbase/platform/base64.h +0 -47
- data/ext/couchbase/platform/random.cc +0 -119
- data/ext/couchbase/platform/string_hex.cc +0 -99
- data/ext/couchbase/platform/string_hex.h +0 -50
- data/ext/couchbase/platform/terminate_handler.cc +0 -130
- data/ext/couchbase/platform/uuid.cc +0 -96
- data/ext/couchbase/protocol/client_opcode.hxx +0 -632
- data/ext/couchbase/protocol/client_request.hxx +0 -161
- data/ext/couchbase/protocol/client_response.hxx +0 -221
- data/ext/couchbase/protocol/cmd_append.hxx +0 -145
- data/ext/couchbase/protocol/cmd_cluster_map_change_notification.hxx +0 -79
- data/ext/couchbase/protocol/cmd_decrement.hxx +0 -187
- data/ext/couchbase/protocol/cmd_exists.hxx +0 -172
- data/ext/couchbase/protocol/cmd_get.hxx +0 -122
- data/ext/couchbase/protocol/cmd_get_and_lock.hxx +0 -142
- data/ext/couchbase/protocol/cmd_get_and_touch.hxx +0 -142
- data/ext/couchbase/protocol/cmd_get_cluster_config.hxx +0 -126
- data/ext/couchbase/protocol/cmd_get_collection_id.hxx +0 -117
- data/ext/couchbase/protocol/cmd_get_collections_manifest.hxx +0 -99
- data/ext/couchbase/protocol/cmd_get_error_map.hxx +0 -126
- data/ext/couchbase/protocol/cmd_hello.hxx +0 -165
- data/ext/couchbase/protocol/cmd_increment.hxx +0 -187
- data/ext/couchbase/protocol/cmd_info.hxx +0 -25
- data/ext/couchbase/protocol/cmd_insert.hxx +0 -172
- data/ext/couchbase/protocol/cmd_lookup_in.hxx +0 -227
- data/ext/couchbase/protocol/cmd_mutate_in.hxx +0 -406
- data/ext/couchbase/protocol/cmd_noop.hxx +0 -82
- data/ext/couchbase/protocol/cmd_prepend.hxx +0 -145
- data/ext/couchbase/protocol/cmd_remove.hxx +0 -134
- data/ext/couchbase/protocol/cmd_replace.hxx +0 -172
- data/ext/couchbase/protocol/cmd_sasl_auth.hxx +0 -106
- data/ext/couchbase/protocol/cmd_sasl_list_mechs.hxx +0 -100
- data/ext/couchbase/protocol/cmd_sasl_step.hxx +0 -104
- data/ext/couchbase/protocol/cmd_select_bucket.hxx +0 -85
- data/ext/couchbase/protocol/cmd_touch.hxx +0 -102
- data/ext/couchbase/protocol/cmd_unlock.hxx +0 -95
- data/ext/couchbase/protocol/cmd_upsert.hxx +0 -172
- data/ext/couchbase/protocol/datatype.hxx +0 -48
- data/ext/couchbase/protocol/durability_level.hxx +0 -83
- data/ext/couchbase/protocol/frame_info_id.hxx +0 -187
- data/ext/couchbase/protocol/hello_feature.hxx +0 -264
- data/ext/couchbase/protocol/magic.hxx +0 -83
- data/ext/couchbase/protocol/server_opcode.hxx +0 -57
- data/ext/couchbase/protocol/server_request.hxx +0 -122
- data/ext/couchbase/protocol/status.hxx +0 -343
- data/ext/couchbase/protocol/unsigned_leb128.h +0 -195
- data/ext/couchbase/service_type.hxx +0 -60
- data/ext/couchbase/timeout_defaults.hxx +0 -41
- data/ext/couchbase/utils/byteswap.hxx +0 -33
- data/ext/couchbase/utils/connection_string.hxx +0 -397
- data/ext/couchbase/utils/url_codec.hxx +0 -225
- data/ext/couchbase/version.hxx +0 -38
- data/ext/test/CMakeLists.txt +0 -5
- data/ext/test/test_helper.hxx +0 -141
- data/ext/test/test_helper_native.hxx +0 -56
- data/ext/test/test_helper_ruby.hxx +0 -72
- data/ext/test/test_native_binary_operations.cxx +0 -186
- data/ext/test/test_native_diagnostics.cxx +0 -436
- data/ext/test/test_native_trivial_crud.cxx +0 -83
- data/ext/test/test_ruby_trivial_crud.cxx +0 -35
- data/ext/test/test_ruby_trivial_query.cxx +0 -34
- data/ext/third_party/asio/asio/include/asio/any_io_executor.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/associated_allocator.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/associated_executor.hpp +0 -166
- data/ext/third_party/asio/asio/include/asio/async_result.hpp +0 -582
- data/ext/third_party/asio/asio/include/asio/awaitable.hpp +0 -133
- data/ext/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +0 -1215
- data/ext/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +0 -693
- data/ext/third_party/asio/asio/include/asio/basic_io_object.hpp +0 -290
- data/ext/third_party/asio/asio/include/asio/basic_raw_socket.hpp +0 -1206
- data/ext/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +0 -761
- data/ext/third_party/asio/asio/include/asio/basic_serial_port.hpp +0 -907
- data/ext/third_party/asio/asio/include/asio/basic_signal_set.hpp +0 -568
- data/ext/third_party/asio/asio/include/asio/basic_socket.hpp +0 -1894
- data/ext/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +0 -2501
- data/ext/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +0 -407
- data/ext/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +0 -687
- data/ext/third_party/asio/asio/include/asio/basic_stream_socket.hpp +0 -1053
- data/ext/third_party/asio/asio/include/asio/basic_streambuf.hpp +0 -452
- data/ext/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +0 -811
- data/ext/third_party/asio/asio/include/asio/bind_executor.hpp +0 -575
- data/ext/third_party/asio/asio/include/asio/buffer.hpp +0 -2496
- data/ext/third_party/asio/asio/include/asio/buffered_read_stream.hpp +0 -253
- data/ext/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffered_stream.hpp +0 -279
- data/ext/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffered_write_stream.hpp +0 -245
- data/ext/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffers_iterator.hpp +0 -521
- data/ext/third_party/asio/asio/include/asio/co_spawn.hpp +0 -471
- data/ext/third_party/asio/asio/include/asio/completion_condition.hpp +0 -218
- data/ext/third_party/asio/asio/include/asio/compose.hpp +0 -136
- data/ext/third_party/asio/asio/include/asio/connect.hpp +0 -1076
- data/ext/third_party/asio/asio/include/asio/coroutine.hpp +0 -328
- data/ext/third_party/asio/asio/include/asio/deadline_timer.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/defer.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/detached.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/detail/array.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/array_fwd.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/assert.hpp +0 -32
- data/ext/third_party/asio/asio/include/asio/detail/atomic_count.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/bind_handler.hpp +0 -934
- data/ext/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +0 -107
- data/ext/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +0 -650
- data/ext/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +0 -88
- data/ext/third_party/asio/asio/include/asio/detail/call_stack.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/detail/chrono.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +0 -190
- data/ext/third_party/asio/asio/include/asio/detail/completion_handler.hpp +0 -88
- data/ext/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +0 -120
- data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +0 -149
- data/ext/third_party/asio/asio/include/asio/detail/config.hpp +0 -1822
- data/ext/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +0 -414
- data/ext/third_party/asio/asio/include/asio/detail/cstddef.hpp +0 -31
- data/ext/third_party/asio/asio/include/asio/detail/cstdint.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +0 -295
- data/ext/third_party/asio/asio/include/asio/detail/dependent_type.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +0 -139
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +0 -148
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +0 -148
- data/ext/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +0 -218
- data/ext/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +0 -266
- data/ext/third_party/asio/asio/include/asio/detail/event.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +0 -83
- data/ext/third_party/asio/asio/include/asio/detail/executor_function.hpp +0 -203
- data/ext/third_party/asio/asio/include/asio/detail/executor_op.hpp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +0 -39
- data/ext/third_party/asio/asio/include/asio/detail/fenced_block.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/detail/functional.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/future.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +0 -65
- data/ext/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +0 -99
- data/ext/third_party/asio/asio/include/asio/detail/global.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +0 -284
- data/ext/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +0 -264
- data/ext/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +0 -556
- data/ext/third_party/asio/asio/include/asio/detail/handler_work.hpp +0 -438
- data/ext/third_party/asio/asio/include/asio/detail/hash_map.hpp +0 -331
- data/ext/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +0 -608
- data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +0 -446
- data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +0 -89
- data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +0 -787
- data/ext/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +0 -169
- data/ext/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +0 -396
- data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +0 -93
- data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +0 -570
- data/ext/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +0 -74
- data/ext/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +0 -129
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +0 -223
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_serial_port_service.ipp +0 -149
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +0 -300
- data/ext/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +0 -158
- data/ext/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +0 -654
- data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +0 -100
- data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +0 -338
- data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +0 -197
- data/ext/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +0 -668
- data/ext/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +0 -3962
- data/ext/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +0 -185
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +0 -385
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +0 -134
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +0 -117
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +0 -178
- data/ext/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +0 -101
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +0 -76
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +0 -525
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +0 -103
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +0 -603
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +0 -192
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +0 -801
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +0 -448
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +0 -136
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +0 -150
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +0 -57
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +0 -626
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +0 -121
- data/ext/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +0 -82
- data/ext/third_party/asio/asio/include/asio/detail/io_control.hpp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +0 -175
- data/ext/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +0 -312
- data/ext/third_party/asio/asio/include/asio/detail/is_executor.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +0 -242
- data/ext/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/memory.hpp +0 -73
- data/ext/third_party/asio/asio/include/asio/detail/mutex.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/detail/noncopyable.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/detail/null_event.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/null_global.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/null_mutex.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/detail/null_reactor.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +0 -519
- data/ext/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/null_thread.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/object_pool.hpp +0 -171
- data/ext/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +0 -214
- data/ext/third_party/asio/asio/include/asio/detail/op_queue.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/detail/operation.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +0 -89
- data/ext/third_party/asio/asio/include/asio/detail/pop_options.hpp +0 -141
- data/ext/third_party/asio/asio/include/asio/detail/posix_event.hpp +0 -175
- data/ext/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/posix_global.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +0 -76
- data/ext/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +0 -85
- data/ext/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/detail/posix_thread.hpp +0 -109
- data/ext/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +0 -79
- data/ext/third_party/asio/asio/include/asio/detail/push_options.hpp +0 -185
- data/ext/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +0 -416
- data/ext/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/detail/reactive_serial_port_service.hpp +0 -237
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +0 -242
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +0 -159
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +0 -164
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +0 -145
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +0 -156
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +0 -528
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +0 -541
- data/ext/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/detail/reactor.hpp +0 -32
- data/ext/third_party/asio/asio/include/asio/detail/reactor_fwd.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/reactor_op.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +0 -168
- data/ext/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +0 -35
- data/ext/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +0 -140
- data/ext/third_party/asio/asio/include/asio/detail/resolve_op.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +0 -150
- data/ext/third_party/asio/asio/include/asio/detail/resolver_service.hpp +0 -145
- data/ext/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +0 -143
- data/ext/third_party/asio/asio/include/asio/detail/scheduler.hpp +0 -232
- data/ext/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +0 -78
- data/ext/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +0 -87
- data/ext/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/select_reactor.hpp +0 -238
- data/ext/third_party/asio/asio/include/asio/detail/service_registry.hpp +0 -164
- data/ext/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +0 -44
- data/ext/third_party/asio/asio/include/asio/detail/signal_handler.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/detail/signal_init.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/signal_op.hpp +0 -49
- data/ext/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +0 -229
- data/ext/third_party/asio/asio/include/asio/detail/socket_holder.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/detail/socket_ops.hpp +0 -383
- data/ext/third_party/asio/asio/include/asio/detail/socket_option.hpp +0 -316
- data/ext/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/socket_types.hpp +0 -416
- data/ext/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/source_location.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/static_mutex.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/detail/std_event.hpp +0 -188
- data/ext/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/std_global.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/detail/std_mutex.hpp +0 -73
- data/ext/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +0 -81
- data/ext/third_party/asio/asio/include/asio/detail/std_thread.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +0 -166
- data/ext/third_party/asio/asio/include/asio/detail/strand_service.hpp +0 -145
- data/ext/third_party/asio/asio/include/asio/detail/string_view.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/thread.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/thread_context.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/detail/thread_group.hpp +0 -95
- data/ext/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +0 -183
- data/ext/third_party/asio/asio/include/asio/detail/throw_error.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/detail/throw_exception.hpp +0 -51
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue.hpp +0 -360
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +0 -99
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +0 -35
- data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/type_traits.hpp +0 -148
- data/ext/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +0 -294
- data/ext/third_party/asio/asio/include/asio/detail/wait_handler.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/detail/wait_op.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/win_event.hpp +0 -164
- data/ext/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +0 -149
- data/ext/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/detail/win_global.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +0 -117
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +0 -335
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +0 -110
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +0 -342
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +0 -127
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +0 -96
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +0 -96
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +0 -171
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +0 -232
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +0 -312
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +0 -135
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +0 -124
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +0 -133
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +0 -581
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +0 -600
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +0 -128
- data/ext/third_party/asio/asio/include/asio/detail/win_mutex.hpp +0 -78
- data/ext/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +0 -195
- data/ext/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +0 -74
- data/ext/third_party/asio/asio/include/asio/detail/win_thread.hpp +0 -147
- data/ext/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +0 -79
- data/ext/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +0 -124
- data/ext/third_party/asio/asio/include/asio/detail/wince_thread.hpp +0 -124
- data/ext/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +0 -305
- data/ext/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +0 -65
- data/ext/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +0 -212
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +0 -119
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +0 -110
- data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +0 -250
- data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +0 -362
- data/ext/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +0 -147
- data/ext/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/winsock_init.hpp +0 -128
- data/ext/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +0 -148
- data/ext/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +0 -327
- data/ext/third_party/asio/asio/include/asio/dispatch.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/error.hpp +0 -356
- data/ext/third_party/asio/asio/include/asio/error_code.hpp +0 -202
- data/ext/third_party/asio/asio/include/asio/execution/allocator.hpp +0 -249
- data/ext/third_party/asio/asio/include/asio/execution/any_executor.hpp +0 -2264
- data/ext/third_party/asio/asio/include/asio/execution/bad_executor.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/execution/blocking.hpp +0 -1351
- data/ext/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +0 -1064
- data/ext/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +0 -390
- data/ext/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +0 -1018
- data/ext/third_party/asio/asio/include/asio/execution/connect.hpp +0 -486
- data/ext/third_party/asio/asio/include/asio/execution/context.hpp +0 -185
- data/ext/third_party/asio/asio/include/asio/execution/context_as.hpp +0 -201
- data/ext/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +0 -152
- data/ext/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +0 -105
- data/ext/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +0 -128
- data/ext/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +0 -261
- data/ext/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +0 -233
- data/ext/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/execution/execute.hpp +0 -264
- data/ext/third_party/asio/asio/include/asio/execution/executor.hpp +0 -238
- data/ext/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +0 -40
- data/ext/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +0 -36
- data/ext/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/execution/mapping.hpp +0 -917
- data/ext/third_party/asio/asio/include/asio/execution/occupancy.hpp +0 -178
- data/ext/third_party/asio/asio/include/asio/execution/operation_state.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +0 -721
- data/ext/third_party/asio/asio/include/asio/execution/prefer_only.hpp +0 -327
- data/ext/third_party/asio/asio/include/asio/execution/receiver.hpp +0 -280
- data/ext/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/execution/relationship.hpp +0 -720
- data/ext/third_party/asio/asio/include/asio/execution/schedule.hpp +0 -290
- data/ext/third_party/asio/asio/include/asio/execution/scheduler.hpp +0 -86
- data/ext/third_party/asio/asio/include/asio/execution/sender.hpp +0 -311
- data/ext/third_party/asio/asio/include/asio/execution/set_done.hpp +0 -253
- data/ext/third_party/asio/asio/include/asio/execution/set_error.hpp +0 -253
- data/ext/third_party/asio/asio/include/asio/execution/set_value.hpp +0 -486
- data/ext/third_party/asio/asio/include/asio/execution/start.hpp +0 -250
- data/ext/third_party/asio/asio/include/asio/execution/submit.hpp +0 -450
- data/ext/third_party/asio/asio/include/asio/execution.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/execution_context.hpp +0 -412
- data/ext/third_party/asio/asio/include/asio/executor.hpp +0 -347
- data/ext/third_party/asio/asio/include/asio/executor_work_guard.hpp +0 -287
- data/ext/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +0 -193
- data/ext/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +0 -133
- data/ext/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +0 -110
- data/ext/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +0 -122
- data/ext/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +0 -127
- data/ext/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +0 -104
- data/ext/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +0 -111
- data/ext/third_party/asio/asio/include/asio/high_resolution_timer.hpp +0 -44
- data/ext/third_party/asio/asio/include/asio/impl/awaitable.hpp +0 -436
- data/ext/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +0 -527
- data/ext/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +0 -507
- data/ext/third_party/asio/asio/include/asio/impl/co_spawn.hpp +0 -298
- data/ext/third_party/asio/asio/include/asio/impl/compose.hpp +0 -635
- data/ext/third_party/asio/asio/include/asio/impl/connect.hpp +0 -916
- data/ext/third_party/asio/asio/include/asio/impl/defer.hpp +0 -248
- data/ext/third_party/asio/asio/include/asio/impl/detached.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/impl/dispatch.hpp +0 -243
- data/ext/third_party/asio/asio/include/asio/impl/error.ipp +0 -128
- data/ext/third_party/asio/asio/include/asio/impl/error_code.ipp +0 -206
- data/ext/third_party/asio/asio/include/asio/impl/execution_context.hpp +0 -109
- data/ext/third_party/asio/asio/include/asio/impl/execution_context.ipp +0 -82
- data/ext/third_party/asio/asio/include/asio/impl/executor.hpp +0 -301
- data/ext/third_party/asio/asio/include/asio/impl/executor.ipp +0 -43
- data/ext/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +0 -61
- data/ext/third_party/asio/asio/include/asio/impl/io_context.hpp +0 -440
- data/ext/third_party/asio/asio/include/asio/impl/io_context.ipp +0 -175
- data/ext/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +0 -49
- data/ext/third_party/asio/asio/include/asio/impl/post.hpp +0 -248
- data/ext/third_party/asio/asio/include/asio/impl/read.hpp +0 -1202
- data/ext/third_party/asio/asio/include/asio/impl/read_at.hpp +0 -744
- data/ext/third_party/asio/asio/include/asio/impl/read_until.hpp +0 -3335
- data/ext/third_party/asio/asio/include/asio/impl/redirect_error.hpp +0 -390
- data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +0 -554
- data/ext/third_party/asio/asio/include/asio/impl/spawn.hpp +0 -526
- data/ext/third_party/asio/asio/include/asio/impl/src.hpp +0 -85
- data/ext/third_party/asio/asio/include/asio/impl/system_context.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/impl/system_context.ipp +0 -92
- data/ext/third_party/asio/asio/include/asio/impl/system_executor.hpp +0 -186
- data/ext/third_party/asio/asio/include/asio/impl/thread_pool.hpp +0 -350
- data/ext/third_party/asio/asio/include/asio/impl/thread_pool.ipp +0 -141
- data/ext/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +0 -279
- data/ext/third_party/asio/asio/include/asio/impl/use_future.hpp +0 -1028
- data/ext/third_party/asio/asio/include/asio/impl/write.hpp +0 -1104
- data/ext/third_party/asio/asio/include/asio/impl/write_at.hpp +0 -666
- data/ext/third_party/asio/asio/include/asio/io_context.hpp +0 -1530
- data/ext/third_party/asio/asio/include/asio/io_context_strand.hpp +0 -376
- data/ext/third_party/asio/asio/include/asio/io_service.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/io_service_strand.hpp +0 -20
- data/ext/third_party/asio/asio/include/asio/ip/address.hpp +0 -268
- data/ext/third_party/asio/asio/include/asio/ip/address_v4.hpp +0 -335
- data/ext/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +0 -134
- data/ext/third_party/asio/asio/include/asio/ip/address_v6.hpp +0 -341
- data/ext/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +0 -183
- data/ext/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +0 -264
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +0 -1030
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +0 -192
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +0 -244
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +0 -311
- data/ext/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +0 -141
- data/ext/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +0 -199
- data/ext/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +0 -566
- data/ext/third_party/asio/asio/include/asio/ip/host_name.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/ip/icmp.hpp +0 -115
- data/ext/third_party/asio/asio/include/asio/ip/impl/address.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address.ipp +0 -239
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +0 -210
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +0 -350
- data/ext/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +0 -54
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +0 -216
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +0 -185
- data/ext/third_party/asio/asio/include/asio/ip/multicast.hpp +0 -191
- data/ext/third_party/asio/asio/include/asio/ip/network_v4.hpp +0 -261
- data/ext/third_party/asio/asio/include/asio/ip/network_v6.hpp +0 -235
- data/ext/third_party/asio/asio/include/asio/ip/resolver_base.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/ip/tcp.hpp +0 -155
- data/ext/third_party/asio/asio/include/asio/ip/udp.hpp +0 -111
- data/ext/third_party/asio/asio/include/asio/ip/unicast.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/ip/v6_only.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/is_applicable_property.hpp +0 -61
- data/ext/third_party/asio/asio/include/asio/is_executor.hpp +0 -46
- data/ext/third_party/asio/asio/include/asio/is_read_buffered.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/is_write_buffered.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +0 -247
- data/ext/third_party/asio/asio/include/asio/local/connect_pair.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +0 -139
- data/ext/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +0 -136
- data/ext/third_party/asio/asio/include/asio/local/stream_protocol.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/multiple_exceptions.hpp +0 -58
- data/ext/third_party/asio/asio/include/asio/packaged_task.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/placeholders.hpp +0 -151
- data/ext/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +0 -697
- data/ext/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +0 -470
- data/ext/third_party/asio/asio/include/asio/posix/descriptor.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/post.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/prefer.hpp +0 -656
- data/ext/third_party/asio/asio/include/asio/query.hpp +0 -296
- data/ext/third_party/asio/asio/include/asio/read.hpp +0 -1288
- data/ext/third_party/asio/asio/include/asio/read_at.hpp +0 -694
- data/ext/third_party/asio/asio/include/asio/read_until.hpp +0 -2863
- data/ext/third_party/asio/asio/include/asio/redirect_error.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/require.hpp +0 -524
- data/ext/third_party/asio/asio/include/asio/require_concept.hpp +0 -310
- data/ext/third_party/asio/asio/include/asio/serial_port.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/serial_port_base.hpp +0 -167
- data/ext/third_party/asio/asio/include/asio/signal_set.hpp +0 -28
- data/ext/third_party/asio/asio/include/asio/socket_base.hpp +0 -559
- data/ext/third_party/asio/asio/include/asio/spawn.hpp +0 -344
- data/ext/third_party/asio/asio/include/asio/ssl/context.hpp +0 -761
- data/ext/third_party/asio/asio/include/asio/ssl/context_base.hpp +0 -209
- data/ext/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +0 -119
- data/ext/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +0 -165
- data/ext/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +0 -349
- data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +0 -165
- data/ext/third_party/asio/asio/include/asio/ssl/detail/io.hpp +0 -415
- data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +0 -72
- data/ext/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +0 -169
- data/ext/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +0 -76
- data/ext/third_party/asio/asio/include/asio/ssl/error.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/ssl/impl/context.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/impl/context.ipp +0 -1238
- data/ext/third_party/asio/asio/include/asio/ssl/impl/error.ipp +0 -102
- data/ext/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +0 -73
- data/ext/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +0 -164
- data/ext/third_party/asio/asio/include/asio/ssl/impl/src.hpp +0 -29
- data/ext/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/ssl/stream.hpp +0 -900
- data/ext/third_party/asio/asio/include/asio/ssl/stream_base.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/ssl/verify_context.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +0 -63
- data/ext/third_party/asio/asio/include/asio/ssl.hpp +0 -28
- data/ext/third_party/asio/asio/include/asio/static_thread_pool.hpp +0 -31
- data/ext/third_party/asio/asio/include/asio/steady_timer.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/strand.hpp +0 -537
- data/ext/third_party/asio/asio/include/asio/streambuf.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/system_context.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/system_error.hpp +0 -131
- data/ext/third_party/asio/asio/include/asio/system_executor.hpp +0 -662
- data/ext/third_party/asio/asio/include/asio/system_timer.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/this_coro.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/thread.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/thread_pool.hpp +0 -1111
- data/ext/third_party/asio/asio/include/asio/time_traits.hpp +0 -86
- data/ext/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +0 -114
- data/ext/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +0 -114
- data/ext/third_party/asio/asio/include/asio/traits/connect_free.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/traits/connect_member.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +0 -100
- data/ext/third_party/asio/asio/include/asio/traits/execute_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/execute_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/prefer_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/prefer_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/query_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/query_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/require_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/require_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/schedule_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/schedule_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/set_done_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/set_done_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/set_error_free.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/traits/set_error_member.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/traits/set_value_free.hpp +0 -234
- data/ext/third_party/asio/asio/include/asio/traits/set_value_member.hpp +0 -234
- data/ext/third_party/asio/asio/include/asio/traits/start_free.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/start_member.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/static_query.hpp +0 -108
- data/ext/third_party/asio/asio/include/asio/traits/static_require.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/traits/submit_free.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/traits/submit_member.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/ts/buffer.hpp +0 -24
- data/ext/third_party/asio/asio/include/asio/ts/executor.hpp +0 -35
- data/ext/third_party/asio/asio/include/asio/ts/internet.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/ts/io_context.hpp +0 -20
- data/ext/third_party/asio/asio/include/asio/ts/net.hpp +0 -26
- data/ext/third_party/asio/asio/include/asio/ts/netfwd.hpp +0 -262
- data/ext/third_party/asio/asio/include/asio/ts/socket.hpp +0 -27
- data/ext/third_party/asio/asio/include/asio/ts/timer.hpp +0 -26
- data/ext/third_party/asio/asio/include/asio/unyield.hpp +0 -21
- data/ext/third_party/asio/asio/include/asio/use_awaitable.hpp +0 -169
- data/ext/third_party/asio/asio/include/asio/use_future.hpp +0 -160
- data/ext/third_party/asio/asio/include/asio/uses_executor.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/version.hpp +0 -23
- data/ext/third_party/asio/asio/include/asio/wait_traits.hpp +0 -56
- data/ext/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +0 -435
- data/ext/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +0 -361
- data/ext/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +0 -490
- data/ext/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +0 -474
- data/ext/third_party/asio/asio/include/asio/windows/object_handle.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +0 -39
- data/ext/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +0 -145
- data/ext/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/windows/stream_handle.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/write.hpp +0 -1246
- data/ext/third_party/asio/asio/include/asio/write_at.hpp +0 -702
- data/ext/third_party/asio/asio/include/asio/yield.hpp +0 -23
- data/ext/third_party/asio/asio/include/asio.hpp +0 -182
- data/ext/third_party/gsl/CMakeLists.txt +0 -127
- data/ext/third_party/gsl/include/gsl/gsl +0 -29
- data/ext/third_party/gsl/include/gsl/gsl_algorithm +0 -61
- data/ext/third_party/gsl/include/gsl/gsl_assert +0 -133
- data/ext/third_party/gsl/include/gsl/gsl_byte +0 -209
- data/ext/third_party/gsl/include/gsl/gsl_narrow +0 -52
- data/ext/third_party/gsl/include/gsl/gsl_util +0 -129
- data/ext/third_party/gsl/include/gsl/multi_span +0 -2263
- data/ext/third_party/gsl/include/gsl/pointers +0 -287
- data/ext/third_party/gsl/include/gsl/span +0 -816
- data/ext/third_party/gsl/include/gsl/span_ext +0 -198
- data/ext/third_party/gsl/include/gsl/string_span +0 -706
- data/ext/third_party/json/CMakeLists.txt +0 -44
- data/ext/third_party/json/LICENSE +0 -21
- data/ext/third_party/json/include/tao/json/basic_value.hpp +0 -942
- data/ext/third_party/json/include/tao/json/binary.hpp +0 -103
- data/ext/third_party/json/include/tao/json/binary_view.hpp +0 -31
- data/ext/third_party/json/include/tao/json/binding/constant.hpp +0 -232
- data/ext/third_party/json/include/tao/json/binding/element.hpp +0 -182
- data/ext/third_party/json/include/tao/json/binding/factory.hpp +0 -251
- data/ext/third_party/json/include/tao/json/binding/for_nothing_value.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/for_unknown_key.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/inherit.hpp +0 -14
- data/ext/third_party/json/include/tao/json/binding/internal/array.hpp +0 -104
- data/ext/third_party/json/include/tao/json/binding/internal/inherit.hpp +0 -45
- data/ext/third_party/json/include/tao/json/binding/internal/object.hpp +0 -268
- data/ext/third_party/json/include/tao/json/binding/internal/type_key.hpp +0 -54
- data/ext/third_party/json/include/tao/json/binding/member.hpp +0 -32
- data/ext/third_party/json/include/tao/json/binding/member_kind.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/versions.hpp +0 -129
- data/ext/third_party/json/include/tao/json/binding.hpp +0 -71
- data/ext/third_party/json/include/tao/json/cbor/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/cbor/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/cbor/events/from_binary.hpp +0 -43
- data/ext/third_party/json/include/tao/json/cbor/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/cbor/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/cbor/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/cbor/events/to_stream.hpp +0 -161
- data/ext/third_party/json/include/tao/json/cbor/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/cbor/from_binary.hpp +0 -32
- data/ext/third_party/json/include/tao/json/cbor/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/cbor/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/cbor/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/cbor/internal/grammar.hpp +0 -418
- data/ext/third_party/json/include/tao/json/cbor/internal/major.hpp +0 -28
- data/ext/third_party/json/include/tao/json/cbor/parts_parser.hpp +0 -392
- data/ext/third_party/json/include/tao/json/cbor/to_stream.hpp +0 -27
- data/ext/third_party/json/include/tao/json/cbor/to_string.hpp +0 -28
- data/ext/third_party/json/include/tao/json/cbor.hpp +0 -19
- data/ext/third_party/json/include/tao/json/consume.hpp +0 -43
- data/ext/third_party/json/include/tao/json/consume_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/consume_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/contrib/array_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/deque_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/diff.hpp +0 -106
- data/ext/third_party/json/include/tao/json/contrib/get.hpp +0 -152
- data/ext/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +0 -92
- data/ext/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +0 -76
- data/ext/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +0 -105
- data/ext/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +0 -36
- data/ext/third_party/json/include/tao/json/contrib/list_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/map_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/multimap_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/multiset_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/pair_traits.hpp +0 -21
- data/ext/third_party/json/include/tao/json/contrib/patch.hpp +0 -105
- data/ext/third_party/json/include/tao/json/contrib/position.hpp +0 -166
- data/ext/third_party/json/include/tao/json/contrib/reference.hpp +0 -113
- data/ext/third_party/json/include/tao/json/contrib/schema.hpp +0 -1874
- data/ext/third_party/json/include/tao/json/contrib/set_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +0 -98
- data/ext/third_party/json/include/tao/json/contrib/traits.hpp +0 -121
- data/ext/third_party/json/include/tao/json/contrib/tuple_traits.hpp +0 -51
- data/ext/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +0 -97
- data/ext/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +0 -45
- data/ext/third_party/json/include/tao/json/contrib/vector_traits.hpp +0 -51
- data/ext/third_party/json/include/tao/json/events/apply.hpp +0 -20
- data/ext/third_party/json/include/tao/json/events/binary_to_base64.hpp +0 -26
- data/ext/third_party/json/include/tao/json/events/binary_to_base64url.hpp +0 -28
- data/ext/third_party/json/include/tao/json/events/binary_to_exception.hpp +0 -27
- data/ext/third_party/json/include/tao/json/events/binary_to_hex.hpp +0 -26
- data/ext/third_party/json/include/tao/json/events/compare.hpp +0 -255
- data/ext/third_party/json/include/tao/json/events/debug.hpp +0 -145
- data/ext/third_party/json/include/tao/json/events/discard.hpp +0 -43
- data/ext/third_party/json/include/tao/json/events/from_file.hpp +0 -28
- data/ext/third_party/json/include/tao/json/events/from_input.hpp +0 -45
- data/ext/third_party/json/include/tao/json/events/from_stream.hpp +0 -33
- data/ext/third_party/json/include/tao/json/events/from_string.hpp +0 -38
- data/ext/third_party/json/include/tao/json/events/from_value.hpp +0 -202
- data/ext/third_party/json/include/tao/json/events/hash.hpp +0 -174
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +0 -50
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +0 -49
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +0 -48
- data/ext/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +0 -62
- data/ext/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +0 -57
- data/ext/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +0 -82
- data/ext/third_party/json/include/tao/json/events/limit_value_count.hpp +0 -46
- data/ext/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +0 -31
- data/ext/third_party/json/include/tao/json/events/non_finite_to_null.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/non_finite_to_string.hpp +0 -40
- data/ext/third_party/json/include/tao/json/events/prefer_signed.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/prefer_unsigned.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/produce.hpp +0 -22
- data/ext/third_party/json/include/tao/json/events/ref.hpp +0 -111
- data/ext/third_party/json/include/tao/json/events/statistics.hpp +0 -112
- data/ext/third_party/json/include/tao/json/events/tee.hpp +0 -386
- data/ext/third_party/json/include/tao/json/events/to_pretty_stream.hpp +0 -172
- data/ext/third_party/json/include/tao/json/events/to_stream.hpp +0 -142
- data/ext/third_party/json/include/tao/json/events/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/events/to_value.hpp +0 -137
- data/ext/third_party/json/include/tao/json/events/transformer.hpp +0 -70
- data/ext/third_party/json/include/tao/json/events/validate_event_order.hpp +0 -411
- data/ext/third_party/json/include/tao/json/events/validate_keys.hpp +0 -51
- data/ext/third_party/json/include/tao/json/events/virtual_base.hpp +0 -192
- data/ext/third_party/json/include/tao/json/events/virtual_ref.hpp +0 -176
- data/ext/third_party/json/include/tao/json/events.hpp +0 -47
- data/ext/third_party/json/include/tao/json/external/double.hpp +0 -1313
- data/ext/third_party/json/include/tao/json/external/itoa.hpp +0 -149
- data/ext/third_party/json/include/tao/json/external/pegtl/apply_mode.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/argv_input.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/ascii.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/buffer_input.hpp +0 -212
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action.hpp +0 -38
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_state.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_states.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/change_control.hpp +0 -36
- data/ext/third_party/json/include/tao/json/external/pegtl/change_state.hpp +0 -50
- data/ext/third_party/json/include/tao/json/external/pegtl/change_states.hpp +0 -61
- data/ext/third_party/json/include/tao/json/external/pegtl/config.hpp +0 -11
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/abnf.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/alphabet.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/analyze.hpp +0 -176
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/analyze_traits.hpp +0 -275
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/control_action.hpp +0 -77
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/coverage.hpp +0 -151
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/forward.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/http.hpp +0 -272
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/internal.hpp +0 -66
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf16.hpp +0 -196
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf32.hpp +0 -196
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf8.hpp +0 -103
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/if_then.hpp +0 -56
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/integer.hpp +0 -431
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian_gcc.hpp +0 -206
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/endian_win.hpp +0 -106
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_mask_uint.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_mask_uint8.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_uint.hpp +0 -45
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_uint8.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_utf16.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/peek_utf32.hpp +0 -43
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/read_uint.hpp +0 -77
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/internal/set_stack_guard.hpp +0 -52
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json.hpp +0 -88
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree.hpp +0 -440
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree_to_dot.hpp +0 -105
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/print.hpp +0 -75
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/print_coverage.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/raw_string.hpp +0 -234
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/remove_first_state.hpp +0 -69
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/remove_last_states.hpp +0 -117
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_one_min_max.hpp +0 -94
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_string.hpp +0 -43
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/shuffle_states.hpp +0 -193
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/state_control.hpp +0 -118
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/to_string.hpp +0 -38
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/trace.hpp +0 -227
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint16.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint32.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint64.hpp +0 -63
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uint8.hpp +0 -36
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/unescape.hpp +0 -199
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uri.hpp +0 -106
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/utf16.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/utf32.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/cstream_input.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/demangle.hpp +0 -138
- data/ext/third_party/json/include/tao/json/external/pegtl/disable_action.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_failure.hpp +0 -39
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_success.hpp +0 -39
- data/ext/third_party/json/include/tao/json/external/pegtl/enable_action.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/eol.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/eol_pair.hpp +0 -18
- data/ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/action.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/action_input.hpp +0 -106
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/any.hpp +0 -58
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0_single.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply_single.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/at.hpp +0 -55
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bof.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bol.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump.hpp +0 -45
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump_help.hpp +0 -29
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bytes.hpp +0 -43
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/control.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_crlf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/crlf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstream_reader.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstring_reader.hpp +0 -40
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/dependent_false.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/disable.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/discard.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/enable.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/enable_control.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eof.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eolf.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/failure.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_posix.hpp +0 -134
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_win32.hpp +0 -213
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_reader.hpp +0 -113
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply0.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_match.hpp +0 -40
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_unwind.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/identifier.hpp +0 -22
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_apply.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must.hpp +0 -47
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must_else.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_then_else.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/input_pair.hpp +0 -29
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/istream_reader.hpp +0 -39
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/istring.hpp +0 -72
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/iterator.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_crlf_eol.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_must.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail.hpp +0 -22
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail_pad.hpp +0 -22
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/marker.hpp +0 -80
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/minus.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply.hpp +0 -28
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply0.hpp +0 -26
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/must.hpp +0 -64
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/not_at.hpp +0 -55
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/one.hpp +0 -55
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/opt.hpp +0 -57
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad_opt.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/path_to_string.hpp +0 -26
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_char.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_utf8.hpp +0 -89
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pegtl_string.hpp +0 -90
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/plus.hpp +0 -60
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/raise.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/range.hpp +0 -56
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/ranges.hpp +0 -103
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rematch.hpp +0 -72
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min_max.hpp +0 -81
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_opt.hpp +0 -61
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/require.hpp +0 -42
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/result_on_found.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rules.hpp +0 -61
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/seq.hpp +0 -58
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/sor.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/star.hpp +0 -52
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/star_must.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/state.hpp +0 -59
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/string.hpp +0 -58
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/success.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/try_catch_type.hpp +0 -64
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/until.hpp +0 -88
- data/ext/third_party/json/include/tao/json/external/pegtl/istream_input.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/match.hpp +0 -169
- data/ext/third_party/json/include/tao/json/external/pegtl/memory_input.hpp +0 -365
- data/ext/third_party/json/include/tao/json/external/pegtl/mmap_input.hpp +0 -79
- data/ext/third_party/json/include/tao/json/external/pegtl/must_if.hpp +0 -64
- data/ext/third_party/json/include/tao/json/external/pegtl/normal.hpp +0 -87
- data/ext/third_party/json/include/tao/json/external/pegtl/nothing.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/parse.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/parse_error.hpp +0 -114
- data/ext/third_party/json/include/tao/json/external/pegtl/position.hpp +0 -83
- data/ext/third_party/json/include/tao/json/external/pegtl/read_input.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/require_apply.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/require_apply0.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/rewind_mode.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/rules.hpp +0 -68
- data/ext/third_party/json/include/tao/json/external/pegtl/string_input.hpp +0 -64
- data/ext/third_party/json/include/tao/json/external/pegtl/tracking_mode.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/type_list.hpp +0 -46
- data/ext/third_party/json/include/tao/json/external/pegtl/utf8.hpp +0 -28
- data/ext/third_party/json/include/tao/json/external/pegtl/version.hpp +0 -13
- data/ext/third_party/json/include/tao/json/external/pegtl/visit.hpp +0 -66
- data/ext/third_party/json/include/tao/json/external/pegtl.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/ryu.hpp +0 -1216
- data/ext/third_party/json/include/tao/json/forward.hpp +0 -44
- data/ext/third_party/json/include/tao/json/from_file.hpp +0 -32
- data/ext/third_party/json/include/tao/json/from_input.hpp +0 -32
- data/ext/third_party/json/include/tao/json/from_stream.hpp +0 -45
- data/ext/third_party/json/include/tao/json/from_string.hpp +0 -41
- data/ext/third_party/json/include/tao/json/internal/action.hpp +0 -268
- data/ext/third_party/json/include/tao/json/internal/base64.hpp +0 -55
- data/ext/third_party/json/include/tao/json/internal/base64url.hpp +0 -53
- data/ext/third_party/json/include/tao/json/internal/dependent_false.hpp +0 -14
- data/ext/third_party/json/include/tao/json/internal/endian.hpp +0 -60
- data/ext/third_party/json/include/tao/json/internal/endian_gcc.hpp +0 -198
- data/ext/third_party/json/include/tao/json/internal/endian_win.hpp +0 -103
- data/ext/third_party/json/include/tao/json/internal/errors.hpp +0 -85
- data/ext/third_party/json/include/tao/json/internal/escape.hpp +0 -77
- data/ext/third_party/json/include/tao/json/internal/format.hpp +0 -57
- data/ext/third_party/json/include/tao/json/internal/grammar.hpp +0 -229
- data/ext/third_party/json/include/tao/json/internal/hexdump.hpp +0 -31
- data/ext/third_party/json/include/tao/json/internal/identity.hpp +0 -22
- data/ext/third_party/json/include/tao/json/internal/number_state.hpp +0 -80
- data/ext/third_party/json/include/tao/json/internal/number_traits.hpp +0 -267
- data/ext/third_party/json/include/tao/json/internal/pair.hpp +0 -42
- data/ext/third_party/json/include/tao/json/internal/parse_util.hpp +0 -112
- data/ext/third_party/json/include/tao/json/internal/sha256.hpp +0 -218
- data/ext/third_party/json/include/tao/json/internal/single.hpp +0 -40
- data/ext/third_party/json/include/tao/json/internal/string_t.hpp +0 -35
- data/ext/third_party/json/include/tao/json/internal/type_traits.hpp +0 -96
- data/ext/third_party/json/include/tao/json/internal/unescape_action.hpp +0 -24
- data/ext/third_party/json/include/tao/json/internal/uri_fragment.hpp +0 -182
- data/ext/third_party/json/include/tao/json/jaxn/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/jaxn/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/jaxn/events/from_file.hpp +0 -28
- data/ext/third_party/json/include/tao/json/jaxn/events/from_input.hpp +0 -45
- data/ext/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/events/from_string.hpp +0 -39
- data/ext/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +0 -69
- data/ext/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +0 -67
- data/ext/third_party/json/include/tao/json/jaxn/events/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_stream.hpp +0 -48
- data/ext/third_party/json/include/tao/json/jaxn/from_string.hpp +0 -42
- data/ext/third_party/json/include/tao/json/jaxn/internal/action.hpp +0 -355
- data/ext/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +0 -114
- data/ext/third_party/json/include/tao/json/jaxn/internal/errors.hpp +0 -108
- data/ext/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +0 -375
- data/ext/third_party/json/include/tao/json/jaxn/internal/integer.hpp +0 -255
- data/ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +0 -28
- data/ext/third_party/json/include/tao/json/jaxn/is_identifier.hpp +0 -27
- data/ext/third_party/json/include/tao/json/jaxn/parts_parser.hpp +0 -261
- data/ext/third_party/json/include/tao/json/jaxn/to_stream.hpp +0 -36
- data/ext/third_party/json/include/tao/json/jaxn/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn.hpp +0 -19
- data/ext/third_party/json/include/tao/json/message_extension.hpp +0 -49
- data/ext/third_party/json/include/tao/json/msgpack/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/msgpack/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/msgpack/events/from_binary.hpp +0 -43
- data/ext/third_party/json/include/tao/json/msgpack/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/msgpack/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/msgpack/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +0 -214
- data/ext/third_party/json/include/tao/json/msgpack/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/msgpack/from_binary.hpp +0 -32
- data/ext/third_party/json/include/tao/json/msgpack/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/msgpack/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/msgpack/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/msgpack/internal/format.hpp +0 -57
- data/ext/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +0 -250
- data/ext/third_party/json/include/tao/json/msgpack/parts_parser.hpp +0 -311
- data/ext/third_party/json/include/tao/json/msgpack/to_stream.hpp +0 -27
- data/ext/third_party/json/include/tao/json/msgpack/to_string.hpp +0 -28
- data/ext/third_party/json/include/tao/json/msgpack.hpp +0 -19
- data/ext/third_party/json/include/tao/json/operators.hpp +0 -490
- data/ext/third_party/json/include/tao/json/parts_parser.hpp +0 -302
- data/ext/third_party/json/include/tao/json/pointer.hpp +0 -432
- data/ext/third_party/json/include/tao/json/produce.hpp +0 -61
- data/ext/third_party/json/include/tao/json/self_contained.hpp +0 -131
- data/ext/third_party/json/include/tao/json/span.hpp +0 -496
- data/ext/third_party/json/include/tao/json/stream.hpp +0 -38
- data/ext/third_party/json/include/tao/json/to_stream.hpp +0 -42
- data/ext/third_party/json/include/tao/json/to_string.hpp +0 -23
- data/ext/third_party/json/include/tao/json/traits.hpp +0 -971
- data/ext/third_party/json/include/tao/json/type.hpp +0 -112
- data/ext/third_party/json/include/tao/json/ubjson/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/ubjson/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/ubjson/events/from_binary.hpp +0 -43
- data/ext/third_party/json/include/tao/json/ubjson/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/ubjson/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/ubjson/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +0 -174
- data/ext/third_party/json/include/tao/json/ubjson/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/ubjson/from_binary.hpp +0 -32
- data/ext/third_party/json/include/tao/json/ubjson/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/ubjson/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/ubjson/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +0 -415
- data/ext/third_party/json/include/tao/json/ubjson/internal/marker.hpp +0 -46
- data/ext/third_party/json/include/tao/json/ubjson/parts_parser.hpp +0 -393
- data/ext/third_party/json/include/tao/json/ubjson/to_stream.hpp +0 -28
- data/ext/third_party/json/include/tao/json/ubjson/to_string.hpp +0 -29
- data/ext/third_party/json/include/tao/json/ubjson.hpp +0 -19
- data/ext/third_party/json/include/tao/json/utf8.hpp +0 -57
- data/ext/third_party/json/include/tao/json/value.hpp +0 -12
- data/ext/third_party/json/include/tao/json.hpp +0 -45
- data/ext/third_party/snappy/CMakeLists.txt +0 -345
- data/ext/third_party/snappy/cmake/config.h.in +0 -59
- data/ext/third_party/snappy/snappy-internal.h +0 -315
- data/ext/third_party/snappy/snappy-sinksource.cc +0 -121
- data/ext/third_party/snappy/snappy-stubs-internal.cc +0 -42
- data/ext/third_party/snappy/snappy-stubs-internal.h +0 -493
- data/ext/third_party/snappy/snappy-stubs-public.h.in +0 -63
- data/ext/third_party/snappy/snappy.cc +0 -1774
- data/ext/third_party/snappy/snappy.h +0 -209
- data/ext/third_party/spdlog/CMakeLists.txt +0 -291
- data/ext/third_party/spdlog/cmake/spdlogCPack.cmake +0 -46
- data/ext/third_party/spdlog/cmake/spdlogConfig.cmake.in +0 -15
- data/ext/third_party/spdlog/cmake/utils.cmake +0 -61
- data/ext/third_party/spdlog/include/spdlog/async.h +0 -93
- data/ext/third_party/spdlog/include/spdlog/async_logger-inl.h +0 -92
- data/ext/third_party/spdlog/include/spdlog/async_logger.h +0 -68
- data/ext/third_party/spdlog/include/spdlog/cfg/helpers-inl.h +0 -119
- data/ext/third_party/spdlog/include/spdlog/cfg/helpers.h +0 -29
- data/ext/third_party/spdlog/include/spdlog/common-inl.h +0 -76
- data/ext/third_party/spdlog/include/spdlog/common.h +0 -245
- data/ext/third_party/spdlog/include/spdlog/details/backtracer-inl.h +0 -69
- data/ext/third_party/spdlog/include/spdlog/details/backtracer.h +0 -45
- data/ext/third_party/spdlog/include/spdlog/details/file_helper-inl.h +0 -132
- data/ext/third_party/spdlog/include/spdlog/details/file_helper.h +0 -59
- data/ext/third_party/spdlog/include/spdlog/details/fmt_helper.h +0 -116
- data/ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h +0 -37
- data/ext/third_party/spdlog/include/spdlog/details/log_msg.h +0 -36
- data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -58
- data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer.h +0 -33
- data/ext/third_party/spdlog/include/spdlog/details/mpmc_blocking_q.h +0 -120
- data/ext/third_party/spdlog/include/spdlog/details/os-inl.h +0 -554
- data/ext/third_party/spdlog/include/spdlog/details/os.h +0 -111
- data/ext/third_party/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -49
- data/ext/third_party/spdlog/include/spdlog/details/periodic_worker.h +0 -40
- data/ext/third_party/spdlog/include/spdlog/details/registry-inl.h +0 -313
- data/ext/third_party/spdlog/include/spdlog/details/registry.h +0 -115
- data/ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h +0 -24
- data/ext/third_party/spdlog/include/spdlog/details/tcp_client-windows.h +0 -175
- data/ext/third_party/spdlog/include/spdlog/details/tcp_client.h +0 -146
- data/ext/third_party/spdlog/include/spdlog/details/thread_pool-inl.h +0 -124
- data/ext/third_party/spdlog/include/spdlog/details/thread_pool.h +0 -120
- data/ext/third_party/spdlog/include/spdlog/details/windows_include.h +0 -11
- data/ext/third_party/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -216
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -1123
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/color.h +0 -566
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/compile.h +0 -665
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/core.h +0 -1882
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1453
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format.h +0 -3729
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/locale.h +0 -78
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/os.h +0 -450
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -167
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/posix.h +0 -2
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/printf.h +0 -751
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -386
- data/ext/third_party/spdlog/include/spdlog/fmt/chrono.h +0 -20
- data/ext/third_party/spdlog/include/spdlog/fmt/fmt.h +0 -27
- data/ext/third_party/spdlog/include/spdlog/fmt/ostr.h +0 -20
- data/ext/third_party/spdlog/include/spdlog/logger-inl.h +0 -257
- data/ext/third_party/spdlog/include/spdlog/logger.h +0 -366
- data/ext/third_party/spdlog/include/spdlog/pattern_formatter-inl.h +0 -1373
- data/ext/third_party/spdlog/include/spdlog/pattern_formatter.h +0 -126
- data/ext/third_party/spdlog/include/spdlog/sinks/android_sink.h +0 -119
- data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -143
- data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink.h +0 -118
- data/ext/third_party/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -63
- data/ext/third_party/spdlog/include/spdlog/sinks/base_sink.h +0 -52
- data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -43
- data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -58
- data/ext/third_party/spdlog/include/spdlog/sinks/daily_file_sink.h +0 -204
- data/ext/third_party/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -90
- data/ext/third_party/spdlog/include/spdlog/sinks/msvc_sink.h +0 -49
- data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +0 -131
- data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -78
- data/ext/third_party/spdlog/include/spdlog/sinks/sink-inl.h +0 -25
- data/ext/third_party/spdlog/include/spdlog/sinks/sink.h +0 -35
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -38
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -45
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -123
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -87
- data/ext/third_party/spdlog/include/spdlog/sinks/systemd_sink.h +0 -103
- data/ext/third_party/spdlog/include/spdlog/sinks/tcp_sink.h +0 -81
- data/ext/third_party/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -266
- data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +0 -170
- data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -94
- data/ext/third_party/spdlog/include/spdlog/spdlog-inl.h +0 -125
- data/ext/third_party/spdlog/include/spdlog/spdlog.h +0 -295
- data/ext/third_party/spdlog/include/spdlog/tweakme.h +0 -116
- data/ext/third_party/spdlog/include/spdlog/version.h +0 -10
- data/ext/third_party/spdlog/src/async.cpp +0 -13
- data/ext/third_party/spdlog/src/cfg.cpp +0 -8
- data/ext/third_party/spdlog/src/color_sinks.cpp +0 -51
- data/ext/third_party/spdlog/src/file_sinks.cpp +0 -20
- data/ext/third_party/spdlog/src/fmt.cpp +0 -63
- data/ext/third_party/spdlog/src/spdlog.cpp +0 -26
- data/ext/third_party/spdlog/src/stdout_sinks.cpp +0 -29
@@ -0,0 +1,3120 @@
|
|
1
|
+
/*
|
2
|
+
Formatting library for C++
|
3
|
+
|
4
|
+
Copyright (c) 2012 - present, Victor Zverovich
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
--- Optional exception to the license ---
|
26
|
+
|
27
|
+
As an exception, if, as a result of your compiling your source code, portions
|
28
|
+
of this Software are embedded into a machine-executable object form of such
|
29
|
+
source code, you may redistribute such embedded portions in such object form
|
30
|
+
without including the above copyright and permission notices.
|
31
|
+
*/
|
32
|
+
|
33
|
+
#ifndef FMT_FORMAT_H_
|
34
|
+
#define FMT_FORMAT_H_
|
35
|
+
|
36
|
+
#include <cmath> // std::signbit
|
37
|
+
#include <cstdint> // uint32_t
|
38
|
+
#include <limits> // std::numeric_limits
|
39
|
+
#include <memory> // std::uninitialized_copy
|
40
|
+
#include <stdexcept> // std::runtime_error
|
41
|
+
#include <system_error> // std::system_error
|
42
|
+
#include <utility> // std::swap
|
43
|
+
|
44
|
+
#ifdef __cpp_lib_bit_cast
|
45
|
+
# include <bit> // std::bitcast
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#include "core.h"
|
49
|
+
|
50
|
+
#if FMT_GCC_VERSION
|
51
|
+
# define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
|
52
|
+
#else
|
53
|
+
# define FMT_GCC_VISIBILITY_HIDDEN
|
54
|
+
#endif
|
55
|
+
|
56
|
+
#ifdef __NVCC__
|
57
|
+
# define FMT_CUDA_VERSION (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__)
|
58
|
+
#else
|
59
|
+
# define FMT_CUDA_VERSION 0
|
60
|
+
#endif
|
61
|
+
|
62
|
+
#ifdef __has_builtin
|
63
|
+
# define FMT_HAS_BUILTIN(x) __has_builtin(x)
|
64
|
+
#else
|
65
|
+
# define FMT_HAS_BUILTIN(x) 0
|
66
|
+
#endif
|
67
|
+
|
68
|
+
#if FMT_GCC_VERSION || FMT_CLANG_VERSION
|
69
|
+
# define FMT_NOINLINE __attribute__((noinline))
|
70
|
+
#else
|
71
|
+
# define FMT_NOINLINE
|
72
|
+
#endif
|
73
|
+
|
74
|
+
#if FMT_MSC_VER
|
75
|
+
# define FMT_MSC_DEFAULT = default
|
76
|
+
#else
|
77
|
+
# define FMT_MSC_DEFAULT
|
78
|
+
#endif
|
79
|
+
|
80
|
+
#ifndef FMT_THROW
|
81
|
+
# if FMT_EXCEPTIONS
|
82
|
+
# if FMT_MSC_VER || FMT_NVCC
|
83
|
+
FMT_BEGIN_NAMESPACE
|
84
|
+
namespace detail {
|
85
|
+
template <typename Exception> inline void do_throw(const Exception& x) {
|
86
|
+
// Silence unreachable code warnings in MSVC and NVCC because these
|
87
|
+
// are nearly impossible to fix in a generic code.
|
88
|
+
volatile bool b = true;
|
89
|
+
if (b) throw x;
|
90
|
+
}
|
91
|
+
} // namespace detail
|
92
|
+
FMT_END_NAMESPACE
|
93
|
+
# define FMT_THROW(x) detail::do_throw(x)
|
94
|
+
# else
|
95
|
+
# define FMT_THROW(x) throw x
|
96
|
+
# endif
|
97
|
+
# else
|
98
|
+
# define FMT_THROW(x) \
|
99
|
+
do { \
|
100
|
+
FMT_ASSERT(false, (x).what()); \
|
101
|
+
} while (false)
|
102
|
+
# endif
|
103
|
+
#endif
|
104
|
+
|
105
|
+
#if FMT_EXCEPTIONS
|
106
|
+
# define FMT_TRY try
|
107
|
+
# define FMT_CATCH(x) catch (x)
|
108
|
+
#else
|
109
|
+
# define FMT_TRY if (true)
|
110
|
+
# define FMT_CATCH(x) if (false)
|
111
|
+
#endif
|
112
|
+
|
113
|
+
#ifndef FMT_DEPRECATED
|
114
|
+
# if FMT_HAS_CPP14_ATTRIBUTE(deprecated) || FMT_MSC_VER >= 1900
|
115
|
+
# define FMT_DEPRECATED [[deprecated]]
|
116
|
+
# else
|
117
|
+
# if (defined(__GNUC__) && !defined(__LCC__)) || defined(__clang__)
|
118
|
+
# define FMT_DEPRECATED __attribute__((deprecated))
|
119
|
+
# elif FMT_MSC_VER
|
120
|
+
# define FMT_DEPRECATED __declspec(deprecated)
|
121
|
+
# else
|
122
|
+
# define FMT_DEPRECATED /* deprecated */
|
123
|
+
# endif
|
124
|
+
# endif
|
125
|
+
#endif
|
126
|
+
|
127
|
+
#ifndef FMT_MAYBE_UNUSED
|
128
|
+
# if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
|
129
|
+
# define FMT_MAYBE_UNUSED [[maybe_unused]]
|
130
|
+
# else
|
131
|
+
# define FMT_MAYBE_UNUSED
|
132
|
+
# endif
|
133
|
+
#endif
|
134
|
+
|
135
|
+
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compilers.
|
136
|
+
#if FMT_ICC_VERSION || defined(__PGI) || FMT_NVCC
|
137
|
+
# define FMT_DEPRECATED_ALIAS
|
138
|
+
#else
|
139
|
+
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
|
140
|
+
#endif
|
141
|
+
|
142
|
+
#ifndef FMT_USE_USER_DEFINED_LITERALS
|
143
|
+
// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
|
144
|
+
# if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 407 || \
|
145
|
+
FMT_MSC_VER >= 1900) && \
|
146
|
+
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
|
147
|
+
# define FMT_USE_USER_DEFINED_LITERALS 1
|
148
|
+
# else
|
149
|
+
# define FMT_USE_USER_DEFINED_LITERALS 0
|
150
|
+
# endif
|
151
|
+
#endif
|
152
|
+
|
153
|
+
// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
|
154
|
+
// integer formatter template instantiations to just one by only using the
|
155
|
+
// largest integer type. This results in a reduction in binary size but will
|
156
|
+
// cause a decrease in integer formatting performance.
|
157
|
+
#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
|
158
|
+
# define FMT_REDUCE_INT_INSTANTIATIONS 0
|
159
|
+
#endif
|
160
|
+
|
161
|
+
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
162
|
+
// https://github.com/fmtlib/fmt/issues/519.
|
163
|
+
#if !FMT_MSC_VER
|
164
|
+
# if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
165
|
+
# define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
|
166
|
+
# endif
|
167
|
+
# if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
168
|
+
# define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
|
169
|
+
# endif
|
170
|
+
#endif
|
171
|
+
|
172
|
+
// __builtin_ctz is broken in Intel Compiler Classic on Windows:
|
173
|
+
// https://github.com/fmtlib/fmt/issues/2510.
|
174
|
+
#ifndef __ICL
|
175
|
+
# if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
176
|
+
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
|
177
|
+
# endif
|
178
|
+
# if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
179
|
+
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
|
180
|
+
# endif
|
181
|
+
#endif
|
182
|
+
|
183
|
+
#if FMT_MSC_VER
|
184
|
+
# include <intrin.h> // _BitScanReverse[64], _BitScanForward[64], _umul128
|
185
|
+
#endif
|
186
|
+
|
187
|
+
// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
|
188
|
+
// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
|
189
|
+
// MSVC intrinsics if the clz and clzll builtins are not available.
|
190
|
+
#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(FMT_BUILTIN_CTZLL)
|
191
|
+
FMT_BEGIN_NAMESPACE
|
192
|
+
namespace detail {
|
193
|
+
// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
|
194
|
+
# if !defined(__clang__)
|
195
|
+
# pragma intrinsic(_BitScanForward)
|
196
|
+
# pragma intrinsic(_BitScanReverse)
|
197
|
+
# if defined(_WIN64)
|
198
|
+
# pragma intrinsic(_BitScanForward64)
|
199
|
+
# pragma intrinsic(_BitScanReverse64)
|
200
|
+
# endif
|
201
|
+
# endif
|
202
|
+
|
203
|
+
inline auto clz(uint32_t x) -> int {
|
204
|
+
unsigned long r = 0;
|
205
|
+
_BitScanReverse(&r, x);
|
206
|
+
FMT_ASSERT(x != 0, "");
|
207
|
+
// Static analysis complains about using uninitialized data
|
208
|
+
// "r", but the only way that can happen is if "x" is 0,
|
209
|
+
// which the callers guarantee to not happen.
|
210
|
+
FMT_MSC_WARNING(suppress : 6102)
|
211
|
+
return 31 ^ static_cast<int>(r);
|
212
|
+
}
|
213
|
+
# define FMT_BUILTIN_CLZ(n) detail::clz(n)
|
214
|
+
|
215
|
+
inline auto clzll(uint64_t x) -> int {
|
216
|
+
unsigned long r = 0;
|
217
|
+
# ifdef _WIN64
|
218
|
+
_BitScanReverse64(&r, x);
|
219
|
+
# else
|
220
|
+
// Scan the high 32 bits.
|
221
|
+
if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) return 63 ^ (r + 32);
|
222
|
+
// Scan the low 32 bits.
|
223
|
+
_BitScanReverse(&r, static_cast<uint32_t>(x));
|
224
|
+
# endif
|
225
|
+
FMT_ASSERT(x != 0, "");
|
226
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
227
|
+
return 63 ^ static_cast<int>(r);
|
228
|
+
}
|
229
|
+
# define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
|
230
|
+
|
231
|
+
inline auto ctz(uint32_t x) -> int {
|
232
|
+
unsigned long r = 0;
|
233
|
+
_BitScanForward(&r, x);
|
234
|
+
FMT_ASSERT(x != 0, "");
|
235
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
236
|
+
return static_cast<int>(r);
|
237
|
+
}
|
238
|
+
# define FMT_BUILTIN_CTZ(n) detail::ctz(n)
|
239
|
+
|
240
|
+
inline auto ctzll(uint64_t x) -> int {
|
241
|
+
unsigned long r = 0;
|
242
|
+
FMT_ASSERT(x != 0, "");
|
243
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
244
|
+
# ifdef _WIN64
|
245
|
+
_BitScanForward64(&r, x);
|
246
|
+
# else
|
247
|
+
// Scan the low 32 bits.
|
248
|
+
if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
|
249
|
+
// Scan the high 32 bits.
|
250
|
+
_BitScanForward(&r, static_cast<uint32_t>(x >> 32));
|
251
|
+
r += 32;
|
252
|
+
# endif
|
253
|
+
return static_cast<int>(r);
|
254
|
+
}
|
255
|
+
# define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
|
256
|
+
} // namespace detail
|
257
|
+
FMT_END_NAMESPACE
|
258
|
+
#endif
|
259
|
+
|
260
|
+
#ifdef FMT_HEADER_ONLY
|
261
|
+
# define FMT_HEADER_ONLY_CONSTEXPR20 FMT_CONSTEXPR20
|
262
|
+
#else
|
263
|
+
# define FMT_HEADER_ONLY_CONSTEXPR20
|
264
|
+
#endif
|
265
|
+
|
266
|
+
FMT_BEGIN_NAMESPACE
|
267
|
+
namespace detail {
|
268
|
+
|
269
|
+
template <typename Streambuf> class formatbuf : public Streambuf {
|
270
|
+
private:
|
271
|
+
using char_type = typename Streambuf::char_type;
|
272
|
+
using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0));
|
273
|
+
using int_type = typename Streambuf::int_type;
|
274
|
+
using traits_type = typename Streambuf::traits_type;
|
275
|
+
|
276
|
+
buffer<char_type>& buffer_;
|
277
|
+
|
278
|
+
public:
|
279
|
+
explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {}
|
280
|
+
|
281
|
+
protected:
|
282
|
+
// The put area is always empty. This makes the implementation simpler and has
|
283
|
+
// the advantage that the streambuf and the buffer are always in sync and
|
284
|
+
// sputc never writes into uninitialized memory. A disadvantage is that each
|
285
|
+
// call to sputc always results in a (virtual) call to overflow. There is no
|
286
|
+
// disadvantage here for sputn since this always results in a call to xsputn.
|
287
|
+
|
288
|
+
auto overflow(int_type ch) -> int_type override {
|
289
|
+
if (!traits_type::eq_int_type(ch, traits_type::eof()))
|
290
|
+
buffer_.push_back(static_cast<char_type>(ch));
|
291
|
+
return ch;
|
292
|
+
}
|
293
|
+
|
294
|
+
auto xsputn(const char_type* s, streamsize count) -> streamsize override {
|
295
|
+
buffer_.append(s, s + count);
|
296
|
+
return count;
|
297
|
+
}
|
298
|
+
};
|
299
|
+
|
300
|
+
// An equivalent of `*reinterpret_cast<Dest*>(&source)` that doesn't have
|
301
|
+
// undefined behavior (e.g. due to type aliasing).
|
302
|
+
// Example: uint64_t d = bit_cast<uint64_t>(2.718);
|
303
|
+
template <typename Dest, typename Source>
|
304
|
+
FMT_CONSTEXPR20 auto bit_cast(const Source& source) -> Dest {
|
305
|
+
static_assert(sizeof(Dest) == sizeof(Source), "size mismatch");
|
306
|
+
#ifdef __cpp_lib_bit_cast
|
307
|
+
if (is_constant_evaluated()) {
|
308
|
+
return std::bit_cast<Dest>(source);
|
309
|
+
}
|
310
|
+
#endif
|
311
|
+
Dest dest;
|
312
|
+
std::memcpy(&dest, &source, sizeof(dest));
|
313
|
+
return dest;
|
314
|
+
}
|
315
|
+
|
316
|
+
inline auto is_big_endian() -> bool {
|
317
|
+
const auto u = 1u;
|
318
|
+
struct bytes {
|
319
|
+
char data[sizeof(u)];
|
320
|
+
};
|
321
|
+
return bit_cast<bytes>(u).data[0] == 0;
|
322
|
+
}
|
323
|
+
|
324
|
+
// A fallback implementation of uintptr_t for systems that lack it.
|
325
|
+
struct fallback_uintptr {
|
326
|
+
unsigned char value[sizeof(void*)];
|
327
|
+
|
328
|
+
fallback_uintptr() = default;
|
329
|
+
explicit fallback_uintptr(const void* p) {
|
330
|
+
*this = bit_cast<fallback_uintptr>(p);
|
331
|
+
if (is_big_endian()) {
|
332
|
+
for (size_t i = 0, j = sizeof(void*) - 1; i < j; ++i, --j)
|
333
|
+
std::swap(value[i], value[j]);
|
334
|
+
}
|
335
|
+
}
|
336
|
+
};
|
337
|
+
#ifdef UINTPTR_MAX
|
338
|
+
using uintptr_t = ::uintptr_t;
|
339
|
+
inline auto to_uintptr(const void* p) -> uintptr_t {
|
340
|
+
return bit_cast<uintptr_t>(p);
|
341
|
+
}
|
342
|
+
#else
|
343
|
+
using uintptr_t = fallback_uintptr;
|
344
|
+
inline auto to_uintptr(const void* p) -> fallback_uintptr {
|
345
|
+
return fallback_uintptr(p);
|
346
|
+
}
|
347
|
+
#endif
|
348
|
+
|
349
|
+
// Returns the largest possible value for type T. Same as
|
350
|
+
// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
|
351
|
+
template <typename T> constexpr auto max_value() -> T {
|
352
|
+
return (std::numeric_limits<T>::max)();
|
353
|
+
}
|
354
|
+
template <typename T> constexpr auto num_bits() -> int {
|
355
|
+
return std::numeric_limits<T>::digits;
|
356
|
+
}
|
357
|
+
// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
|
358
|
+
template <> constexpr auto num_bits<int128_t>() -> int { return 128; }
|
359
|
+
template <> constexpr auto num_bits<uint128_t>() -> int { return 128; }
|
360
|
+
template <> constexpr auto num_bits<fallback_uintptr>() -> int {
|
361
|
+
return static_cast<int>(sizeof(void*) *
|
362
|
+
std::numeric_limits<unsigned char>::digits);
|
363
|
+
}
|
364
|
+
|
365
|
+
FMT_INLINE void assume(bool condition) {
|
366
|
+
(void)condition;
|
367
|
+
#if FMT_HAS_BUILTIN(__builtin_assume)
|
368
|
+
__builtin_assume(condition);
|
369
|
+
#endif
|
370
|
+
}
|
371
|
+
|
372
|
+
// An approximation of iterator_t for pre-C++20 systems.
|
373
|
+
template <typename T>
|
374
|
+
using iterator_t = decltype(std::begin(std::declval<T&>()));
|
375
|
+
template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
|
376
|
+
|
377
|
+
// A workaround for std::string not having mutable data() until C++17.
|
378
|
+
template <typename Char>
|
379
|
+
inline auto get_data(std::basic_string<Char>& s) -> Char* {
|
380
|
+
return &s[0];
|
381
|
+
}
|
382
|
+
template <typename Container>
|
383
|
+
inline auto get_data(Container& c) -> typename Container::value_type* {
|
384
|
+
return c.data();
|
385
|
+
}
|
386
|
+
|
387
|
+
#if defined(_SECURE_SCL) && _SECURE_SCL
|
388
|
+
// Make a checked iterator to avoid MSVC warnings.
|
389
|
+
template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
|
390
|
+
template <typename T>
|
391
|
+
constexpr auto make_checked(T* p, size_t size) -> checked_ptr<T> {
|
392
|
+
return {p, size};
|
393
|
+
}
|
394
|
+
#else
|
395
|
+
template <typename T> using checked_ptr = T*;
|
396
|
+
template <typename T> constexpr auto make_checked(T* p, size_t) -> T* {
|
397
|
+
return p;
|
398
|
+
}
|
399
|
+
#endif
|
400
|
+
|
401
|
+
// Attempts to reserve space for n extra characters in the output range.
|
402
|
+
// Returns a pointer to the reserved range or a reference to it.
|
403
|
+
template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
|
404
|
+
#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
|
405
|
+
__attribute__((no_sanitize("undefined")))
|
406
|
+
#endif
|
407
|
+
inline auto
|
408
|
+
reserve(std::back_insert_iterator<Container> it, size_t n)
|
409
|
+
-> checked_ptr<typename Container::value_type> {
|
410
|
+
Container& c = get_container(it);
|
411
|
+
size_t size = c.size();
|
412
|
+
c.resize(size + n);
|
413
|
+
return make_checked(get_data(c) + size, n);
|
414
|
+
}
|
415
|
+
|
416
|
+
template <typename T>
|
417
|
+
inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> {
|
418
|
+
buffer<T>& buf = get_container(it);
|
419
|
+
buf.try_reserve(buf.size() + n);
|
420
|
+
return it;
|
421
|
+
}
|
422
|
+
|
423
|
+
template <typename Iterator>
|
424
|
+
constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
|
425
|
+
return it;
|
426
|
+
}
|
427
|
+
|
428
|
+
template <typename OutputIt>
|
429
|
+
using reserve_iterator =
|
430
|
+
remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
|
431
|
+
|
432
|
+
template <typename T, typename OutputIt>
|
433
|
+
constexpr auto to_pointer(OutputIt, size_t) -> T* {
|
434
|
+
return nullptr;
|
435
|
+
}
|
436
|
+
template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* {
|
437
|
+
buffer<T>& buf = get_container(it);
|
438
|
+
auto size = buf.size();
|
439
|
+
if (buf.capacity() < size + n) return nullptr;
|
440
|
+
buf.try_resize(size + n);
|
441
|
+
return buf.data() + size;
|
442
|
+
}
|
443
|
+
|
444
|
+
template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
|
445
|
+
inline auto base_iterator(std::back_insert_iterator<Container>& it,
|
446
|
+
checked_ptr<typename Container::value_type>)
|
447
|
+
-> std::back_insert_iterator<Container> {
|
448
|
+
return it;
|
449
|
+
}
|
450
|
+
|
451
|
+
template <typename Iterator>
|
452
|
+
constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
|
453
|
+
return it;
|
454
|
+
}
|
455
|
+
|
456
|
+
// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
|
457
|
+
// instead (#1998).
|
458
|
+
template <typename OutputIt, typename Size, typename T>
|
459
|
+
FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
|
460
|
+
-> OutputIt {
|
461
|
+
for (Size i = 0; i < count; ++i) *out++ = value;
|
462
|
+
return out;
|
463
|
+
}
|
464
|
+
template <typename T, typename Size>
|
465
|
+
FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
|
466
|
+
if (is_constant_evaluated()) {
|
467
|
+
return fill_n<T*, Size, T>(out, count, value);
|
468
|
+
}
|
469
|
+
std::memset(out, value, to_unsigned(count));
|
470
|
+
return out + count;
|
471
|
+
}
|
472
|
+
|
473
|
+
#ifdef __cpp_char8_t
|
474
|
+
using char8_type = char8_t;
|
475
|
+
#else
|
476
|
+
enum char8_type : unsigned char {};
|
477
|
+
#endif
|
478
|
+
|
479
|
+
template <typename OutChar, typename InputIt, typename OutputIt>
|
480
|
+
FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
|
481
|
+
OutputIt out) -> OutputIt {
|
482
|
+
return copy_str<OutChar>(begin, end, out);
|
483
|
+
}
|
484
|
+
|
485
|
+
// A public domain branchless UTF-8 decoder by Christopher Wellons:
|
486
|
+
// https://github.com/skeeto/branchless-utf8
|
487
|
+
/* Decode the next character, c, from s, reporting errors in e.
|
488
|
+
*
|
489
|
+
* Since this is a branchless decoder, four bytes will be read from the
|
490
|
+
* buffer regardless of the actual length of the next character. This
|
491
|
+
* means the buffer _must_ have at least three bytes of zero padding
|
492
|
+
* following the end of the data stream.
|
493
|
+
*
|
494
|
+
* Errors are reported in e, which will be non-zero if the parsed
|
495
|
+
* character was somehow invalid: invalid byte sequence, non-canonical
|
496
|
+
* encoding, or a surrogate half.
|
497
|
+
*
|
498
|
+
* The function returns a pointer to the next character. When an error
|
499
|
+
* occurs, this pointer will be a guess that depends on the particular
|
500
|
+
* error, but it will always advance at least one byte.
|
501
|
+
*/
|
502
|
+
FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
|
503
|
+
-> const char* {
|
504
|
+
constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
|
505
|
+
constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
|
506
|
+
constexpr const int shiftc[] = {0, 18, 12, 6, 0};
|
507
|
+
constexpr const int shifte[] = {0, 6, 4, 2, 0};
|
508
|
+
|
509
|
+
int len = code_point_length(s);
|
510
|
+
const char* next = s + len;
|
511
|
+
|
512
|
+
// Assume a four-byte character and load four bytes. Unused bits are
|
513
|
+
// shifted out.
|
514
|
+
*c = uint32_t(s[0] & masks[len]) << 18;
|
515
|
+
*c |= uint32_t(s[1] & 0x3f) << 12;
|
516
|
+
*c |= uint32_t(s[2] & 0x3f) << 6;
|
517
|
+
*c |= uint32_t(s[3] & 0x3f) << 0;
|
518
|
+
*c >>= shiftc[len];
|
519
|
+
|
520
|
+
// Accumulate the various error conditions.
|
521
|
+
using uchar = unsigned char;
|
522
|
+
*e = (*c < mins[len]) << 6; // non-canonical encoding
|
523
|
+
*e |= ((*c >> 11) == 0x1b) << 7; // surrogate half?
|
524
|
+
*e |= (*c > 0x10FFFF) << 8; // out of range?
|
525
|
+
*e |= (uchar(s[1]) & 0xc0) >> 2;
|
526
|
+
*e |= (uchar(s[2]) & 0xc0) >> 4;
|
527
|
+
*e |= uchar(s[3]) >> 6;
|
528
|
+
*e ^= 0x2a; // top two bits of each tail byte correct?
|
529
|
+
*e >>= shifte[len];
|
530
|
+
|
531
|
+
return next;
|
532
|
+
}
|
533
|
+
|
534
|
+
enum { invalid_code_point = ~uint32_t() };
|
535
|
+
|
536
|
+
// Invokes f(cp, sv) for every code point cp in s with sv being the string view
|
537
|
+
// corresponding to the code point. cp is invalid_code_point on error.
|
538
|
+
template <typename F>
|
539
|
+
FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
|
540
|
+
auto decode = [f](const char* buf_ptr, const char* ptr) {
|
541
|
+
auto cp = uint32_t();
|
542
|
+
auto error = 0;
|
543
|
+
auto end = utf8_decode(buf_ptr, &cp, &error);
|
544
|
+
bool result = f(error ? invalid_code_point : cp,
|
545
|
+
string_view(ptr, to_unsigned(end - buf_ptr)));
|
546
|
+
return result ? end : nullptr;
|
547
|
+
};
|
548
|
+
auto p = s.data();
|
549
|
+
const size_t block_size = 4; // utf8_decode always reads blocks of 4 chars.
|
550
|
+
if (s.size() >= block_size) {
|
551
|
+
for (auto end = p + s.size() - block_size + 1; p < end;) {
|
552
|
+
p = decode(p, p);
|
553
|
+
if (!p) return;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
if (auto num_chars_left = s.data() + s.size() - p) {
|
557
|
+
char buf[2 * block_size - 1] = {};
|
558
|
+
copy_str<char>(p, p + num_chars_left, buf);
|
559
|
+
const char* buf_ptr = buf;
|
560
|
+
do {
|
561
|
+
auto end = decode(buf_ptr, p);
|
562
|
+
if (!end) return;
|
563
|
+
p += end - buf_ptr;
|
564
|
+
buf_ptr = end;
|
565
|
+
} while (buf_ptr - buf < num_chars_left);
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
template <typename Char>
|
570
|
+
inline auto compute_width(basic_string_view<Char> s) -> size_t {
|
571
|
+
return s.size();
|
572
|
+
}
|
573
|
+
|
574
|
+
// Computes approximate display width of a UTF-8 string.
|
575
|
+
FMT_CONSTEXPR inline size_t compute_width(string_view s) {
|
576
|
+
size_t num_code_points = 0;
|
577
|
+
// It is not a lambda for compatibility with C++14.
|
578
|
+
struct count_code_points {
|
579
|
+
size_t* count;
|
580
|
+
FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
|
581
|
+
*count += detail::to_unsigned(
|
582
|
+
1 +
|
583
|
+
(cp >= 0x1100 &&
|
584
|
+
(cp <= 0x115f || // Hangul Jamo init. consonants
|
585
|
+
cp == 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
586
|
+
cp == 0x232a || // RIGHT-POINTING ANGLE BRACKET
|
587
|
+
// CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
|
588
|
+
(cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
|
589
|
+
(cp >= 0xac00 && cp <= 0xd7a3) || // Hangul Syllables
|
590
|
+
(cp >= 0xf900 && cp <= 0xfaff) || // CJK Compatibility Ideographs
|
591
|
+
(cp >= 0xfe10 && cp <= 0xfe19) || // Vertical Forms
|
592
|
+
(cp >= 0xfe30 && cp <= 0xfe6f) || // CJK Compatibility Forms
|
593
|
+
(cp >= 0xff00 && cp <= 0xff60) || // Fullwidth Forms
|
594
|
+
(cp >= 0xffe0 && cp <= 0xffe6) || // Fullwidth Forms
|
595
|
+
(cp >= 0x20000 && cp <= 0x2fffd) || // CJK
|
596
|
+
(cp >= 0x30000 && cp <= 0x3fffd) ||
|
597
|
+
// Miscellaneous Symbols and Pictographs + Emoticons:
|
598
|
+
(cp >= 0x1f300 && cp <= 0x1f64f) ||
|
599
|
+
// Supplemental Symbols and Pictographs:
|
600
|
+
(cp >= 0x1f900 && cp <= 0x1f9ff))));
|
601
|
+
return true;
|
602
|
+
}
|
603
|
+
};
|
604
|
+
for_each_codepoint(s, count_code_points{&num_code_points});
|
605
|
+
return num_code_points;
|
606
|
+
}
|
607
|
+
|
608
|
+
inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
|
609
|
+
return compute_width(basic_string_view<char>(
|
610
|
+
reinterpret_cast<const char*>(s.data()), s.size()));
|
611
|
+
}
|
612
|
+
|
613
|
+
template <typename Char>
|
614
|
+
inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
|
615
|
+
size_t size = s.size();
|
616
|
+
return n < size ? n : size;
|
617
|
+
}
|
618
|
+
|
619
|
+
// Calculates the index of the nth code point in a UTF-8 string.
|
620
|
+
inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
|
621
|
+
-> size_t {
|
622
|
+
const char8_type* data = s.data();
|
623
|
+
size_t num_code_points = 0;
|
624
|
+
for (size_t i = 0, size = s.size(); i != size; ++i) {
|
625
|
+
if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i;
|
626
|
+
}
|
627
|
+
return s.size();
|
628
|
+
}
|
629
|
+
|
630
|
+
template <typename T, bool = std::is_floating_point<T>::value>
|
631
|
+
struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
|
632
|
+
sizeof(T) <= sizeof(double)> {};
|
633
|
+
template <typename T> struct is_fast_float<T, false> : std::false_type {};
|
634
|
+
|
635
|
+
#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
|
636
|
+
# define FMT_USE_FULL_CACHE_DRAGONBOX 0
|
637
|
+
#endif
|
638
|
+
|
639
|
+
template <typename T>
|
640
|
+
template <typename U>
|
641
|
+
void buffer<T>::append(const U* begin, const U* end) {
|
642
|
+
while (begin != end) {
|
643
|
+
auto count = to_unsigned(end - begin);
|
644
|
+
try_reserve(size_ + count);
|
645
|
+
auto free_cap = capacity_ - size_;
|
646
|
+
if (free_cap < count) count = free_cap;
|
647
|
+
std::uninitialized_copy_n(begin, count, make_checked(ptr_ + size_, count));
|
648
|
+
size_ += count;
|
649
|
+
begin += count;
|
650
|
+
}
|
651
|
+
}
|
652
|
+
|
653
|
+
template <typename T, typename Enable = void>
|
654
|
+
struct is_locale : std::false_type {};
|
655
|
+
template <typename T>
|
656
|
+
struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
|
657
|
+
} // namespace detail
|
658
|
+
|
659
|
+
FMT_MODULE_EXPORT_BEGIN
|
660
|
+
|
661
|
+
// The number of characters to store in the basic_memory_buffer object itself
|
662
|
+
// to avoid dynamic memory allocation.
|
663
|
+
enum { inline_buffer_size = 500 };
|
664
|
+
|
665
|
+
/**
|
666
|
+
\rst
|
667
|
+
A dynamically growing memory buffer for trivially copyable/constructible types
|
668
|
+
with the first ``SIZE`` elements stored in the object itself.
|
669
|
+
|
670
|
+
You can use the ``memory_buffer`` type alias for ``char`` instead.
|
671
|
+
|
672
|
+
**Example**::
|
673
|
+
|
674
|
+
auto out = fmt::memory_buffer();
|
675
|
+
format_to(std::back_inserter(out), "The answer is {}.", 42);
|
676
|
+
|
677
|
+
This will append the following output to the ``out`` object:
|
678
|
+
|
679
|
+
.. code-block:: none
|
680
|
+
|
681
|
+
The answer is 42.
|
682
|
+
|
683
|
+
The output can be converted to an ``std::string`` with ``to_string(out)``.
|
684
|
+
\endrst
|
685
|
+
*/
|
686
|
+
template <typename T, size_t SIZE = inline_buffer_size,
|
687
|
+
typename Allocator = std::allocator<T>>
|
688
|
+
class basic_memory_buffer final : public detail::buffer<T> {
|
689
|
+
private:
|
690
|
+
T store_[SIZE];
|
691
|
+
|
692
|
+
// Don't inherit from Allocator avoid generating type_info for it.
|
693
|
+
Allocator alloc_;
|
694
|
+
|
695
|
+
// Deallocate memory allocated by the buffer.
|
696
|
+
FMT_CONSTEXPR20 void deallocate() {
|
697
|
+
T* data = this->data();
|
698
|
+
if (data != store_) alloc_.deallocate(data, this->capacity());
|
699
|
+
}
|
700
|
+
|
701
|
+
protected:
|
702
|
+
FMT_CONSTEXPR20 void grow(size_t size) override;
|
703
|
+
|
704
|
+
public:
|
705
|
+
using value_type = T;
|
706
|
+
using const_reference = const T&;
|
707
|
+
|
708
|
+
FMT_CONSTEXPR20 explicit basic_memory_buffer(
|
709
|
+
const Allocator& alloc = Allocator())
|
710
|
+
: alloc_(alloc) {
|
711
|
+
this->set(store_, SIZE);
|
712
|
+
if (detail::is_constant_evaluated()) {
|
713
|
+
detail::fill_n(store_, SIZE, T{});
|
714
|
+
}
|
715
|
+
}
|
716
|
+
FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
|
717
|
+
|
718
|
+
private:
|
719
|
+
// Move data from other to this buffer.
|
720
|
+
FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
|
721
|
+
alloc_ = std::move(other.alloc_);
|
722
|
+
T* data = other.data();
|
723
|
+
size_t size = other.size(), capacity = other.capacity();
|
724
|
+
if (data == other.store_) {
|
725
|
+
this->set(store_, capacity);
|
726
|
+
if (detail::is_constant_evaluated()) {
|
727
|
+
detail::copy_str<T>(other.store_, other.store_ + size,
|
728
|
+
detail::make_checked(store_, capacity));
|
729
|
+
} else {
|
730
|
+
std::uninitialized_copy(other.store_, other.store_ + size,
|
731
|
+
detail::make_checked(store_, capacity));
|
732
|
+
}
|
733
|
+
} else {
|
734
|
+
this->set(data, capacity);
|
735
|
+
// Set pointer to the inline array so that delete is not called
|
736
|
+
// when deallocating.
|
737
|
+
other.set(other.store_, 0);
|
738
|
+
}
|
739
|
+
this->resize(size);
|
740
|
+
}
|
741
|
+
|
742
|
+
public:
|
743
|
+
/**
|
744
|
+
\rst
|
745
|
+
Constructs a :class:`fmt::basic_memory_buffer` object moving the content
|
746
|
+
of the other object to it.
|
747
|
+
\endrst
|
748
|
+
*/
|
749
|
+
FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other)
|
750
|
+
FMT_NOEXCEPT {
|
751
|
+
move(other);
|
752
|
+
}
|
753
|
+
|
754
|
+
/**
|
755
|
+
\rst
|
756
|
+
Moves the content of the other ``basic_memory_buffer`` object to this one.
|
757
|
+
\endrst
|
758
|
+
*/
|
759
|
+
auto operator=(basic_memory_buffer&& other) FMT_NOEXCEPT
|
760
|
+
-> basic_memory_buffer& {
|
761
|
+
FMT_ASSERT(this != &other, "");
|
762
|
+
deallocate();
|
763
|
+
move(other);
|
764
|
+
return *this;
|
765
|
+
}
|
766
|
+
|
767
|
+
// Returns a copy of the allocator associated with this buffer.
|
768
|
+
auto get_allocator() const -> Allocator { return alloc_; }
|
769
|
+
|
770
|
+
/**
|
771
|
+
Resizes the buffer to contain *count* elements. If T is a POD type new
|
772
|
+
elements may not be initialized.
|
773
|
+
*/
|
774
|
+
FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
|
775
|
+
|
776
|
+
/** Increases the buffer capacity to *new_capacity*. */
|
777
|
+
void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
|
778
|
+
|
779
|
+
// Directly append data into the buffer
|
780
|
+
using detail::buffer<T>::append;
|
781
|
+
template <typename ContiguousRange>
|
782
|
+
void append(const ContiguousRange& range) {
|
783
|
+
append(range.data(), range.data() + range.size());
|
784
|
+
}
|
785
|
+
};
|
786
|
+
|
787
|
+
template <typename T, size_t SIZE, typename Allocator>
|
788
|
+
FMT_CONSTEXPR20 void basic_memory_buffer<T, SIZE, Allocator>::grow(size_t size) {
|
789
|
+
#ifdef FMT_FUZZ
|
790
|
+
if (size > 5000) throw std::runtime_error("fuzz mode - won't grow that much");
|
791
|
+
#endif
|
792
|
+
const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_);
|
793
|
+
size_t old_capacity = this->capacity();
|
794
|
+
size_t new_capacity = old_capacity + old_capacity / 2;
|
795
|
+
if (size > new_capacity)
|
796
|
+
new_capacity = size;
|
797
|
+
else if (new_capacity > max_size)
|
798
|
+
new_capacity = size > max_size ? size : max_size;
|
799
|
+
T* old_data = this->data();
|
800
|
+
T* new_data =
|
801
|
+
std::allocator_traits<Allocator>::allocate(alloc_, new_capacity);
|
802
|
+
// The following code doesn't throw, so the raw pointer above doesn't leak.
|
803
|
+
std::uninitialized_copy(old_data, old_data + this->size(),
|
804
|
+
detail::make_checked(new_data, new_capacity));
|
805
|
+
this->set(new_data, new_capacity);
|
806
|
+
// deallocate must not throw according to the standard, but even if it does,
|
807
|
+
// the buffer already uses the new storage and will deallocate it in
|
808
|
+
// destructor.
|
809
|
+
if (old_data != store_) alloc_.deallocate(old_data, old_capacity);
|
810
|
+
}
|
811
|
+
|
812
|
+
using memory_buffer = basic_memory_buffer<char>;
|
813
|
+
|
814
|
+
template <typename T, size_t SIZE, typename Allocator>
|
815
|
+
struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
|
816
|
+
};
|
817
|
+
|
818
|
+
namespace detail {
|
819
|
+
FMT_API void print(std::FILE*, string_view);
|
820
|
+
}
|
821
|
+
|
822
|
+
/** A formatting error such as invalid format string. */
|
823
|
+
FMT_CLASS_API
|
824
|
+
class FMT_API format_error : public std::runtime_error {
|
825
|
+
public:
|
826
|
+
explicit format_error(const char* message) : std::runtime_error(message) {}
|
827
|
+
explicit format_error(const std::string& message)
|
828
|
+
: std::runtime_error(message) {}
|
829
|
+
format_error(const format_error&) = default;
|
830
|
+
format_error& operator=(const format_error&) = default;
|
831
|
+
format_error(format_error&&) = default;
|
832
|
+
format_error& operator=(format_error&&) = default;
|
833
|
+
~format_error() FMT_NOEXCEPT override FMT_MSC_DEFAULT;
|
834
|
+
};
|
835
|
+
|
836
|
+
/**
|
837
|
+
\rst
|
838
|
+
Constructs a `~fmt::format_arg_store` object that contains references
|
839
|
+
to arguments and can be implicitly converted to `~fmt::format_args`.
|
840
|
+
If ``fmt`` is a compile-time string then `make_args_checked` checks
|
841
|
+
its validity at compile time.
|
842
|
+
\endrst
|
843
|
+
*/
|
844
|
+
template <typename... Args, typename S, typename Char = char_t<S>>
|
845
|
+
FMT_INLINE auto make_args_checked(const S& fmt,
|
846
|
+
const remove_reference_t<Args>&... args)
|
847
|
+
-> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> {
|
848
|
+
static_assert(
|
849
|
+
detail::count<(
|
850
|
+
std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
|
851
|
+
std::is_reference<Args>::value)...>() == 0,
|
852
|
+
"passing views as lvalues is disallowed");
|
853
|
+
detail::check_format_string<Args...>(fmt);
|
854
|
+
return {args...};
|
855
|
+
}
|
856
|
+
|
857
|
+
// compile-time support
|
858
|
+
namespace detail_exported {
|
859
|
+
#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
860
|
+
template <typename Char, size_t N> struct fixed_string {
|
861
|
+
constexpr fixed_string(const Char (&str)[N]) {
|
862
|
+
detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
|
863
|
+
str + N, data);
|
864
|
+
}
|
865
|
+
Char data[N]{};
|
866
|
+
};
|
867
|
+
#endif
|
868
|
+
|
869
|
+
// Converts a compile-time string to basic_string_view.
|
870
|
+
template <typename Char, size_t N>
|
871
|
+
constexpr auto compile_string_to_view(const Char (&s)[N])
|
872
|
+
-> basic_string_view<Char> {
|
873
|
+
// Remove trailing NUL character if needed. Won't be present if this is used
|
874
|
+
// with a raw character array (i.e. not defined as a string).
|
875
|
+
return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
|
876
|
+
}
|
877
|
+
template <typename Char>
|
878
|
+
constexpr auto compile_string_to_view(detail::std_string_view<Char> s)
|
879
|
+
-> basic_string_view<Char> {
|
880
|
+
return {s.data(), s.size()};
|
881
|
+
}
|
882
|
+
} // namespace detail_exported
|
883
|
+
|
884
|
+
FMT_BEGIN_DETAIL_NAMESPACE
|
885
|
+
|
886
|
+
template <typename T> struct is_integral : std::is_integral<T> {};
|
887
|
+
template <> struct is_integral<int128_t> : std::true_type {};
|
888
|
+
template <> struct is_integral<uint128_t> : std::true_type {};
|
889
|
+
|
890
|
+
template <typename T>
|
891
|
+
using is_signed =
|
892
|
+
std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
|
893
|
+
std::is_same<T, int128_t>::value>;
|
894
|
+
|
895
|
+
// Returns true if value is negative, false otherwise.
|
896
|
+
// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
|
897
|
+
template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
|
898
|
+
FMT_CONSTEXPR auto is_negative(T value) -> bool {
|
899
|
+
return value < 0;
|
900
|
+
}
|
901
|
+
template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
|
902
|
+
FMT_CONSTEXPR auto is_negative(T) -> bool {
|
903
|
+
return false;
|
904
|
+
}
|
905
|
+
|
906
|
+
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
|
907
|
+
FMT_CONSTEXPR auto is_supported_floating_point(T) -> uint16_t {
|
908
|
+
return (std::is_same<T, float>::value && FMT_USE_FLOAT) ||
|
909
|
+
(std::is_same<T, double>::value && FMT_USE_DOUBLE) ||
|
910
|
+
(std::is_same<T, long double>::value && FMT_USE_LONG_DOUBLE);
|
911
|
+
}
|
912
|
+
|
913
|
+
// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
|
914
|
+
// represent all values of an integral type T.
|
915
|
+
template <typename T>
|
916
|
+
using uint32_or_64_or_128_t =
|
917
|
+
conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
|
918
|
+
uint32_t,
|
919
|
+
conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
|
920
|
+
template <typename T>
|
921
|
+
using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
|
922
|
+
|
923
|
+
#define FMT_POWERS_OF_10(factor) \
|
924
|
+
factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \
|
925
|
+
(factor)*1000000, (factor)*10000000, (factor)*100000000, \
|
926
|
+
(factor)*1000000000
|
927
|
+
|
928
|
+
// Converts value in the range [0, 100) to a string.
|
929
|
+
constexpr const char* digits2(size_t value) {
|
930
|
+
// GCC generates slightly better code when value is pointer-size.
|
931
|
+
return &"0001020304050607080910111213141516171819"
|
932
|
+
"2021222324252627282930313233343536373839"
|
933
|
+
"4041424344454647484950515253545556575859"
|
934
|
+
"6061626364656667686970717273747576777879"
|
935
|
+
"8081828384858687888990919293949596979899"[value * 2];
|
936
|
+
}
|
937
|
+
|
938
|
+
// Sign is a template parameter to workaround a bug in gcc 4.8.
|
939
|
+
template <typename Char, typename Sign> constexpr Char sign(Sign s) {
|
940
|
+
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
|
941
|
+
static_assert(std::is_same<Sign, sign_t>::value, "");
|
942
|
+
#endif
|
943
|
+
return static_cast<Char>("\0-+ "[s]);
|
944
|
+
}
|
945
|
+
|
946
|
+
template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
|
947
|
+
int count = 1;
|
948
|
+
for (;;) {
|
949
|
+
// Integer division is slow so do it for a group of four digits instead
|
950
|
+
// of for every digit. The idea comes from the talk by Alexandrescu
|
951
|
+
// "Three Optimization Tips for C++". See speed-test for a comparison.
|
952
|
+
if (n < 10) return count;
|
953
|
+
if (n < 100) return count + 1;
|
954
|
+
if (n < 1000) return count + 2;
|
955
|
+
if (n < 10000) return count + 3;
|
956
|
+
n /= 10000u;
|
957
|
+
count += 4;
|
958
|
+
}
|
959
|
+
}
|
960
|
+
#if FMT_USE_INT128
|
961
|
+
FMT_CONSTEXPR inline auto count_digits(uint128_t n) -> int {
|
962
|
+
return count_digits_fallback(n);
|
963
|
+
}
|
964
|
+
#endif
|
965
|
+
|
966
|
+
#ifdef FMT_BUILTIN_CLZLL
|
967
|
+
// It is a separate function rather than a part of count_digits to workaround
|
968
|
+
// the lack of static constexpr in constexpr functions.
|
969
|
+
inline auto do_count_digits(uint64_t n) -> int {
|
970
|
+
// This has comparable performance to the version by Kendall Willets
|
971
|
+
// (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
|
972
|
+
// but uses smaller tables.
|
973
|
+
// Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
|
974
|
+
static constexpr uint8_t bsr2log10[] = {
|
975
|
+
1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5,
|
976
|
+
6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10,
|
977
|
+
10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
|
978
|
+
15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
|
979
|
+
auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
|
980
|
+
static constexpr const uint64_t zero_or_powers_of_10[] = {
|
981
|
+
0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
|
982
|
+
10000000000000000000ULL};
|
983
|
+
return t - (n < zero_or_powers_of_10[t]);
|
984
|
+
}
|
985
|
+
#endif
|
986
|
+
|
987
|
+
// Returns the number of decimal digits in n. Leading zeros are not counted
|
988
|
+
// except for n == 0 in which case count_digits returns 1.
|
989
|
+
FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
|
990
|
+
#ifdef FMT_BUILTIN_CLZLL
|
991
|
+
if (!is_constant_evaluated()) {
|
992
|
+
return do_count_digits(n);
|
993
|
+
}
|
994
|
+
#endif
|
995
|
+
return count_digits_fallback(n);
|
996
|
+
}
|
997
|
+
|
998
|
+
// Counts the number of digits in n. BITS = log2(radix).
|
999
|
+
template <int BITS, typename UInt>
|
1000
|
+
FMT_CONSTEXPR auto count_digits(UInt n) -> int {
|
1001
|
+
#ifdef FMT_BUILTIN_CLZ
|
1002
|
+
if (num_bits<UInt>() == 32)
|
1003
|
+
return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
|
1004
|
+
#endif
|
1005
|
+
// Lambda avoids unreachable code warnings from NVHPC.
|
1006
|
+
return [](UInt m) {
|
1007
|
+
int num_digits = 0;
|
1008
|
+
do {
|
1009
|
+
++num_digits;
|
1010
|
+
} while ((m >>= BITS) != 0);
|
1011
|
+
return num_digits;
|
1012
|
+
}(n);
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
template <> auto count_digits<4>(detail::fallback_uintptr n) -> int;
|
1016
|
+
|
1017
|
+
#ifdef FMT_BUILTIN_CLZ
|
1018
|
+
// It is a separate function rather than a part of count_digits to workaround
|
1019
|
+
// the lack of static constexpr in constexpr functions.
|
1020
|
+
FMT_INLINE auto do_count_digits(uint32_t n) -> int {
|
1021
|
+
// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
|
1022
|
+
// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
|
1023
|
+
# define FMT_INC(T) (((sizeof(# T) - 1ull) << 32) - T)
|
1024
|
+
static constexpr uint64_t table[] = {
|
1025
|
+
FMT_INC(0), FMT_INC(0), FMT_INC(0), // 8
|
1026
|
+
FMT_INC(10), FMT_INC(10), FMT_INC(10), // 64
|
1027
|
+
FMT_INC(100), FMT_INC(100), FMT_INC(100), // 512
|
1028
|
+
FMT_INC(1000), FMT_INC(1000), FMT_INC(1000), // 4096
|
1029
|
+
FMT_INC(10000), FMT_INC(10000), FMT_INC(10000), // 32k
|
1030
|
+
FMT_INC(100000), FMT_INC(100000), FMT_INC(100000), // 256k
|
1031
|
+
FMT_INC(1000000), FMT_INC(1000000), FMT_INC(1000000), // 2048k
|
1032
|
+
FMT_INC(10000000), FMT_INC(10000000), FMT_INC(10000000), // 16M
|
1033
|
+
FMT_INC(100000000), FMT_INC(100000000), FMT_INC(100000000), // 128M
|
1034
|
+
FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000), // 1024M
|
1035
|
+
FMT_INC(1000000000), FMT_INC(1000000000) // 4B
|
1036
|
+
};
|
1037
|
+
auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
|
1038
|
+
return static_cast<int>((n + inc) >> 32);
|
1039
|
+
}
|
1040
|
+
#endif
|
1041
|
+
|
1042
|
+
// Optional version of count_digits for better performance on 32-bit platforms.
|
1043
|
+
FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
|
1044
|
+
#ifdef FMT_BUILTIN_CLZ
|
1045
|
+
if (!is_constant_evaluated()) {
|
1046
|
+
return do_count_digits(n);
|
1047
|
+
}
|
1048
|
+
#endif
|
1049
|
+
return count_digits_fallback(n);
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
template <typename Int> constexpr auto digits10() FMT_NOEXCEPT -> int {
|
1053
|
+
return std::numeric_limits<Int>::digits10;
|
1054
|
+
}
|
1055
|
+
template <> constexpr auto digits10<int128_t>() FMT_NOEXCEPT -> int {
|
1056
|
+
return 38;
|
1057
|
+
}
|
1058
|
+
template <> constexpr auto digits10<uint128_t>() FMT_NOEXCEPT -> int {
|
1059
|
+
return 38;
|
1060
|
+
}
|
1061
|
+
|
1062
|
+
template <typename Char> struct thousands_sep_result {
|
1063
|
+
std::string grouping;
|
1064
|
+
Char thousands_sep;
|
1065
|
+
};
|
1066
|
+
|
1067
|
+
template <typename Char>
|
1068
|
+
FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
|
1069
|
+
template <typename Char>
|
1070
|
+
inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
|
1071
|
+
auto result = thousands_sep_impl<char>(loc);
|
1072
|
+
return {result.grouping, Char(result.thousands_sep)};
|
1073
|
+
}
|
1074
|
+
template <>
|
1075
|
+
inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
|
1076
|
+
return thousands_sep_impl<wchar_t>(loc);
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
template <typename Char>
|
1080
|
+
FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
|
1081
|
+
template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
|
1082
|
+
return Char(decimal_point_impl<char>(loc));
|
1083
|
+
}
|
1084
|
+
template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
|
1085
|
+
return decimal_point_impl<wchar_t>(loc);
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
// Compares two characters for equality.
|
1089
|
+
template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
|
1090
|
+
return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
|
1091
|
+
}
|
1092
|
+
inline auto equal2(const char* lhs, const char* rhs) -> bool {
|
1093
|
+
return memcmp(lhs, rhs, 2) == 0;
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
// Copies two characters from src to dst.
|
1097
|
+
template <typename Char>
|
1098
|
+
FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
|
1099
|
+
if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
|
1100
|
+
memcpy(dst, src, 2);
|
1101
|
+
return;
|
1102
|
+
}
|
1103
|
+
*dst++ = static_cast<Char>(*src++);
|
1104
|
+
*dst = static_cast<Char>(*src);
|
1105
|
+
}
|
1106
|
+
|
1107
|
+
template <typename Iterator> struct format_decimal_result {
|
1108
|
+
Iterator begin;
|
1109
|
+
Iterator end;
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
// Formats a decimal unsigned integer value writing into out pointing to a
|
1113
|
+
// buffer of specified size. The caller must ensure that the buffer is large
|
1114
|
+
// enough.
|
1115
|
+
template <typename Char, typename UInt>
|
1116
|
+
FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
|
1117
|
+
-> format_decimal_result<Char*> {
|
1118
|
+
FMT_ASSERT(size >= count_digits(value), "invalid digit count");
|
1119
|
+
out += size;
|
1120
|
+
Char* end = out;
|
1121
|
+
while (value >= 100) {
|
1122
|
+
// Integer division is slow so do it for a group of two digits instead
|
1123
|
+
// of for every digit. The idea comes from the talk by Alexandrescu
|
1124
|
+
// "Three Optimization Tips for C++". See speed-test for a comparison.
|
1125
|
+
out -= 2;
|
1126
|
+
copy2(out, digits2(static_cast<size_t>(value % 100)));
|
1127
|
+
value /= 100;
|
1128
|
+
}
|
1129
|
+
if (value < 10) {
|
1130
|
+
*--out = static_cast<Char>('0' + value);
|
1131
|
+
return {out, end};
|
1132
|
+
}
|
1133
|
+
out -= 2;
|
1134
|
+
copy2(out, digits2(static_cast<size_t>(value)));
|
1135
|
+
return {out, end};
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
template <typename Char, typename UInt, typename Iterator,
|
1139
|
+
FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
|
1140
|
+
inline auto format_decimal(Iterator out, UInt value, int size)
|
1141
|
+
-> format_decimal_result<Iterator> {
|
1142
|
+
// Buffer is large enough to hold all digits (digits10 + 1).
|
1143
|
+
Char buffer[digits10<UInt>() + 1];
|
1144
|
+
auto end = format_decimal(buffer, value, size).end;
|
1145
|
+
return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
template <unsigned BASE_BITS, typename Char, typename UInt>
|
1149
|
+
FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
|
1150
|
+
bool upper = false) -> Char* {
|
1151
|
+
buffer += num_digits;
|
1152
|
+
Char* end = buffer;
|
1153
|
+
do {
|
1154
|
+
const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
|
1155
|
+
unsigned digit = (value & ((1 << BASE_BITS) - 1));
|
1156
|
+
*--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
|
1157
|
+
: digits[digit]);
|
1158
|
+
} while ((value >>= BASE_BITS) != 0);
|
1159
|
+
return end;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
template <unsigned BASE_BITS, typename Char>
|
1163
|
+
auto format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
|
1164
|
+
bool = false) -> Char* {
|
1165
|
+
auto char_digits = std::numeric_limits<unsigned char>::digits / 4;
|
1166
|
+
int start = (num_digits + char_digits - 1) / char_digits - 1;
|
1167
|
+
if (int start_digits = num_digits % char_digits) {
|
1168
|
+
unsigned value = n.value[start--];
|
1169
|
+
buffer = format_uint<BASE_BITS>(buffer, value, start_digits);
|
1170
|
+
}
|
1171
|
+
for (; start >= 0; --start) {
|
1172
|
+
unsigned value = n.value[start];
|
1173
|
+
buffer += char_digits;
|
1174
|
+
auto p = buffer;
|
1175
|
+
for (int i = 0; i < char_digits; ++i) {
|
1176
|
+
unsigned digit = (value & ((1 << BASE_BITS) - 1));
|
1177
|
+
*--p = static_cast<Char>("0123456789abcdef"[digit]);
|
1178
|
+
value >>= BASE_BITS;
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
return buffer;
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
|
1185
|
+
inline auto format_uint(It out, UInt value, int num_digits, bool upper = false)
|
1186
|
+
-> It {
|
1187
|
+
if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
|
1188
|
+
format_uint<BASE_BITS>(ptr, value, num_digits, upper);
|
1189
|
+
return out;
|
1190
|
+
}
|
1191
|
+
// Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
|
1192
|
+
char buffer[num_bits<UInt>() / BASE_BITS + 1];
|
1193
|
+
format_uint<BASE_BITS>(buffer, value, num_digits, upper);
|
1194
|
+
return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
// A converter from UTF-8 to UTF-16.
|
1198
|
+
class utf8_to_utf16 {
|
1199
|
+
private:
|
1200
|
+
basic_memory_buffer<wchar_t> buffer_;
|
1201
|
+
|
1202
|
+
public:
|
1203
|
+
FMT_API explicit utf8_to_utf16(string_view s);
|
1204
|
+
operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
|
1205
|
+
auto size() const -> size_t { return buffer_.size() - 1; }
|
1206
|
+
auto c_str() const -> const wchar_t* { return &buffer_[0]; }
|
1207
|
+
auto str() const -> std::wstring { return {&buffer_[0], size()}; }
|
1208
|
+
};
|
1209
|
+
|
1210
|
+
namespace dragonbox {
|
1211
|
+
|
1212
|
+
// Type-specific information that Dragonbox uses.
|
1213
|
+
template <class T> struct float_info;
|
1214
|
+
|
1215
|
+
template <> struct float_info<float> {
|
1216
|
+
using carrier_uint = uint32_t;
|
1217
|
+
static const int significand_bits = 23;
|
1218
|
+
static const int exponent_bits = 8;
|
1219
|
+
static const int min_exponent = -126;
|
1220
|
+
static const int max_exponent = 127;
|
1221
|
+
static const int exponent_bias = -127;
|
1222
|
+
static const int decimal_digits = 9;
|
1223
|
+
static const int kappa = 1;
|
1224
|
+
static const int big_divisor = 100;
|
1225
|
+
static const int small_divisor = 10;
|
1226
|
+
static const int min_k = -31;
|
1227
|
+
static const int max_k = 46;
|
1228
|
+
static const int cache_bits = 64;
|
1229
|
+
static const int divisibility_check_by_5_threshold = 39;
|
1230
|
+
static const int case_fc_pm_half_lower_threshold = -1;
|
1231
|
+
static const int case_fc_pm_half_upper_threshold = 6;
|
1232
|
+
static const int case_fc_lower_threshold = -2;
|
1233
|
+
static const int case_fc_upper_threshold = 6;
|
1234
|
+
static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
|
1235
|
+
static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
|
1236
|
+
static const int shorter_interval_tie_lower_threshold = -35;
|
1237
|
+
static const int shorter_interval_tie_upper_threshold = -35;
|
1238
|
+
static const int max_trailing_zeros = 7;
|
1239
|
+
};
|
1240
|
+
|
1241
|
+
template <> struct float_info<double> {
|
1242
|
+
using carrier_uint = uint64_t;
|
1243
|
+
static const int significand_bits = 52;
|
1244
|
+
static const int exponent_bits = 11;
|
1245
|
+
static const int min_exponent = -1022;
|
1246
|
+
static const int max_exponent = 1023;
|
1247
|
+
static const int exponent_bias = -1023;
|
1248
|
+
static const int decimal_digits = 17;
|
1249
|
+
static const int kappa = 2;
|
1250
|
+
static const int big_divisor = 1000;
|
1251
|
+
static const int small_divisor = 100;
|
1252
|
+
static const int min_k = -292;
|
1253
|
+
static const int max_k = 326;
|
1254
|
+
static const int cache_bits = 128;
|
1255
|
+
static const int divisibility_check_by_5_threshold = 86;
|
1256
|
+
static const int case_fc_pm_half_lower_threshold = -2;
|
1257
|
+
static const int case_fc_pm_half_upper_threshold = 9;
|
1258
|
+
static const int case_fc_lower_threshold = -4;
|
1259
|
+
static const int case_fc_upper_threshold = 9;
|
1260
|
+
static const int case_shorter_interval_left_endpoint_lower_threshold = 2;
|
1261
|
+
static const int case_shorter_interval_left_endpoint_upper_threshold = 3;
|
1262
|
+
static const int shorter_interval_tie_lower_threshold = -77;
|
1263
|
+
static const int shorter_interval_tie_upper_threshold = -77;
|
1264
|
+
static const int max_trailing_zeros = 16;
|
1265
|
+
};
|
1266
|
+
|
1267
|
+
template <typename T> struct decimal_fp {
|
1268
|
+
using significand_type = typename float_info<T>::carrier_uint;
|
1269
|
+
significand_type significand;
|
1270
|
+
int exponent;
|
1271
|
+
};
|
1272
|
+
|
1273
|
+
template <typename T>
|
1274
|
+
FMT_API auto to_decimal(T x) FMT_NOEXCEPT -> decimal_fp<T>;
|
1275
|
+
} // namespace dragonbox
|
1276
|
+
|
1277
|
+
template <typename T>
|
1278
|
+
constexpr auto exponent_mask() ->
|
1279
|
+
typename dragonbox::float_info<T>::carrier_uint {
|
1280
|
+
using uint = typename dragonbox::float_info<T>::carrier_uint;
|
1281
|
+
return ((uint(1) << dragonbox::float_info<T>::exponent_bits) - 1)
|
1282
|
+
<< dragonbox::float_info<T>::significand_bits;
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
|
1286
|
+
template <typename Char, typename It>
|
1287
|
+
FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
|
1288
|
+
FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
|
1289
|
+
if (exp < 0) {
|
1290
|
+
*it++ = static_cast<Char>('-');
|
1291
|
+
exp = -exp;
|
1292
|
+
} else {
|
1293
|
+
*it++ = static_cast<Char>('+');
|
1294
|
+
}
|
1295
|
+
if (exp >= 100) {
|
1296
|
+
const char* top = digits2(to_unsigned(exp / 100));
|
1297
|
+
if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
|
1298
|
+
*it++ = static_cast<Char>(top[1]);
|
1299
|
+
exp %= 100;
|
1300
|
+
}
|
1301
|
+
const char* d = digits2(to_unsigned(exp));
|
1302
|
+
*it++ = static_cast<Char>(d[0]);
|
1303
|
+
*it++ = static_cast<Char>(d[1]);
|
1304
|
+
return it;
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
template <typename T>
|
1308
|
+
FMT_HEADER_ONLY_CONSTEXPR20 auto format_float(T value, int precision,
|
1309
|
+
float_specs specs,
|
1310
|
+
buffer<char>& buf) -> int;
|
1311
|
+
|
1312
|
+
// Formats a floating-point number with snprintf.
|
1313
|
+
template <typename T>
|
1314
|
+
auto snprintf_float(T value, int precision, float_specs specs,
|
1315
|
+
buffer<char>& buf) -> int;
|
1316
|
+
|
1317
|
+
template <typename T> constexpr auto promote_float(T value) -> T {
|
1318
|
+
return value;
|
1319
|
+
}
|
1320
|
+
constexpr auto promote_float(float value) -> double {
|
1321
|
+
return static_cast<double>(value);
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
template <typename OutputIt, typename Char>
|
1325
|
+
FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n,
|
1326
|
+
const fill_t<Char>& fill) -> OutputIt {
|
1327
|
+
auto fill_size = fill.size();
|
1328
|
+
if (fill_size == 1) return detail::fill_n(it, n, fill[0]);
|
1329
|
+
auto data = fill.data();
|
1330
|
+
for (size_t i = 0; i < n; ++i)
|
1331
|
+
it = copy_str<Char>(data, data + fill_size, it);
|
1332
|
+
return it;
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
// Writes the output of f, padded according to format specifications in specs.
|
1336
|
+
// size: output size in code units.
|
1337
|
+
// width: output display width in (terminal) column positions.
|
1338
|
+
template <align::type align = align::left, typename OutputIt, typename Char,
|
1339
|
+
typename F>
|
1340
|
+
FMT_CONSTEXPR auto write_padded(OutputIt out,
|
1341
|
+
const basic_format_specs<Char>& specs,
|
1342
|
+
size_t size, size_t width, F&& f) -> OutputIt {
|
1343
|
+
static_assert(align == align::left || align == align::right, "");
|
1344
|
+
unsigned spec_width = to_unsigned(specs.width);
|
1345
|
+
size_t padding = spec_width > width ? spec_width - width : 0;
|
1346
|
+
// Shifts are encoded as string literals because static constexpr is not
|
1347
|
+
// supported in constexpr functions.
|
1348
|
+
auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
|
1349
|
+
size_t left_padding = padding >> shifts[specs.align];
|
1350
|
+
size_t right_padding = padding - left_padding;
|
1351
|
+
auto it = reserve(out, size + padding * specs.fill.size());
|
1352
|
+
if (left_padding != 0) it = fill(it, left_padding, specs.fill);
|
1353
|
+
it = f(it);
|
1354
|
+
if (right_padding != 0) it = fill(it, right_padding, specs.fill);
|
1355
|
+
return base_iterator(out, it);
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
template <align::type align = align::left, typename OutputIt, typename Char,
|
1359
|
+
typename F>
|
1360
|
+
constexpr auto write_padded(OutputIt out, const basic_format_specs<Char>& specs,
|
1361
|
+
size_t size, F&& f) -> OutputIt {
|
1362
|
+
return write_padded<align>(out, specs, size, size, f);
|
1363
|
+
}
|
1364
|
+
|
1365
|
+
template <align::type align = align::left, typename Char, typename OutputIt>
|
1366
|
+
FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
|
1367
|
+
const basic_format_specs<Char>& specs)
|
1368
|
+
-> OutputIt {
|
1369
|
+
return write_padded<align>(
|
1370
|
+
out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
|
1371
|
+
const char* data = bytes.data();
|
1372
|
+
return copy_str<Char>(data, data + bytes.size(), it);
|
1373
|
+
});
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
template <typename Char, typename OutputIt, typename UIntPtr>
|
1377
|
+
auto write_ptr(OutputIt out, UIntPtr value,
|
1378
|
+
const basic_format_specs<Char>* specs) -> OutputIt {
|
1379
|
+
int num_digits = count_digits<4>(value);
|
1380
|
+
auto size = to_unsigned(num_digits) + size_t(2);
|
1381
|
+
auto write = [=](reserve_iterator<OutputIt> it) {
|
1382
|
+
*it++ = static_cast<Char>('0');
|
1383
|
+
*it++ = static_cast<Char>('x');
|
1384
|
+
return format_uint<4, Char>(it, value, num_digits);
|
1385
|
+
};
|
1386
|
+
return specs ? write_padded<align::right>(out, *specs, size, write)
|
1387
|
+
: base_iterator(out, write(reserve(out, size)));
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
template <typename Char, typename OutputIt>
|
1391
|
+
FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
|
1392
|
+
const basic_format_specs<Char>& specs)
|
1393
|
+
-> OutputIt {
|
1394
|
+
return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
|
1395
|
+
*it++ = value;
|
1396
|
+
return it;
|
1397
|
+
});
|
1398
|
+
}
|
1399
|
+
template <typename Char, typename OutputIt>
|
1400
|
+
FMT_CONSTEXPR auto write(OutputIt out, Char value,
|
1401
|
+
const basic_format_specs<Char>& specs,
|
1402
|
+
locale_ref loc = {}) -> OutputIt {
|
1403
|
+
return check_char_specs(specs)
|
1404
|
+
? write_char(out, value, specs)
|
1405
|
+
: write(out, static_cast<int>(value), specs, loc);
|
1406
|
+
}
|
1407
|
+
|
1408
|
+
// Data for write_int that doesn't depend on output iterator type. It is used to
|
1409
|
+
// avoid template code bloat.
|
1410
|
+
template <typename Char> struct write_int_data {
|
1411
|
+
size_t size;
|
1412
|
+
size_t padding;
|
1413
|
+
|
1414
|
+
FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
|
1415
|
+
const basic_format_specs<Char>& specs)
|
1416
|
+
: size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
|
1417
|
+
if (specs.align == align::numeric) {
|
1418
|
+
auto width = to_unsigned(specs.width);
|
1419
|
+
if (width > size) {
|
1420
|
+
padding = width - size;
|
1421
|
+
size = width;
|
1422
|
+
}
|
1423
|
+
} else if (specs.precision > num_digits) {
|
1424
|
+
size = (prefix >> 24) + to_unsigned(specs.precision);
|
1425
|
+
padding = to_unsigned(specs.precision - num_digits);
|
1426
|
+
}
|
1427
|
+
}
|
1428
|
+
};
|
1429
|
+
|
1430
|
+
// Writes an integer in the format
|
1431
|
+
// <left-padding><prefix><numeric-padding><digits><right-padding>
|
1432
|
+
// where <digits> are written by write_digits(it).
|
1433
|
+
// prefix contains chars in three lower bytes and the size in the fourth byte.
|
1434
|
+
template <typename OutputIt, typename Char, typename W>
|
1435
|
+
FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
|
1436
|
+
unsigned prefix,
|
1437
|
+
const basic_format_specs<Char>& specs,
|
1438
|
+
W write_digits) -> OutputIt {
|
1439
|
+
// Slightly faster check for specs.width == 0 && specs.precision == -1.
|
1440
|
+
if ((specs.width | (specs.precision + 1)) == 0) {
|
1441
|
+
auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
|
1442
|
+
if (prefix != 0) {
|
1443
|
+
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
1444
|
+
*it++ = static_cast<Char>(p & 0xff);
|
1445
|
+
}
|
1446
|
+
return base_iterator(out, write_digits(it));
|
1447
|
+
}
|
1448
|
+
auto data = write_int_data<Char>(num_digits, prefix, specs);
|
1449
|
+
return write_padded<align::right>(
|
1450
|
+
out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
|
1451
|
+
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
1452
|
+
*it++ = static_cast<Char>(p & 0xff);
|
1453
|
+
it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
|
1454
|
+
return write_digits(it);
|
1455
|
+
});
|
1456
|
+
}
|
1457
|
+
|
1458
|
+
template <typename Char> class digit_grouping {
|
1459
|
+
private:
|
1460
|
+
thousands_sep_result<Char> sep_;
|
1461
|
+
|
1462
|
+
struct next_state {
|
1463
|
+
std::string::const_iterator group;
|
1464
|
+
int pos;
|
1465
|
+
};
|
1466
|
+
next_state initial_state() const { return {sep_.grouping.begin(), 0}; }
|
1467
|
+
|
1468
|
+
// Returns the next digit group separator position.
|
1469
|
+
int next(next_state& state) const {
|
1470
|
+
if (!sep_.thousands_sep) return max_value<int>();
|
1471
|
+
if (state.group == sep_.grouping.end())
|
1472
|
+
return state.pos += sep_.grouping.back();
|
1473
|
+
if (*state.group <= 0 || *state.group == max_value<char>())
|
1474
|
+
return max_value<int>();
|
1475
|
+
state.pos += *state.group++;
|
1476
|
+
return state.pos;
|
1477
|
+
}
|
1478
|
+
|
1479
|
+
public:
|
1480
|
+
explicit digit_grouping(locale_ref loc, bool localized = true) {
|
1481
|
+
if (localized)
|
1482
|
+
sep_ = thousands_sep<Char>(loc);
|
1483
|
+
else
|
1484
|
+
sep_.thousands_sep = Char();
|
1485
|
+
}
|
1486
|
+
explicit digit_grouping(thousands_sep_result<Char> sep) : sep_(sep) {}
|
1487
|
+
|
1488
|
+
Char separator() const { return sep_.thousands_sep; }
|
1489
|
+
|
1490
|
+
int count_separators(int num_digits) const {
|
1491
|
+
int count = 0;
|
1492
|
+
auto state = initial_state();
|
1493
|
+
while (num_digits > next(state)) ++count;
|
1494
|
+
return count;
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
// Applies grouping to digits and write the output to out.
|
1498
|
+
template <typename Out, typename C>
|
1499
|
+
Out apply(Out out, basic_string_view<C> digits) const {
|
1500
|
+
auto num_digits = static_cast<int>(digits.size());
|
1501
|
+
auto separators = basic_memory_buffer<int>();
|
1502
|
+
separators.push_back(0);
|
1503
|
+
auto state = initial_state();
|
1504
|
+
while (int i = next(state)) {
|
1505
|
+
if (i >= num_digits) break;
|
1506
|
+
separators.push_back(i);
|
1507
|
+
}
|
1508
|
+
for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
|
1509
|
+
i < num_digits; ++i) {
|
1510
|
+
if (num_digits - i == separators[sep_index]) {
|
1511
|
+
*out++ = separator();
|
1512
|
+
--sep_index;
|
1513
|
+
}
|
1514
|
+
*out++ = static_cast<Char>(digits[to_unsigned(i)]);
|
1515
|
+
}
|
1516
|
+
return out;
|
1517
|
+
}
|
1518
|
+
};
|
1519
|
+
|
1520
|
+
template <typename OutputIt, typename UInt, typename Char>
|
1521
|
+
auto write_int_localized(OutputIt out, UInt value, unsigned prefix,
|
1522
|
+
const basic_format_specs<Char>& specs,
|
1523
|
+
const digit_grouping<Char>& grouping) -> OutputIt {
|
1524
|
+
static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
|
1525
|
+
int num_digits = count_digits(value);
|
1526
|
+
char digits[40];
|
1527
|
+
format_decimal(digits, value, num_digits);
|
1528
|
+
unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits +
|
1529
|
+
grouping.count_separators(num_digits));
|
1530
|
+
return write_padded<align::right>(
|
1531
|
+
out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
|
1532
|
+
if (prefix != 0) *it++ = static_cast<Char>(prefix);
|
1533
|
+
return grouping.apply(it, string_view(digits, to_unsigned(num_digits)));
|
1534
|
+
});
|
1535
|
+
}
|
1536
|
+
|
1537
|
+
template <typename OutputIt, typename UInt, typename Char>
|
1538
|
+
auto write_int_localized(OutputIt& out, UInt value, unsigned prefix,
|
1539
|
+
const basic_format_specs<Char>& specs, locale_ref loc)
|
1540
|
+
-> bool {
|
1541
|
+
auto grouping = digit_grouping<Char>(loc);
|
1542
|
+
out = write_int_localized(out, value, prefix, specs, grouping);
|
1543
|
+
return true;
|
1544
|
+
}
|
1545
|
+
|
1546
|
+
FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
|
1547
|
+
prefix |= prefix != 0 ? value << 8 : value;
|
1548
|
+
prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
template <typename UInt> struct write_int_arg {
|
1552
|
+
UInt abs_value;
|
1553
|
+
unsigned prefix;
|
1554
|
+
};
|
1555
|
+
|
1556
|
+
template <typename T>
|
1557
|
+
FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
|
1558
|
+
-> write_int_arg<uint32_or_64_or_128_t<T>> {
|
1559
|
+
auto prefix = 0u;
|
1560
|
+
auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
|
1561
|
+
if (is_negative(value)) {
|
1562
|
+
prefix = 0x01000000 | '-';
|
1563
|
+
abs_value = 0 - abs_value;
|
1564
|
+
} else {
|
1565
|
+
constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
|
1566
|
+
0x1000000u | ' '};
|
1567
|
+
prefix = prefixes[sign];
|
1568
|
+
}
|
1569
|
+
return {abs_value, prefix};
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
template <typename Char, typename OutputIt, typename T>
|
1573
|
+
FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
|
1574
|
+
const basic_format_specs<Char>& specs,
|
1575
|
+
locale_ref loc) -> OutputIt {
|
1576
|
+
static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
|
1577
|
+
auto abs_value = arg.abs_value;
|
1578
|
+
auto prefix = arg.prefix;
|
1579
|
+
switch (specs.type) {
|
1580
|
+
case presentation_type::none:
|
1581
|
+
case presentation_type::dec: {
|
1582
|
+
if (specs.localized &&
|
1583
|
+
write_int_localized(out, static_cast<uint64_or_128_t<T>>(abs_value),
|
1584
|
+
prefix, specs, loc)) {
|
1585
|
+
return out;
|
1586
|
+
}
|
1587
|
+
auto num_digits = count_digits(abs_value);
|
1588
|
+
return write_int(
|
1589
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
1590
|
+
return format_decimal<Char>(it, abs_value, num_digits).end;
|
1591
|
+
});
|
1592
|
+
}
|
1593
|
+
case presentation_type::hex_lower:
|
1594
|
+
case presentation_type::hex_upper: {
|
1595
|
+
bool upper = specs.type == presentation_type::hex_upper;
|
1596
|
+
if (specs.alt)
|
1597
|
+
prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
|
1598
|
+
int num_digits = count_digits<4>(abs_value);
|
1599
|
+
return write_int(
|
1600
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
1601
|
+
return format_uint<4, Char>(it, abs_value, num_digits, upper);
|
1602
|
+
});
|
1603
|
+
}
|
1604
|
+
case presentation_type::bin_lower:
|
1605
|
+
case presentation_type::bin_upper: {
|
1606
|
+
bool upper = specs.type == presentation_type::bin_upper;
|
1607
|
+
if (specs.alt)
|
1608
|
+
prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
|
1609
|
+
int num_digits = count_digits<1>(abs_value);
|
1610
|
+
return write_int(out, num_digits, prefix, specs,
|
1611
|
+
[=](reserve_iterator<OutputIt> it) {
|
1612
|
+
return format_uint<1, Char>(it, abs_value, num_digits);
|
1613
|
+
});
|
1614
|
+
}
|
1615
|
+
case presentation_type::oct: {
|
1616
|
+
int num_digits = count_digits<3>(abs_value);
|
1617
|
+
// Octal prefix '0' is counted as a digit, so only add it if precision
|
1618
|
+
// is not greater than the number of digits.
|
1619
|
+
if (specs.alt && specs.precision <= num_digits && abs_value != 0)
|
1620
|
+
prefix_append(prefix, '0');
|
1621
|
+
return write_int(out, num_digits, prefix, specs,
|
1622
|
+
[=](reserve_iterator<OutputIt> it) {
|
1623
|
+
return format_uint<3, Char>(it, abs_value, num_digits);
|
1624
|
+
});
|
1625
|
+
}
|
1626
|
+
case presentation_type::chr:
|
1627
|
+
return write_char(out, static_cast<Char>(abs_value), specs);
|
1628
|
+
default:
|
1629
|
+
throw_format_error("invalid type specifier");
|
1630
|
+
}
|
1631
|
+
return out;
|
1632
|
+
}
|
1633
|
+
template <typename Char, typename OutputIt, typename T>
|
1634
|
+
FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(
|
1635
|
+
OutputIt out, write_int_arg<T> arg, const basic_format_specs<Char>& specs,
|
1636
|
+
locale_ref loc) -> OutputIt {
|
1637
|
+
return write_int(out, arg, specs, loc);
|
1638
|
+
}
|
1639
|
+
template <typename Char, typename OutputIt, typename T,
|
1640
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
1641
|
+
!std::is_same<T, bool>::value &&
|
1642
|
+
std::is_same<OutputIt, buffer_appender<Char>>::value)>
|
1643
|
+
FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
|
1644
|
+
const basic_format_specs<Char>& specs,
|
1645
|
+
locale_ref loc) -> OutputIt {
|
1646
|
+
return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs,
|
1647
|
+
loc);
|
1648
|
+
}
|
1649
|
+
// An inlined version of write used in format string compilation.
|
1650
|
+
template <typename Char, typename OutputIt, typename T,
|
1651
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
1652
|
+
!std::is_same<T, bool>::value &&
|
1653
|
+
!std::is_same<OutputIt, buffer_appender<Char>>::value)>
|
1654
|
+
FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
|
1655
|
+
const basic_format_specs<Char>& specs,
|
1656
|
+
locale_ref loc) -> OutputIt {
|
1657
|
+
return write_int(out, make_write_int_arg(value, specs.sign), specs, loc);
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
template <typename Char, typename OutputIt>
|
1661
|
+
FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
|
1662
|
+
const basic_format_specs<Char>& specs) -> OutputIt {
|
1663
|
+
auto data = s.data();
|
1664
|
+
auto size = s.size();
|
1665
|
+
if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
|
1666
|
+
size = code_point_index(s, to_unsigned(specs.precision));
|
1667
|
+
auto width =
|
1668
|
+
specs.width != 0 ? compute_width(basic_string_view<Char>(data, size)) : 0;
|
1669
|
+
return write_padded(out, specs, size, width,
|
1670
|
+
[=](reserve_iterator<OutputIt> it) {
|
1671
|
+
return copy_str<Char>(data, data + size, it);
|
1672
|
+
});
|
1673
|
+
}
|
1674
|
+
template <typename Char, typename OutputIt>
|
1675
|
+
FMT_CONSTEXPR auto write(OutputIt out,
|
1676
|
+
basic_string_view<type_identity_t<Char>> s,
|
1677
|
+
const basic_format_specs<Char>& specs, locale_ref)
|
1678
|
+
-> OutputIt {
|
1679
|
+
check_string_type_spec(specs.type);
|
1680
|
+
return write(out, s, specs);
|
1681
|
+
}
|
1682
|
+
template <typename Char, typename OutputIt>
|
1683
|
+
FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
|
1684
|
+
const basic_format_specs<Char>& specs, locale_ref)
|
1685
|
+
-> OutputIt {
|
1686
|
+
return check_cstring_type_spec(specs.type)
|
1687
|
+
? write(out, basic_string_view<Char>(s), specs, {})
|
1688
|
+
: write_ptr<Char>(out, to_uintptr(s), &specs);
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
template <typename Char, typename OutputIt>
|
1692
|
+
FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isinf,
|
1693
|
+
basic_format_specs<Char> specs,
|
1694
|
+
const float_specs& fspecs) -> OutputIt {
|
1695
|
+
auto str =
|
1696
|
+
isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
|
1697
|
+
constexpr size_t str_size = 3;
|
1698
|
+
auto sign = fspecs.sign;
|
1699
|
+
auto size = str_size + (sign ? 1 : 0);
|
1700
|
+
// Replace '0'-padding with space for non-finite values.
|
1701
|
+
const bool is_zero_fill =
|
1702
|
+
specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0');
|
1703
|
+
if (is_zero_fill) specs.fill[0] = static_cast<Char>(' ');
|
1704
|
+
return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) {
|
1705
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
1706
|
+
return copy_str<Char>(str, str + str_size, it);
|
1707
|
+
});
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
// A decimal floating-point number significand * pow(10, exp).
|
1711
|
+
struct big_decimal_fp {
|
1712
|
+
const char* significand;
|
1713
|
+
int significand_size;
|
1714
|
+
int exponent;
|
1715
|
+
};
|
1716
|
+
|
1717
|
+
constexpr auto get_significand_size(const big_decimal_fp& fp) -> int {
|
1718
|
+
return fp.significand_size;
|
1719
|
+
}
|
1720
|
+
template <typename T>
|
1721
|
+
inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
|
1722
|
+
return count_digits(fp.significand);
|
1723
|
+
}
|
1724
|
+
|
1725
|
+
template <typename Char, typename OutputIt>
|
1726
|
+
constexpr auto write_significand(OutputIt out, const char* significand,
|
1727
|
+
int significand_size) -> OutputIt {
|
1728
|
+
return copy_str<Char>(significand, significand + significand_size, out);
|
1729
|
+
}
|
1730
|
+
template <typename Char, typename OutputIt, typename UInt>
|
1731
|
+
inline auto write_significand(OutputIt out, UInt significand,
|
1732
|
+
int significand_size) -> OutputIt {
|
1733
|
+
return format_decimal<Char>(out, significand, significand_size).end;
|
1734
|
+
}
|
1735
|
+
template <typename Char, typename OutputIt, typename T, typename Grouping>
|
1736
|
+
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
|
1737
|
+
int significand_size, int exponent,
|
1738
|
+
const Grouping& grouping) -> OutputIt {
|
1739
|
+
if (!grouping.separator()) {
|
1740
|
+
out = write_significand<Char>(out, significand, significand_size);
|
1741
|
+
return detail::fill_n(out, exponent, static_cast<Char>('0'));
|
1742
|
+
}
|
1743
|
+
auto buffer = memory_buffer();
|
1744
|
+
write_significand<char>(appender(buffer), significand, significand_size);
|
1745
|
+
detail::fill_n(appender(buffer), exponent, '0');
|
1746
|
+
return grouping.apply(out, string_view(buffer.data(), buffer.size()));
|
1747
|
+
}
|
1748
|
+
|
1749
|
+
template <typename Char, typename UInt,
|
1750
|
+
FMT_ENABLE_IF(std::is_integral<UInt>::value)>
|
1751
|
+
inline auto write_significand(Char* out, UInt significand, int significand_size,
|
1752
|
+
int integral_size, Char decimal_point) -> Char* {
|
1753
|
+
if (!decimal_point)
|
1754
|
+
return format_decimal(out, significand, significand_size).end;
|
1755
|
+
out += significand_size + 1;
|
1756
|
+
Char* end = out;
|
1757
|
+
int floating_size = significand_size - integral_size;
|
1758
|
+
for (int i = floating_size / 2; i > 0; --i) {
|
1759
|
+
out -= 2;
|
1760
|
+
copy2(out, digits2(significand % 100));
|
1761
|
+
significand /= 100;
|
1762
|
+
}
|
1763
|
+
if (floating_size % 2 != 0) {
|
1764
|
+
*--out = static_cast<Char>('0' + significand % 10);
|
1765
|
+
significand /= 10;
|
1766
|
+
}
|
1767
|
+
*--out = decimal_point;
|
1768
|
+
format_decimal(out - integral_size, significand, integral_size);
|
1769
|
+
return end;
|
1770
|
+
}
|
1771
|
+
|
1772
|
+
template <typename OutputIt, typename UInt, typename Char,
|
1773
|
+
FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
|
1774
|
+
inline auto write_significand(OutputIt out, UInt significand,
|
1775
|
+
int significand_size, int integral_size,
|
1776
|
+
Char decimal_point) -> OutputIt {
|
1777
|
+
// Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
|
1778
|
+
Char buffer[digits10<UInt>() + 2];
|
1779
|
+
auto end = write_significand(buffer, significand, significand_size,
|
1780
|
+
integral_size, decimal_point);
|
1781
|
+
return detail::copy_str_noinline<Char>(buffer, end, out);
|
1782
|
+
}
|
1783
|
+
|
1784
|
+
template <typename OutputIt, typename Char>
|
1785
|
+
FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
|
1786
|
+
int significand_size, int integral_size,
|
1787
|
+
Char decimal_point) -> OutputIt {
|
1788
|
+
out = detail::copy_str_noinline<Char>(significand,
|
1789
|
+
significand + integral_size, out);
|
1790
|
+
if (!decimal_point) return out;
|
1791
|
+
*out++ = decimal_point;
|
1792
|
+
return detail::copy_str_noinline<Char>(significand + integral_size,
|
1793
|
+
significand + significand_size, out);
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
template <typename OutputIt, typename Char, typename T, typename Grouping>
|
1797
|
+
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
|
1798
|
+
int significand_size, int integral_size,
|
1799
|
+
Char decimal_point,
|
1800
|
+
const Grouping& grouping) -> OutputIt {
|
1801
|
+
if (!grouping.separator()) {
|
1802
|
+
return write_significand(out, significand, significand_size, integral_size,
|
1803
|
+
decimal_point);
|
1804
|
+
}
|
1805
|
+
auto buffer = basic_memory_buffer<Char>();
|
1806
|
+
write_significand(buffer_appender<Char>(buffer), significand,
|
1807
|
+
significand_size, integral_size, decimal_point);
|
1808
|
+
grouping.apply(
|
1809
|
+
out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
|
1810
|
+
return detail::copy_str_noinline<Char>(buffer.data() + integral_size,
|
1811
|
+
buffer.end(), out);
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
template <typename OutputIt, typename DecimalFP, typename Char,
|
1815
|
+
typename Grouping = digit_grouping<Char>>
|
1816
|
+
FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& fp,
|
1817
|
+
const basic_format_specs<Char>& specs,
|
1818
|
+
float_specs fspecs, locale_ref loc)
|
1819
|
+
-> OutputIt {
|
1820
|
+
auto significand = fp.significand;
|
1821
|
+
int significand_size = get_significand_size(fp);
|
1822
|
+
constexpr Char zero = static_cast<Char>('0');
|
1823
|
+
auto sign = fspecs.sign;
|
1824
|
+
size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
|
1825
|
+
using iterator = reserve_iterator<OutputIt>;
|
1826
|
+
|
1827
|
+
Char decimal_point =
|
1828
|
+
fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
|
1829
|
+
|
1830
|
+
int output_exp = fp.exponent + significand_size - 1;
|
1831
|
+
auto use_exp_format = [=]() {
|
1832
|
+
if (fspecs.format == float_format::exp) return true;
|
1833
|
+
if (fspecs.format != float_format::general) return false;
|
1834
|
+
// Use the fixed notation if the exponent is in [exp_lower, exp_upper),
|
1835
|
+
// e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
|
1836
|
+
const int exp_lower = -4, exp_upper = 16;
|
1837
|
+
return output_exp < exp_lower ||
|
1838
|
+
output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
|
1839
|
+
};
|
1840
|
+
if (use_exp_format()) {
|
1841
|
+
int num_zeros = 0;
|
1842
|
+
if (fspecs.showpoint) {
|
1843
|
+
num_zeros = fspecs.precision - significand_size;
|
1844
|
+
if (num_zeros < 0) num_zeros = 0;
|
1845
|
+
size += to_unsigned(num_zeros);
|
1846
|
+
} else if (significand_size == 1) {
|
1847
|
+
decimal_point = Char();
|
1848
|
+
}
|
1849
|
+
auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
|
1850
|
+
int exp_digits = 2;
|
1851
|
+
if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
|
1852
|
+
|
1853
|
+
size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
|
1854
|
+
char exp_char = fspecs.upper ? 'E' : 'e';
|
1855
|
+
auto write = [=](iterator it) {
|
1856
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
1857
|
+
// Insert a decimal point after the first digit and add an exponent.
|
1858
|
+
it = write_significand(it, significand, significand_size, 1,
|
1859
|
+
decimal_point);
|
1860
|
+
if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
|
1861
|
+
*it++ = static_cast<Char>(exp_char);
|
1862
|
+
return write_exponent<Char>(output_exp, it);
|
1863
|
+
};
|
1864
|
+
return specs.width > 0 ? write_padded<align::right>(out, specs, size, write)
|
1865
|
+
: base_iterator(out, write(reserve(out, size)));
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
int exp = fp.exponent + significand_size;
|
1869
|
+
if (fp.exponent >= 0) {
|
1870
|
+
// 1234e5 -> 123400000[.0+]
|
1871
|
+
size += to_unsigned(fp.exponent);
|
1872
|
+
int num_zeros = fspecs.precision - exp;
|
1873
|
+
#ifdef FMT_FUZZ
|
1874
|
+
if (num_zeros > 5000)
|
1875
|
+
throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
|
1876
|
+
#endif
|
1877
|
+
if (fspecs.showpoint) {
|
1878
|
+
if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
|
1879
|
+
if (num_zeros > 0) size += to_unsigned(num_zeros) + 1;
|
1880
|
+
}
|
1881
|
+
auto grouping = Grouping(loc, fspecs.locale);
|
1882
|
+
size += to_unsigned(grouping.count_separators(significand_size));
|
1883
|
+
return write_padded<align::right>(out, specs, size, [&](iterator it) {
|
1884
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
1885
|
+
it = write_significand<Char>(it, significand, significand_size,
|
1886
|
+
fp.exponent, grouping);
|
1887
|
+
if (!fspecs.showpoint) return it;
|
1888
|
+
*it++ = decimal_point;
|
1889
|
+
return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
|
1890
|
+
});
|
1891
|
+
} else if (exp > 0) {
|
1892
|
+
// 1234e-2 -> 12.34[0+]
|
1893
|
+
int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
|
1894
|
+
size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
|
1895
|
+
auto grouping = Grouping(loc, fspecs.locale);
|
1896
|
+
size += to_unsigned(grouping.count_separators(significand_size));
|
1897
|
+
return write_padded<align::right>(out, specs, size, [&](iterator it) {
|
1898
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
1899
|
+
it = write_significand(it, significand, significand_size, exp,
|
1900
|
+
decimal_point, grouping);
|
1901
|
+
return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
|
1902
|
+
});
|
1903
|
+
}
|
1904
|
+
// 1234e-6 -> 0.001234
|
1905
|
+
int num_zeros = -exp;
|
1906
|
+
if (significand_size == 0 && fspecs.precision >= 0 &&
|
1907
|
+
fspecs.precision < num_zeros) {
|
1908
|
+
num_zeros = fspecs.precision;
|
1909
|
+
}
|
1910
|
+
bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
|
1911
|
+
size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
|
1912
|
+
return write_padded<align::right>(out, specs, size, [&](iterator it) {
|
1913
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
1914
|
+
*it++ = zero;
|
1915
|
+
if (!pointy) return it;
|
1916
|
+
*it++ = decimal_point;
|
1917
|
+
it = detail::fill_n(it, num_zeros, zero);
|
1918
|
+
return write_significand<Char>(it, significand, significand_size);
|
1919
|
+
});
|
1920
|
+
}
|
1921
|
+
|
1922
|
+
template <typename Char> class fallback_digit_grouping {
|
1923
|
+
public:
|
1924
|
+
constexpr fallback_digit_grouping(locale_ref, bool) {}
|
1925
|
+
|
1926
|
+
constexpr Char separator() const { return Char(); }
|
1927
|
+
|
1928
|
+
constexpr int count_separators(int) const { return 0; }
|
1929
|
+
|
1930
|
+
template <typename Out, typename C>
|
1931
|
+
constexpr Out apply(Out out, basic_string_view<C>) const {
|
1932
|
+
return out;
|
1933
|
+
}
|
1934
|
+
};
|
1935
|
+
|
1936
|
+
template <typename OutputIt, typename DecimalFP, typename Char>
|
1937
|
+
FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& fp,
|
1938
|
+
const basic_format_specs<Char>& specs,
|
1939
|
+
float_specs fspecs, locale_ref loc)
|
1940
|
+
-> OutputIt {
|
1941
|
+
if (is_constant_evaluated()) {
|
1942
|
+
return do_write_float<OutputIt, DecimalFP, Char,
|
1943
|
+
fallback_digit_grouping<Char>>(out, fp, specs, fspecs,
|
1944
|
+
loc);
|
1945
|
+
} else {
|
1946
|
+
return do_write_float(out, fp, specs, fspecs, loc);
|
1947
|
+
}
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
|
1951
|
+
FMT_CONSTEXPR20 bool isinf(T value) {
|
1952
|
+
if (is_constant_evaluated()) {
|
1953
|
+
#if defined(__cpp_if_constexpr)
|
1954
|
+
if constexpr (std::numeric_limits<double>::is_iec559) {
|
1955
|
+
auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
|
1956
|
+
constexpr auto significand_bits =
|
1957
|
+
dragonbox::float_info<double>::significand_bits;
|
1958
|
+
return (bits & exponent_mask<double>()) &&
|
1959
|
+
!(bits & ((uint64_t(1) << significand_bits) - 1));
|
1960
|
+
}
|
1961
|
+
#endif
|
1962
|
+
}
|
1963
|
+
return std::isinf(value);
|
1964
|
+
}
|
1965
|
+
|
1966
|
+
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
|
1967
|
+
FMT_CONSTEXPR20 bool isfinite(T value) {
|
1968
|
+
if (is_constant_evaluated()) {
|
1969
|
+
#if defined(__cpp_if_constexpr)
|
1970
|
+
if constexpr (std::numeric_limits<double>::is_iec559) {
|
1971
|
+
auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
|
1972
|
+
return (bits & exponent_mask<double>()) != exponent_mask<double>();
|
1973
|
+
}
|
1974
|
+
#endif
|
1975
|
+
}
|
1976
|
+
return std::isfinite(value);
|
1977
|
+
}
|
1978
|
+
|
1979
|
+
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
|
1980
|
+
FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
|
1981
|
+
if (is_constant_evaluated()) {
|
1982
|
+
#ifdef __cpp_if_constexpr
|
1983
|
+
if constexpr (std::numeric_limits<double>::is_iec559) {
|
1984
|
+
auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
|
1985
|
+
return (bits & (uint64_t(1) << (num_bits<uint64_t>() - 1))) != 0;
|
1986
|
+
}
|
1987
|
+
#endif
|
1988
|
+
}
|
1989
|
+
return std::signbit(value);
|
1990
|
+
}
|
1991
|
+
|
1992
|
+
template <typename Char, typename OutputIt, typename T,
|
1993
|
+
FMT_ENABLE_IF(std::is_floating_point<T>::value)>
|
1994
|
+
FMT_CONSTEXPR20 auto write(OutputIt out, T value,
|
1995
|
+
basic_format_specs<Char> specs, locale_ref loc = {})
|
1996
|
+
-> OutputIt {
|
1997
|
+
if (const_check(!is_supported_floating_point(value))) return out;
|
1998
|
+
float_specs fspecs = parse_float_type_spec(specs);
|
1999
|
+
fspecs.sign = specs.sign;
|
2000
|
+
if (detail::signbit(value)) { // value < 0 is false for NaN so use signbit.
|
2001
|
+
fspecs.sign = sign::minus;
|
2002
|
+
value = -value;
|
2003
|
+
} else if (fspecs.sign == sign::minus) {
|
2004
|
+
fspecs.sign = sign::none;
|
2005
|
+
}
|
2006
|
+
|
2007
|
+
if (!detail::isfinite(value))
|
2008
|
+
return write_nonfinite(out, detail::isinf(value), specs, fspecs);
|
2009
|
+
|
2010
|
+
if (specs.align == align::numeric && fspecs.sign) {
|
2011
|
+
auto it = reserve(out, 1);
|
2012
|
+
*it++ = detail::sign<Char>(fspecs.sign);
|
2013
|
+
out = base_iterator(out, it);
|
2014
|
+
fspecs.sign = sign::none;
|
2015
|
+
if (specs.width != 0) --specs.width;
|
2016
|
+
}
|
2017
|
+
|
2018
|
+
memory_buffer buffer;
|
2019
|
+
if (fspecs.format == float_format::hex) {
|
2020
|
+
if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign));
|
2021
|
+
snprintf_float(promote_float(value), specs.precision, fspecs, buffer);
|
2022
|
+
return write_bytes<align::right>(out, {buffer.data(), buffer.size()},
|
2023
|
+
specs);
|
2024
|
+
}
|
2025
|
+
int precision = specs.precision >= 0 || specs.type == presentation_type::none
|
2026
|
+
? specs.precision
|
2027
|
+
: 6;
|
2028
|
+
if (fspecs.format == float_format::exp) {
|
2029
|
+
if (precision == max_value<int>())
|
2030
|
+
throw_format_error("number is too big");
|
2031
|
+
else
|
2032
|
+
++precision;
|
2033
|
+
}
|
2034
|
+
if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
|
2035
|
+
if (!is_fast_float<T>()) fspecs.fallback = true;
|
2036
|
+
int exp = format_float(promote_float(value), precision, fspecs, buffer);
|
2037
|
+
fspecs.precision = precision;
|
2038
|
+
auto fp = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
|
2039
|
+
return write_float(out, fp, specs, fspecs, loc);
|
2040
|
+
}
|
2041
|
+
|
2042
|
+
template <typename Char, typename OutputIt, typename T,
|
2043
|
+
FMT_ENABLE_IF(is_fast_float<T>::value)>
|
2044
|
+
FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
|
2045
|
+
if (is_constant_evaluated()) {
|
2046
|
+
return write(out, value, basic_format_specs<Char>());
|
2047
|
+
}
|
2048
|
+
|
2049
|
+
if (const_check(!is_supported_floating_point(value))) return out;
|
2050
|
+
|
2051
|
+
using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
|
2052
|
+
using uint = typename dragonbox::float_info<floaty>::carrier_uint;
|
2053
|
+
auto bits = bit_cast<uint>(value);
|
2054
|
+
|
2055
|
+
auto fspecs = float_specs();
|
2056
|
+
if (detail::signbit(value)) {
|
2057
|
+
fspecs.sign = sign::minus;
|
2058
|
+
value = -value;
|
2059
|
+
}
|
2060
|
+
|
2061
|
+
constexpr auto specs = basic_format_specs<Char>();
|
2062
|
+
uint mask = exponent_mask<floaty>();
|
2063
|
+
if ((bits & mask) == mask)
|
2064
|
+
return write_nonfinite(out, std::isinf(value), specs, fspecs);
|
2065
|
+
|
2066
|
+
auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
|
2067
|
+
return write_float(out, dec, specs, fspecs, {});
|
2068
|
+
}
|
2069
|
+
|
2070
|
+
template <typename Char, typename OutputIt, typename T,
|
2071
|
+
FMT_ENABLE_IF(std::is_floating_point<T>::value &&
|
2072
|
+
!is_fast_float<T>::value)>
|
2073
|
+
inline auto write(OutputIt out, T value) -> OutputIt {
|
2074
|
+
return write(out, value, basic_format_specs<Char>());
|
2075
|
+
}
|
2076
|
+
|
2077
|
+
template <typename Char, typename OutputIt>
|
2078
|
+
auto write(OutputIt out, monostate, basic_format_specs<Char> = {},
|
2079
|
+
locale_ref = {}) -> OutputIt {
|
2080
|
+
FMT_ASSERT(false, "");
|
2081
|
+
return out;
|
2082
|
+
}
|
2083
|
+
|
2084
|
+
template <typename Char, typename OutputIt>
|
2085
|
+
FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
|
2086
|
+
-> OutputIt {
|
2087
|
+
auto it = reserve(out, value.size());
|
2088
|
+
it = copy_str_noinline<Char>(value.begin(), value.end(), it);
|
2089
|
+
return base_iterator(out, it);
|
2090
|
+
}
|
2091
|
+
|
2092
|
+
template <typename Char, typename OutputIt, typename T,
|
2093
|
+
FMT_ENABLE_IF(is_string<T>::value)>
|
2094
|
+
constexpr auto write(OutputIt out, const T& value) -> OutputIt {
|
2095
|
+
return write<Char>(out, to_string_view(value));
|
2096
|
+
}
|
2097
|
+
|
2098
|
+
template <typename Char, typename OutputIt, typename T,
|
2099
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
2100
|
+
!std::is_same<T, bool>::value &&
|
2101
|
+
!std::is_same<T, Char>::value)>
|
2102
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
|
2103
|
+
auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
|
2104
|
+
bool negative = is_negative(value);
|
2105
|
+
// Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
|
2106
|
+
if (negative) abs_value = ~abs_value + 1;
|
2107
|
+
int num_digits = count_digits(abs_value);
|
2108
|
+
auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
|
2109
|
+
auto it = reserve(out, size);
|
2110
|
+
if (auto ptr = to_pointer<Char>(it, size)) {
|
2111
|
+
if (negative) *ptr++ = static_cast<Char>('-');
|
2112
|
+
format_decimal<Char>(ptr, abs_value, num_digits);
|
2113
|
+
return out;
|
2114
|
+
}
|
2115
|
+
if (negative) *it++ = static_cast<Char>('-');
|
2116
|
+
it = format_decimal<Char>(it, abs_value, num_digits).end;
|
2117
|
+
return base_iterator(out, it);
|
2118
|
+
}
|
2119
|
+
|
2120
|
+
// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
|
2121
|
+
template <
|
2122
|
+
typename Char, typename OutputIt, typename T,
|
2123
|
+
bool check =
|
2124
|
+
std::is_enum<T>::value && !std::is_same<T, Char>::value &&
|
2125
|
+
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
|
2126
|
+
type::custom_type,
|
2127
|
+
FMT_ENABLE_IF(check)>
|
2128
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
|
2129
|
+
return write<Char>(
|
2130
|
+
out, static_cast<typename std::underlying_type<T>::type>(value));
|
2131
|
+
}
|
2132
|
+
|
2133
|
+
template <typename Char, typename OutputIt, typename T,
|
2134
|
+
FMT_ENABLE_IF(std::is_same<T, bool>::value)>
|
2135
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value,
|
2136
|
+
const basic_format_specs<Char>& specs = {},
|
2137
|
+
locale_ref = {}) -> OutputIt {
|
2138
|
+
return specs.type != presentation_type::none &&
|
2139
|
+
specs.type != presentation_type::string
|
2140
|
+
? write(out, value ? 1 : 0, specs, {})
|
2141
|
+
: write_bytes(out, value ? "true" : "false", specs);
|
2142
|
+
}
|
2143
|
+
|
2144
|
+
template <typename Char, typename OutputIt>
|
2145
|
+
FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
|
2146
|
+
auto it = reserve(out, 1);
|
2147
|
+
*it++ = value;
|
2148
|
+
return base_iterator(out, it);
|
2149
|
+
}
|
2150
|
+
|
2151
|
+
template <typename Char, typename OutputIt>
|
2152
|
+
FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
|
2153
|
+
-> OutputIt {
|
2154
|
+
if (!value) {
|
2155
|
+
throw_format_error("string pointer is null");
|
2156
|
+
} else {
|
2157
|
+
out = write(out, basic_string_view<Char>(value));
|
2158
|
+
}
|
2159
|
+
return out;
|
2160
|
+
}
|
2161
|
+
|
2162
|
+
template <typename Char, typename OutputIt, typename T,
|
2163
|
+
FMT_ENABLE_IF(std::is_same<T, void>::value)>
|
2164
|
+
auto write(OutputIt out, const T* value,
|
2165
|
+
const basic_format_specs<Char>& specs = {}, locale_ref = {})
|
2166
|
+
-> OutputIt {
|
2167
|
+
check_pointer_type_spec(specs.type, error_handler());
|
2168
|
+
return write_ptr<Char>(out, to_uintptr(value), &specs);
|
2169
|
+
}
|
2170
|
+
|
2171
|
+
// A write overload that handles implicit conversions.
|
2172
|
+
template <typename Char, typename OutputIt, typename T,
|
2173
|
+
typename Context = basic_format_context<OutputIt, Char>>
|
2174
|
+
FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
|
2175
|
+
std::is_class<T>::value && !is_string<T>::value &&
|
2176
|
+
!std::is_same<T, Char>::value &&
|
2177
|
+
!std::is_same<const T&,
|
2178
|
+
decltype(arg_mapper<Context>().map(value))>::value,
|
2179
|
+
OutputIt> {
|
2180
|
+
return write<Char>(out, arg_mapper<Context>().map(value));
|
2181
|
+
}
|
2182
|
+
|
2183
|
+
template <typename Char, typename OutputIt, typename T,
|
2184
|
+
typename Context = basic_format_context<OutputIt, Char>>
|
2185
|
+
FMT_CONSTEXPR auto write(OutputIt out, const T& value)
|
2186
|
+
-> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type,
|
2187
|
+
OutputIt> {
|
2188
|
+
using formatter_type =
|
2189
|
+
conditional_t<has_formatter<T, Context>::value,
|
2190
|
+
typename Context::template formatter_type<T>,
|
2191
|
+
fallback_formatter<T, Char>>;
|
2192
|
+
auto ctx = Context(out, {}, {});
|
2193
|
+
return formatter_type().format(value, ctx);
|
2194
|
+
}
|
2195
|
+
|
2196
|
+
// An argument visitor that formats the argument and writes it via the output
|
2197
|
+
// iterator. It's a class and not a generic lambda for compatibility with C++11.
|
2198
|
+
template <typename Char> struct default_arg_formatter {
|
2199
|
+
using iterator = buffer_appender<Char>;
|
2200
|
+
using context = buffer_context<Char>;
|
2201
|
+
|
2202
|
+
iterator out;
|
2203
|
+
basic_format_args<context> args;
|
2204
|
+
locale_ref loc;
|
2205
|
+
|
2206
|
+
template <typename T> auto operator()(T value) -> iterator {
|
2207
|
+
return write<Char>(out, value);
|
2208
|
+
}
|
2209
|
+
auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
|
2210
|
+
basic_format_parse_context<Char> parse_ctx({});
|
2211
|
+
context format_ctx(out, args, loc);
|
2212
|
+
h.format(parse_ctx, format_ctx);
|
2213
|
+
return format_ctx.out();
|
2214
|
+
}
|
2215
|
+
};
|
2216
|
+
|
2217
|
+
template <typename Char> struct arg_formatter {
|
2218
|
+
using iterator = buffer_appender<Char>;
|
2219
|
+
using context = buffer_context<Char>;
|
2220
|
+
|
2221
|
+
iterator out;
|
2222
|
+
const basic_format_specs<Char>& specs;
|
2223
|
+
locale_ref locale;
|
2224
|
+
|
2225
|
+
template <typename T>
|
2226
|
+
FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
|
2227
|
+
return detail::write(out, value, specs, locale);
|
2228
|
+
}
|
2229
|
+
auto operator()(typename basic_format_arg<context>::handle) -> iterator {
|
2230
|
+
// User-defined types are handled separately because they require access
|
2231
|
+
// to the parse context.
|
2232
|
+
return out;
|
2233
|
+
}
|
2234
|
+
};
|
2235
|
+
|
2236
|
+
template <typename Char> struct custom_formatter {
|
2237
|
+
basic_format_parse_context<Char>& parse_ctx;
|
2238
|
+
buffer_context<Char>& ctx;
|
2239
|
+
|
2240
|
+
void operator()(
|
2241
|
+
typename basic_format_arg<buffer_context<Char>>::handle h) const {
|
2242
|
+
h.format(parse_ctx, ctx);
|
2243
|
+
}
|
2244
|
+
template <typename T> void operator()(T) const {}
|
2245
|
+
};
|
2246
|
+
|
2247
|
+
template <typename T>
|
2248
|
+
using is_integer =
|
2249
|
+
bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
|
2250
|
+
!std::is_same<T, char>::value &&
|
2251
|
+
!std::is_same<T, wchar_t>::value>;
|
2252
|
+
|
2253
|
+
template <typename ErrorHandler> class width_checker {
|
2254
|
+
public:
|
2255
|
+
explicit FMT_CONSTEXPR width_checker(ErrorHandler& eh) : handler_(eh) {}
|
2256
|
+
|
2257
|
+
template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
|
2258
|
+
FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
|
2259
|
+
if (is_negative(value)) handler_.on_error("negative width");
|
2260
|
+
return static_cast<unsigned long long>(value);
|
2261
|
+
}
|
2262
|
+
|
2263
|
+
template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
|
2264
|
+
FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
|
2265
|
+
handler_.on_error("width is not integer");
|
2266
|
+
return 0;
|
2267
|
+
}
|
2268
|
+
|
2269
|
+
private:
|
2270
|
+
ErrorHandler& handler_;
|
2271
|
+
};
|
2272
|
+
|
2273
|
+
template <typename ErrorHandler> class precision_checker {
|
2274
|
+
public:
|
2275
|
+
explicit FMT_CONSTEXPR precision_checker(ErrorHandler& eh) : handler_(eh) {}
|
2276
|
+
|
2277
|
+
template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
|
2278
|
+
FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
|
2279
|
+
if (is_negative(value)) handler_.on_error("negative precision");
|
2280
|
+
return static_cast<unsigned long long>(value);
|
2281
|
+
}
|
2282
|
+
|
2283
|
+
template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
|
2284
|
+
FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
|
2285
|
+
handler_.on_error("precision is not integer");
|
2286
|
+
return 0;
|
2287
|
+
}
|
2288
|
+
|
2289
|
+
private:
|
2290
|
+
ErrorHandler& handler_;
|
2291
|
+
};
|
2292
|
+
|
2293
|
+
template <template <typename> class Handler, typename FormatArg,
|
2294
|
+
typename ErrorHandler>
|
2295
|
+
FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int {
|
2296
|
+
unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg);
|
2297
|
+
if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big");
|
2298
|
+
return static_cast<int>(value);
|
2299
|
+
}
|
2300
|
+
|
2301
|
+
template <typename Context, typename ID>
|
2302
|
+
FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) ->
|
2303
|
+
typename Context::format_arg {
|
2304
|
+
auto arg = ctx.arg(id);
|
2305
|
+
if (!arg) ctx.on_error("argument not found");
|
2306
|
+
return arg;
|
2307
|
+
}
|
2308
|
+
|
2309
|
+
// The standard format specifier handler with checking.
|
2310
|
+
template <typename Char> class specs_handler : public specs_setter<Char> {
|
2311
|
+
private:
|
2312
|
+
basic_format_parse_context<Char>& parse_context_;
|
2313
|
+
buffer_context<Char>& context_;
|
2314
|
+
|
2315
|
+
// This is only needed for compatibility with gcc 4.4.
|
2316
|
+
using format_arg = basic_format_arg<buffer_context<Char>>;
|
2317
|
+
|
2318
|
+
FMT_CONSTEXPR auto get_arg(auto_id) -> format_arg {
|
2319
|
+
return detail::get_arg(context_, parse_context_.next_arg_id());
|
2320
|
+
}
|
2321
|
+
|
2322
|
+
FMT_CONSTEXPR auto get_arg(int arg_id) -> format_arg {
|
2323
|
+
parse_context_.check_arg_id(arg_id);
|
2324
|
+
return detail::get_arg(context_, arg_id);
|
2325
|
+
}
|
2326
|
+
|
2327
|
+
FMT_CONSTEXPR auto get_arg(basic_string_view<Char> arg_id) -> format_arg {
|
2328
|
+
parse_context_.check_arg_id(arg_id);
|
2329
|
+
return detail::get_arg(context_, arg_id);
|
2330
|
+
}
|
2331
|
+
|
2332
|
+
public:
|
2333
|
+
FMT_CONSTEXPR specs_handler(basic_format_specs<Char>& specs,
|
2334
|
+
basic_format_parse_context<Char>& parse_ctx,
|
2335
|
+
buffer_context<Char>& ctx)
|
2336
|
+
: specs_setter<Char>(specs), parse_context_(parse_ctx), context_(ctx) {}
|
2337
|
+
|
2338
|
+
template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
|
2339
|
+
this->specs_.width = get_dynamic_spec<width_checker>(
|
2340
|
+
get_arg(arg_id), context_.error_handler());
|
2341
|
+
}
|
2342
|
+
|
2343
|
+
template <typename Id> FMT_CONSTEXPR void on_dynamic_precision(Id arg_id) {
|
2344
|
+
this->specs_.precision = get_dynamic_spec<precision_checker>(
|
2345
|
+
get_arg(arg_id), context_.error_handler());
|
2346
|
+
}
|
2347
|
+
|
2348
|
+
void on_error(const char* message) { context_.on_error(message); }
|
2349
|
+
};
|
2350
|
+
|
2351
|
+
template <template <typename> class Handler, typename Context>
|
2352
|
+
FMT_CONSTEXPR void handle_dynamic_spec(int& value,
|
2353
|
+
arg_ref<typename Context::char_type> ref,
|
2354
|
+
Context& ctx) {
|
2355
|
+
switch (ref.kind) {
|
2356
|
+
case arg_id_kind::none:
|
2357
|
+
break;
|
2358
|
+
case arg_id_kind::index:
|
2359
|
+
value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index),
|
2360
|
+
ctx.error_handler());
|
2361
|
+
break;
|
2362
|
+
case arg_id_kind::name:
|
2363
|
+
value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
|
2364
|
+
ctx.error_handler());
|
2365
|
+
break;
|
2366
|
+
}
|
2367
|
+
}
|
2368
|
+
|
2369
|
+
#define FMT_STRING_IMPL(s, base, explicit) \
|
2370
|
+
[] { \
|
2371
|
+
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
|
2372
|
+
/* Use a macro-like name to avoid shadowing warnings. */ \
|
2373
|
+
struct FMT_GCC_VISIBILITY_HIDDEN FMT_COMPILE_STRING : base { \
|
2374
|
+
using char_type = fmt::remove_cvref_t<decltype(s[0])>; \
|
2375
|
+
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
|
2376
|
+
operator fmt::basic_string_view<char_type>() const { \
|
2377
|
+
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
|
2378
|
+
} \
|
2379
|
+
}; \
|
2380
|
+
return FMT_COMPILE_STRING(); \
|
2381
|
+
}()
|
2382
|
+
|
2383
|
+
/**
|
2384
|
+
\rst
|
2385
|
+
Constructs a compile-time format string from a string literal *s*.
|
2386
|
+
|
2387
|
+
**Example**::
|
2388
|
+
|
2389
|
+
// A compile-time error because 'd' is an invalid specifier for strings.
|
2390
|
+
std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
|
2391
|
+
\endrst
|
2392
|
+
*/
|
2393
|
+
#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string, )
|
2394
|
+
|
2395
|
+
#if FMT_USE_USER_DEFINED_LITERALS
|
2396
|
+
template <typename Char> struct udl_formatter {
|
2397
|
+
basic_string_view<Char> str;
|
2398
|
+
|
2399
|
+
template <typename... T>
|
2400
|
+
auto operator()(T&&... args) const -> std::basic_string<Char> {
|
2401
|
+
return vformat(str, fmt::make_args_checked<T...>(str, args...));
|
2402
|
+
}
|
2403
|
+
};
|
2404
|
+
|
2405
|
+
# if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
2406
|
+
template <typename T, typename Char, size_t N,
|
2407
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
2408
|
+
struct statically_named_arg : view {
|
2409
|
+
static constexpr auto name = Str.data;
|
2410
|
+
|
2411
|
+
const T& value;
|
2412
|
+
statically_named_arg(const T& v) : value(v) {}
|
2413
|
+
};
|
2414
|
+
|
2415
|
+
template <typename T, typename Char, size_t N,
|
2416
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
2417
|
+
struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
|
2418
|
+
|
2419
|
+
template <typename T, typename Char, size_t N,
|
2420
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
2421
|
+
struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
|
2422
|
+
: std::true_type {};
|
2423
|
+
|
2424
|
+
template <typename Char, size_t N,
|
2425
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
2426
|
+
struct udl_arg {
|
2427
|
+
template <typename T> auto operator=(T&& value) const {
|
2428
|
+
return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
|
2429
|
+
}
|
2430
|
+
};
|
2431
|
+
# else
|
2432
|
+
template <typename Char> struct udl_arg {
|
2433
|
+
const Char* str;
|
2434
|
+
|
2435
|
+
template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
|
2436
|
+
return {str, std::forward<T>(value)};
|
2437
|
+
}
|
2438
|
+
};
|
2439
|
+
# endif
|
2440
|
+
#endif // FMT_USE_USER_DEFINED_LITERALS
|
2441
|
+
|
2442
|
+
template <typename Locale, typename Char>
|
2443
|
+
auto vformat(const Locale& loc, basic_string_view<Char> format_str,
|
2444
|
+
basic_format_args<buffer_context<type_identity_t<Char>>> args)
|
2445
|
+
-> std::basic_string<Char> {
|
2446
|
+
basic_memory_buffer<Char> buffer;
|
2447
|
+
detail::vformat_to(buffer, format_str, args, detail::locale_ref(loc));
|
2448
|
+
return {buffer.data(), buffer.size()};
|
2449
|
+
}
|
2450
|
+
|
2451
|
+
using format_func = void (*)(detail::buffer<char>&, int, const char*);
|
2452
|
+
|
2453
|
+
FMT_API void format_error_code(buffer<char>& out, int error_code,
|
2454
|
+
string_view message) FMT_NOEXCEPT;
|
2455
|
+
|
2456
|
+
FMT_API void report_error(format_func func, int error_code,
|
2457
|
+
const char* message) FMT_NOEXCEPT;
|
2458
|
+
FMT_END_DETAIL_NAMESPACE
|
2459
|
+
|
2460
|
+
FMT_API auto vsystem_error(int error_code, string_view format_str,
|
2461
|
+
format_args args) -> std::system_error;
|
2462
|
+
|
2463
|
+
/**
|
2464
|
+
\rst
|
2465
|
+
Constructs :class:`std::system_error` with a message formatted with
|
2466
|
+
``fmt::format(fmt, args...)``.
|
2467
|
+
*error_code* is a system error code as given by ``errno``.
|
2468
|
+
|
2469
|
+
**Example**::
|
2470
|
+
|
2471
|
+
// This throws std::system_error with the description
|
2472
|
+
// cannot open file 'madeup': No such file or directory
|
2473
|
+
// or similar (system message may vary).
|
2474
|
+
const char* filename = "madeup";
|
2475
|
+
std::FILE* file = std::fopen(filename, "r");
|
2476
|
+
if (!file)
|
2477
|
+
throw fmt::system_error(errno, "cannot open file '{}'", filename);
|
2478
|
+
\endrst
|
2479
|
+
*/
|
2480
|
+
template <typename... T>
|
2481
|
+
auto system_error(int error_code, format_string<T...> fmt, T&&... args)
|
2482
|
+
-> std::system_error {
|
2483
|
+
return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
|
2484
|
+
}
|
2485
|
+
|
2486
|
+
/**
|
2487
|
+
\rst
|
2488
|
+
Formats an error message for an error returned by an operating system or a
|
2489
|
+
language runtime, for example a file opening error, and writes it to *out*.
|
2490
|
+
The format is the same as the one used by ``std::system_error(ec, message)``
|
2491
|
+
where ``ec`` is ``std::error_code(error_code, std::generic_category()})``.
|
2492
|
+
It is implementation-defined but normally looks like:
|
2493
|
+
|
2494
|
+
.. parsed-literal::
|
2495
|
+
*<message>*: *<system-message>*
|
2496
|
+
|
2497
|
+
where *<message>* is the passed message and *<system-message>* is the system
|
2498
|
+
message corresponding to the error code.
|
2499
|
+
*error_code* is a system error code as given by ``errno``.
|
2500
|
+
\endrst
|
2501
|
+
*/
|
2502
|
+
FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
|
2503
|
+
const char* message) FMT_NOEXCEPT;
|
2504
|
+
|
2505
|
+
// Reports a system error without throwing an exception.
|
2506
|
+
// Can be used to report errors from destructors.
|
2507
|
+
FMT_API void report_system_error(int error_code,
|
2508
|
+
const char* message) FMT_NOEXCEPT;
|
2509
|
+
|
2510
|
+
/** Fast integer formatter. */
|
2511
|
+
class format_int {
|
2512
|
+
private:
|
2513
|
+
// Buffer should be large enough to hold all digits (digits10 + 1),
|
2514
|
+
// a sign and a null character.
|
2515
|
+
enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
|
2516
|
+
mutable char buffer_[buffer_size];
|
2517
|
+
char* str_;
|
2518
|
+
|
2519
|
+
template <typename UInt> auto format_unsigned(UInt value) -> char* {
|
2520
|
+
auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
|
2521
|
+
return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
|
2522
|
+
}
|
2523
|
+
|
2524
|
+
template <typename Int> auto format_signed(Int value) -> char* {
|
2525
|
+
auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
|
2526
|
+
bool negative = value < 0;
|
2527
|
+
if (negative) abs_value = 0 - abs_value;
|
2528
|
+
auto begin = format_unsigned(abs_value);
|
2529
|
+
if (negative) *--begin = '-';
|
2530
|
+
return begin;
|
2531
|
+
}
|
2532
|
+
|
2533
|
+
public:
|
2534
|
+
explicit format_int(int value) : str_(format_signed(value)) {}
|
2535
|
+
explicit format_int(long value) : str_(format_signed(value)) {}
|
2536
|
+
explicit format_int(long long value) : str_(format_signed(value)) {}
|
2537
|
+
explicit format_int(unsigned value) : str_(format_unsigned(value)) {}
|
2538
|
+
explicit format_int(unsigned long value) : str_(format_unsigned(value)) {}
|
2539
|
+
explicit format_int(unsigned long long value)
|
2540
|
+
: str_(format_unsigned(value)) {}
|
2541
|
+
|
2542
|
+
/** Returns the number of characters written to the output buffer. */
|
2543
|
+
auto size() const -> size_t {
|
2544
|
+
return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
|
2545
|
+
}
|
2546
|
+
|
2547
|
+
/**
|
2548
|
+
Returns a pointer to the output buffer content. No terminating null
|
2549
|
+
character is appended.
|
2550
|
+
*/
|
2551
|
+
auto data() const -> const char* { return str_; }
|
2552
|
+
|
2553
|
+
/**
|
2554
|
+
Returns a pointer to the output buffer content with terminating null
|
2555
|
+
character appended.
|
2556
|
+
*/
|
2557
|
+
auto c_str() const -> const char* {
|
2558
|
+
buffer_[buffer_size - 1] = '\0';
|
2559
|
+
return str_;
|
2560
|
+
}
|
2561
|
+
|
2562
|
+
/**
|
2563
|
+
\rst
|
2564
|
+
Returns the content of the output buffer as an ``std::string``.
|
2565
|
+
\endrst
|
2566
|
+
*/
|
2567
|
+
auto str() const -> std::string { return std::string(str_, size()); }
|
2568
|
+
};
|
2569
|
+
|
2570
|
+
template <typename T, typename Char>
|
2571
|
+
template <typename FormatContext>
|
2572
|
+
FMT_CONSTEXPR FMT_INLINE auto
|
2573
|
+
formatter<T, Char,
|
2574
|
+
enable_if_t<detail::type_constant<T, Char>::value !=
|
2575
|
+
detail::type::custom_type>>::format(const T& val,
|
2576
|
+
FormatContext& ctx)
|
2577
|
+
const -> decltype(ctx.out()) {
|
2578
|
+
if (specs_.width_ref.kind != detail::arg_id_kind::none ||
|
2579
|
+
specs_.precision_ref.kind != detail::arg_id_kind::none) {
|
2580
|
+
auto specs = specs_;
|
2581
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs.width,
|
2582
|
+
specs.width_ref, ctx);
|
2583
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
2584
|
+
specs.precision, specs.precision_ref, ctx);
|
2585
|
+
return detail::write<Char>(ctx.out(), val, specs, ctx.locale());
|
2586
|
+
}
|
2587
|
+
return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
|
2588
|
+
}
|
2589
|
+
|
2590
|
+
#define FMT_FORMAT_AS(Type, Base) \
|
2591
|
+
template <typename Char> \
|
2592
|
+
struct formatter<Type, Char> : formatter<Base, Char> { \
|
2593
|
+
template <typename FormatContext> \
|
2594
|
+
auto format(Type const& val, FormatContext& ctx) const \
|
2595
|
+
-> decltype(ctx.out()) { \
|
2596
|
+
return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
|
2597
|
+
} \
|
2598
|
+
}
|
2599
|
+
|
2600
|
+
FMT_FORMAT_AS(signed char, int);
|
2601
|
+
FMT_FORMAT_AS(unsigned char, unsigned);
|
2602
|
+
FMT_FORMAT_AS(short, int);
|
2603
|
+
FMT_FORMAT_AS(unsigned short, unsigned);
|
2604
|
+
FMT_FORMAT_AS(long, long long);
|
2605
|
+
FMT_FORMAT_AS(unsigned long, unsigned long long);
|
2606
|
+
FMT_FORMAT_AS(Char*, const Char*);
|
2607
|
+
FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
|
2608
|
+
FMT_FORMAT_AS(std::nullptr_t, const void*);
|
2609
|
+
FMT_FORMAT_AS(detail::byte, unsigned char);
|
2610
|
+
FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
|
2611
|
+
|
2612
|
+
template <typename Char>
|
2613
|
+
struct formatter<void*, Char> : formatter<const void*, Char> {
|
2614
|
+
template <typename FormatContext>
|
2615
|
+
auto format(void* val, FormatContext& ctx) const -> decltype(ctx.out()) {
|
2616
|
+
return formatter<const void*, Char>::format(val, ctx);
|
2617
|
+
}
|
2618
|
+
};
|
2619
|
+
|
2620
|
+
template <typename Char, size_t N>
|
2621
|
+
struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
|
2622
|
+
template <typename FormatContext>
|
2623
|
+
FMT_CONSTEXPR auto format(const Char* val, FormatContext& ctx) const
|
2624
|
+
-> decltype(ctx.out()) {
|
2625
|
+
return formatter<basic_string_view<Char>, Char>::format(val, ctx);
|
2626
|
+
}
|
2627
|
+
};
|
2628
|
+
|
2629
|
+
// A formatter for types known only at run time such as variant alternatives.
|
2630
|
+
//
|
2631
|
+
// Usage:
|
2632
|
+
// using variant = std::variant<int, std::string>;
|
2633
|
+
// template <>
|
2634
|
+
// struct formatter<variant>: dynamic_formatter<> {
|
2635
|
+
// auto format(const variant& v, format_context& ctx) {
|
2636
|
+
// return visit([&](const auto& val) {
|
2637
|
+
// return dynamic_formatter<>::format(val, ctx);
|
2638
|
+
// }, v);
|
2639
|
+
// }
|
2640
|
+
// };
|
2641
|
+
template <typename Char = char> class dynamic_formatter {
|
2642
|
+
private:
|
2643
|
+
detail::dynamic_format_specs<Char> specs_;
|
2644
|
+
const Char* format_str_;
|
2645
|
+
|
2646
|
+
struct null_handler : detail::error_handler {
|
2647
|
+
void on_align(align_t) {}
|
2648
|
+
void on_sign(sign_t) {}
|
2649
|
+
void on_hash() {}
|
2650
|
+
};
|
2651
|
+
|
2652
|
+
template <typename Context> void handle_specs(Context& ctx) {
|
2653
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
|
2654
|
+
specs_.width_ref, ctx);
|
2655
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
2656
|
+
specs_.precision, specs_.precision_ref, ctx);
|
2657
|
+
}
|
2658
|
+
|
2659
|
+
public:
|
2660
|
+
template <typename ParseContext>
|
2661
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
2662
|
+
format_str_ = ctx.begin();
|
2663
|
+
// Checks are deferred to formatting time when the argument type is known.
|
2664
|
+
detail::dynamic_specs_handler<ParseContext> handler(specs_, ctx);
|
2665
|
+
return detail::parse_format_specs(ctx.begin(), ctx.end(), handler);
|
2666
|
+
}
|
2667
|
+
|
2668
|
+
template <typename T, typename FormatContext>
|
2669
|
+
auto format(const T& val, FormatContext& ctx) -> decltype(ctx.out()) {
|
2670
|
+
handle_specs(ctx);
|
2671
|
+
detail::specs_checker<null_handler> checker(
|
2672
|
+
null_handler(), detail::mapped_type_constant<T, FormatContext>::value);
|
2673
|
+
checker.on_align(specs_.align);
|
2674
|
+
if (specs_.sign != sign::none) checker.on_sign(specs_.sign);
|
2675
|
+
if (specs_.alt) checker.on_hash();
|
2676
|
+
if (specs_.precision >= 0) checker.end_precision();
|
2677
|
+
return detail::write<Char>(ctx.out(), val, specs_, ctx.locale());
|
2678
|
+
}
|
2679
|
+
};
|
2680
|
+
|
2681
|
+
/**
|
2682
|
+
\rst
|
2683
|
+
Converts ``p`` to ``const void*`` for pointer formatting.
|
2684
|
+
|
2685
|
+
**Example**::
|
2686
|
+
|
2687
|
+
auto s = fmt::format("{}", fmt::ptr(p));
|
2688
|
+
\endrst
|
2689
|
+
*/
|
2690
|
+
template <typename T> auto ptr(T p) -> const void* {
|
2691
|
+
static_assert(std::is_pointer<T>::value, "");
|
2692
|
+
return detail::bit_cast<const void*>(p);
|
2693
|
+
}
|
2694
|
+
template <typename T> auto ptr(const std::unique_ptr<T>& p) -> const void* {
|
2695
|
+
return p.get();
|
2696
|
+
}
|
2697
|
+
template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* {
|
2698
|
+
return p.get();
|
2699
|
+
}
|
2700
|
+
|
2701
|
+
class bytes {
|
2702
|
+
private:
|
2703
|
+
string_view data_;
|
2704
|
+
friend struct formatter<bytes>;
|
2705
|
+
|
2706
|
+
public:
|
2707
|
+
explicit bytes(string_view data) : data_(data) {}
|
2708
|
+
};
|
2709
|
+
|
2710
|
+
template <> struct formatter<bytes> {
|
2711
|
+
private:
|
2712
|
+
detail::dynamic_format_specs<char> specs_;
|
2713
|
+
|
2714
|
+
public:
|
2715
|
+
template <typename ParseContext>
|
2716
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
2717
|
+
using handler_type = detail::dynamic_specs_handler<ParseContext>;
|
2718
|
+
detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
|
2719
|
+
detail::type::string_type);
|
2720
|
+
auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
|
2721
|
+
detail::check_string_type_spec(specs_.type, ctx.error_handler());
|
2722
|
+
return it;
|
2723
|
+
}
|
2724
|
+
|
2725
|
+
template <typename FormatContext>
|
2726
|
+
auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) {
|
2727
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
|
2728
|
+
specs_.width_ref, ctx);
|
2729
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
2730
|
+
specs_.precision, specs_.precision_ref, ctx);
|
2731
|
+
return detail::write_bytes(ctx.out(), b.data_, specs_);
|
2732
|
+
}
|
2733
|
+
};
|
2734
|
+
|
2735
|
+
// group_digits_view is not derived from view because it copies the argument.
|
2736
|
+
template <typename T> struct group_digits_view { T value; };
|
2737
|
+
|
2738
|
+
/**
|
2739
|
+
\rst
|
2740
|
+
Returns a view that formats an integer value using ',' as a locale-independent
|
2741
|
+
thousands separator.
|
2742
|
+
|
2743
|
+
**Example**::
|
2744
|
+
|
2745
|
+
fmt::print("{}", fmt::group_digits(12345));
|
2746
|
+
// Output: "12,345"
|
2747
|
+
\endrst
|
2748
|
+
*/
|
2749
|
+
template <typename T> auto group_digits(T value) -> group_digits_view<T> {
|
2750
|
+
return {value};
|
2751
|
+
}
|
2752
|
+
|
2753
|
+
template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
|
2754
|
+
private:
|
2755
|
+
detail::dynamic_format_specs<char> specs_;
|
2756
|
+
|
2757
|
+
public:
|
2758
|
+
template <typename ParseContext>
|
2759
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
2760
|
+
using handler_type = detail::dynamic_specs_handler<ParseContext>;
|
2761
|
+
detail::specs_checker<handler_type> handler(handler_type(specs_, ctx),
|
2762
|
+
detail::type::int_type);
|
2763
|
+
auto it = parse_format_specs(ctx.begin(), ctx.end(), handler);
|
2764
|
+
detail::check_string_type_spec(specs_.type, ctx.error_handler());
|
2765
|
+
return it;
|
2766
|
+
}
|
2767
|
+
|
2768
|
+
template <typename FormatContext>
|
2769
|
+
auto format(group_digits_view<T> t, FormatContext& ctx)
|
2770
|
+
-> decltype(ctx.out()) {
|
2771
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs_.width,
|
2772
|
+
specs_.width_ref, ctx);
|
2773
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
2774
|
+
specs_.precision, specs_.precision_ref, ctx);
|
2775
|
+
return detail::write_int_localized(
|
2776
|
+
ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_,
|
2777
|
+
detail::digit_grouping<char>({"\3", ','}));
|
2778
|
+
}
|
2779
|
+
};
|
2780
|
+
|
2781
|
+
template <typename It, typename Sentinel, typename Char = char>
|
2782
|
+
struct join_view : detail::view {
|
2783
|
+
It begin;
|
2784
|
+
Sentinel end;
|
2785
|
+
basic_string_view<Char> sep;
|
2786
|
+
|
2787
|
+
join_view(It b, Sentinel e, basic_string_view<Char> s)
|
2788
|
+
: begin(b), end(e), sep(s) {}
|
2789
|
+
};
|
2790
|
+
|
2791
|
+
template <typename It, typename Sentinel, typename Char>
|
2792
|
+
using arg_join FMT_DEPRECATED_ALIAS = join_view<It, Sentinel, Char>;
|
2793
|
+
|
2794
|
+
template <typename It, typename Sentinel, typename Char>
|
2795
|
+
struct formatter<join_view<It, Sentinel, Char>, Char> {
|
2796
|
+
private:
|
2797
|
+
using value_type =
|
2798
|
+
#ifdef __cpp_lib_ranges
|
2799
|
+
std::iter_value_t<It>;
|
2800
|
+
#else
|
2801
|
+
typename std::iterator_traits<It>::value_type;
|
2802
|
+
#endif
|
2803
|
+
using context = buffer_context<Char>;
|
2804
|
+
using mapper = detail::arg_mapper<context>;
|
2805
|
+
|
2806
|
+
template <typename T, FMT_ENABLE_IF(has_formatter<T, context>::value)>
|
2807
|
+
static auto map(const T& value) -> const T& {
|
2808
|
+
return value;
|
2809
|
+
}
|
2810
|
+
template <typename T, FMT_ENABLE_IF(!has_formatter<T, context>::value)>
|
2811
|
+
static auto map(const T& value) -> decltype(mapper().map(value)) {
|
2812
|
+
return mapper().map(value);
|
2813
|
+
}
|
2814
|
+
|
2815
|
+
using formatter_type =
|
2816
|
+
conditional_t<is_formattable<value_type, Char>::value,
|
2817
|
+
formatter<remove_cvref_t<decltype(map(
|
2818
|
+
std::declval<const value_type&>()))>,
|
2819
|
+
Char>,
|
2820
|
+
detail::fallback_formatter<value_type, Char>>;
|
2821
|
+
|
2822
|
+
formatter_type value_formatter_;
|
2823
|
+
|
2824
|
+
public:
|
2825
|
+
template <typename ParseContext>
|
2826
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
2827
|
+
return value_formatter_.parse(ctx);
|
2828
|
+
}
|
2829
|
+
|
2830
|
+
template <typename FormatContext>
|
2831
|
+
auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx)
|
2832
|
+
-> decltype(ctx.out()) {
|
2833
|
+
auto it = value.begin;
|
2834
|
+
auto out = ctx.out();
|
2835
|
+
if (it != value.end) {
|
2836
|
+
out = value_formatter_.format(map(*it), ctx);
|
2837
|
+
++it;
|
2838
|
+
while (it != value.end) {
|
2839
|
+
out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out);
|
2840
|
+
ctx.advance_to(out);
|
2841
|
+
out = value_formatter_.format(map(*it), ctx);
|
2842
|
+
++it;
|
2843
|
+
}
|
2844
|
+
}
|
2845
|
+
return out;
|
2846
|
+
}
|
2847
|
+
};
|
2848
|
+
|
2849
|
+
/**
|
2850
|
+
Returns a view that formats the iterator range `[begin, end)` with elements
|
2851
|
+
separated by `sep`.
|
2852
|
+
*/
|
2853
|
+
template <typename It, typename Sentinel>
|
2854
|
+
auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> {
|
2855
|
+
return {begin, end, sep};
|
2856
|
+
}
|
2857
|
+
|
2858
|
+
/**
|
2859
|
+
\rst
|
2860
|
+
Returns a view that formats `range` with elements separated by `sep`.
|
2861
|
+
|
2862
|
+
**Example**::
|
2863
|
+
|
2864
|
+
std::vector<int> v = {1, 2, 3};
|
2865
|
+
fmt::print("{}", fmt::join(v, ", "));
|
2866
|
+
// Output: "1, 2, 3"
|
2867
|
+
|
2868
|
+
``fmt::join`` applies passed format specifiers to the range elements::
|
2869
|
+
|
2870
|
+
fmt::print("{:02}", fmt::join(v, ", "));
|
2871
|
+
// Output: "01, 02, 03"
|
2872
|
+
\endrst
|
2873
|
+
*/
|
2874
|
+
template <typename Range>
|
2875
|
+
auto join(Range&& range, string_view sep)
|
2876
|
+
-> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> {
|
2877
|
+
return join(std::begin(range), std::end(range), sep);
|
2878
|
+
}
|
2879
|
+
|
2880
|
+
/**
|
2881
|
+
\rst
|
2882
|
+
Converts *value* to ``std::string`` using the default format for type *T*.
|
2883
|
+
|
2884
|
+
**Example**::
|
2885
|
+
|
2886
|
+
#include <fmt/format.h>
|
2887
|
+
|
2888
|
+
std::string answer = fmt::to_string(42);
|
2889
|
+
\endrst
|
2890
|
+
*/
|
2891
|
+
template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
|
2892
|
+
inline auto to_string(const T& value) -> std::string {
|
2893
|
+
auto result = std::string();
|
2894
|
+
detail::write<char>(std::back_inserter(result), value);
|
2895
|
+
return result;
|
2896
|
+
}
|
2897
|
+
|
2898
|
+
template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
|
2899
|
+
FMT_NODISCARD inline auto to_string(T value) -> std::string {
|
2900
|
+
// The buffer should be large enough to store the number including the sign
|
2901
|
+
// or "false" for bool.
|
2902
|
+
constexpr int max_size = detail::digits10<T>() + 2;
|
2903
|
+
char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
|
2904
|
+
char* begin = buffer;
|
2905
|
+
return std::string(begin, detail::write<char>(begin, value));
|
2906
|
+
}
|
2907
|
+
|
2908
|
+
template <typename Char, size_t SIZE>
|
2909
|
+
FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
|
2910
|
+
-> std::basic_string<Char> {
|
2911
|
+
auto size = buf.size();
|
2912
|
+
detail::assume(size < std::basic_string<Char>().max_size());
|
2913
|
+
return std::basic_string<Char>(buf.data(), size);
|
2914
|
+
}
|
2915
|
+
|
2916
|
+
FMT_BEGIN_DETAIL_NAMESPACE
|
2917
|
+
|
2918
|
+
template <typename Char>
|
2919
|
+
void vformat_to(
|
2920
|
+
buffer<Char>& buf, basic_string_view<Char> fmt,
|
2921
|
+
basic_format_args<FMT_BUFFER_CONTEXT(type_identity_t<Char>)> args,
|
2922
|
+
locale_ref loc) {
|
2923
|
+
// workaround for msvc bug regarding name-lookup in module
|
2924
|
+
// link names into function scope
|
2925
|
+
using detail::arg_formatter;
|
2926
|
+
using detail::buffer_appender;
|
2927
|
+
using detail::custom_formatter;
|
2928
|
+
using detail::default_arg_formatter;
|
2929
|
+
using detail::get_arg;
|
2930
|
+
using detail::locale_ref;
|
2931
|
+
using detail::parse_format_specs;
|
2932
|
+
using detail::specs_checker;
|
2933
|
+
using detail::specs_handler;
|
2934
|
+
using detail::to_unsigned;
|
2935
|
+
using detail::type;
|
2936
|
+
using detail::write;
|
2937
|
+
auto out = buffer_appender<Char>(buf);
|
2938
|
+
if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
|
2939
|
+
auto arg = args.get(0);
|
2940
|
+
if (!arg) error_handler().on_error("argument not found");
|
2941
|
+
visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg);
|
2942
|
+
return;
|
2943
|
+
}
|
2944
|
+
|
2945
|
+
struct format_handler : error_handler {
|
2946
|
+
basic_format_parse_context<Char> parse_context;
|
2947
|
+
buffer_context<Char> context;
|
2948
|
+
|
2949
|
+
format_handler(buffer_appender<Char> out, basic_string_view<Char> str,
|
2950
|
+
basic_format_args<buffer_context<Char>> args, locale_ref loc)
|
2951
|
+
: parse_context(str), context(out, args, loc) {}
|
2952
|
+
|
2953
|
+
void on_text(const Char* begin, const Char* end) {
|
2954
|
+
auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
|
2955
|
+
context.advance_to(write<Char>(context.out(), text));
|
2956
|
+
}
|
2957
|
+
|
2958
|
+
FMT_CONSTEXPR auto on_arg_id() -> int {
|
2959
|
+
return parse_context.next_arg_id();
|
2960
|
+
}
|
2961
|
+
FMT_CONSTEXPR auto on_arg_id(int id) -> int {
|
2962
|
+
return parse_context.check_arg_id(id), id;
|
2963
|
+
}
|
2964
|
+
FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
|
2965
|
+
int arg_id = context.arg_id(id);
|
2966
|
+
if (arg_id < 0) on_error("argument not found");
|
2967
|
+
return arg_id;
|
2968
|
+
}
|
2969
|
+
|
2970
|
+
FMT_INLINE void on_replacement_field(int id, const Char*) {
|
2971
|
+
auto arg = get_arg(context, id);
|
2972
|
+
context.advance_to(visit_format_arg(
|
2973
|
+
default_arg_formatter<Char>{context.out(), context.args(),
|
2974
|
+
context.locale()},
|
2975
|
+
arg));
|
2976
|
+
}
|
2977
|
+
|
2978
|
+
auto on_format_specs(int id, const Char* begin, const Char* end)
|
2979
|
+
-> const Char* {
|
2980
|
+
auto arg = get_arg(context, id);
|
2981
|
+
if (arg.type() == type::custom_type) {
|
2982
|
+
parse_context.advance_to(parse_context.begin() +
|
2983
|
+
(begin - &*parse_context.begin()));
|
2984
|
+
visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
|
2985
|
+
return parse_context.begin();
|
2986
|
+
}
|
2987
|
+
auto specs = basic_format_specs<Char>();
|
2988
|
+
specs_checker<specs_handler<Char>> handler(
|
2989
|
+
specs_handler<Char>(specs, parse_context, context), arg.type());
|
2990
|
+
begin = parse_format_specs(begin, end, handler);
|
2991
|
+
if (begin == end || *begin != '}')
|
2992
|
+
on_error("missing '}' in format string");
|
2993
|
+
auto f = arg_formatter<Char>{context.out(), specs, context.locale()};
|
2994
|
+
context.advance_to(visit_format_arg(f, arg));
|
2995
|
+
return begin;
|
2996
|
+
}
|
2997
|
+
};
|
2998
|
+
detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
|
2999
|
+
}
|
3000
|
+
|
3001
|
+
#ifndef FMT_HEADER_ONLY
|
3002
|
+
extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
|
3003
|
+
-> thousands_sep_result<char>;
|
3004
|
+
extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
|
3005
|
+
-> thousands_sep_result<wchar_t>;
|
3006
|
+
extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
|
3007
|
+
extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
|
3008
|
+
extern template auto format_float<double>(double value, int precision,
|
3009
|
+
float_specs specs, buffer<char>& buf)
|
3010
|
+
-> int;
|
3011
|
+
extern template auto format_float<long double>(long double value, int precision,
|
3012
|
+
float_specs specs,
|
3013
|
+
buffer<char>& buf) -> int;
|
3014
|
+
void snprintf_float(float, int, float_specs, buffer<char>&) = delete;
|
3015
|
+
extern template auto snprintf_float<double>(double value, int precision,
|
3016
|
+
float_specs specs,
|
3017
|
+
buffer<char>& buf) -> int;
|
3018
|
+
extern template auto snprintf_float<long double>(long double value,
|
3019
|
+
int precision,
|
3020
|
+
float_specs specs,
|
3021
|
+
buffer<char>& buf) -> int;
|
3022
|
+
#endif // FMT_HEADER_ONLY
|
3023
|
+
|
3024
|
+
FMT_END_DETAIL_NAMESPACE
|
3025
|
+
|
3026
|
+
#if FMT_USE_USER_DEFINED_LITERALS
|
3027
|
+
inline namespace literals {
|
3028
|
+
/**
|
3029
|
+
\rst
|
3030
|
+
User-defined literal equivalent of :func:`fmt::arg`.
|
3031
|
+
|
3032
|
+
**Example**::
|
3033
|
+
|
3034
|
+
using namespace fmt::literals;
|
3035
|
+
fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
|
3036
|
+
\endrst
|
3037
|
+
*/
|
3038
|
+
# if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
3039
|
+
template <detail_exported::fixed_string Str>
|
3040
|
+
constexpr auto operator""_a()
|
3041
|
+
-> detail::udl_arg<remove_cvref_t<decltype(Str.data[0])>,
|
3042
|
+
sizeof(Str.data) / sizeof(decltype(Str.data[0])), Str> {
|
3043
|
+
return {};
|
3044
|
+
}
|
3045
|
+
# else
|
3046
|
+
constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
|
3047
|
+
return {s};
|
3048
|
+
}
|
3049
|
+
# endif
|
3050
|
+
|
3051
|
+
/**
|
3052
|
+
DEPRECATED! User-defined literal equivalent of fmt::format.
|
3053
|
+
|
3054
|
+
**Example**::
|
3055
|
+
|
3056
|
+
using namespace fmt::literals;
|
3057
|
+
std::string message = "The answer is {}"_format(42);
|
3058
|
+
*/
|
3059
|
+
constexpr auto operator"" _format(const char* s, size_t n)
|
3060
|
+
-> detail::udl_formatter<char> {
|
3061
|
+
return {{s, n}};
|
3062
|
+
}
|
3063
|
+
} // namespace literals
|
3064
|
+
#endif // FMT_USE_USER_DEFINED_LITERALS
|
3065
|
+
|
3066
|
+
template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
|
3067
|
+
inline auto vformat(const Locale& loc, string_view fmt, format_args args)
|
3068
|
+
-> std::string {
|
3069
|
+
return detail::vformat(loc, fmt, args);
|
3070
|
+
}
|
3071
|
+
|
3072
|
+
template <typename Locale, typename... T,
|
3073
|
+
FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
|
3074
|
+
inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
|
3075
|
+
-> std::string {
|
3076
|
+
return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
|
3077
|
+
}
|
3078
|
+
|
3079
|
+
template <typename... T, size_t SIZE, typename Allocator>
|
3080
|
+
FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
|
3081
|
+
format_string<T...> fmt, T&&... args)
|
3082
|
+
-> appender {
|
3083
|
+
detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
|
3084
|
+
return appender(buf);
|
3085
|
+
}
|
3086
|
+
|
3087
|
+
template <typename OutputIt, typename Locale,
|
3088
|
+
FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
|
3089
|
+
detail::is_locale<Locale>::value)>
|
3090
|
+
auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
|
3091
|
+
format_args args) -> OutputIt {
|
3092
|
+
using detail::get_buffer;
|
3093
|
+
auto&& buf = get_buffer<char>(out);
|
3094
|
+
detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
|
3095
|
+
return detail::get_iterator(buf);
|
3096
|
+
}
|
3097
|
+
|
3098
|
+
template <typename OutputIt, typename Locale, typename... T,
|
3099
|
+
FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
|
3100
|
+
detail::is_locale<Locale>::value)>
|
3101
|
+
FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
|
3102
|
+
format_string<T...> fmt, T&&... args) -> OutputIt {
|
3103
|
+
return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
|
3104
|
+
}
|
3105
|
+
|
3106
|
+
FMT_MODULE_EXPORT_END
|
3107
|
+
FMT_END_NAMESPACE
|
3108
|
+
|
3109
|
+
#ifdef FMT_DEPRECATED_INCLUDE_XCHAR
|
3110
|
+
# include "xchar.h"
|
3111
|
+
#endif
|
3112
|
+
|
3113
|
+
#ifdef FMT_HEADER_ONLY
|
3114
|
+
# define FMT_FUNC inline
|
3115
|
+
# include "format-inl.h"
|
3116
|
+
#else
|
3117
|
+
# define FMT_FUNC
|
3118
|
+
#endif
|
3119
|
+
|
3120
|
+
#endif // FMT_FORMAT_H_
|