couchbase 3.5.2 → 3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/ext/CMakeLists.txt +8 -2
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/any_completion_executor.hpp +336 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/any_completion_handler.hpp +822 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/any_io_executor.hpp +351 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/append.hpp +65 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/as_tuple.hpp +152 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/associated_allocator.hpp +214 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/associated_cancellation_slot.hpp +221 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/associated_executor.hpp +235 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/associated_immediate_executor.hpp +281 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/associator.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/async_result.hpp +948 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/awaitable.hpp +142 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_datagram_socket.hpp +1362 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_deadline_timer.hpp +710 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_file.hpp +824 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_io_object.hpp +286 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_random_access_file.hpp +689 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_raw_socket.hpp +1356 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_readable_pipe.hpp +626 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_seq_packet_socket.hpp +823 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_serial_port.hpp +987 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_signal_set.hpp +648 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_socket.hpp +1936 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_socket_acceptor.hpp +2708 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_socket_iostream.hpp +331 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_socket_streambuf.hpp +642 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_stream_file.hpp +744 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_stream_socket.hpp +1163 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_streambuf.hpp +450 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_streambuf_fwd.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_waitable_timer.hpp +824 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/basic_writable_pipe.hpp +622 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/bind_allocator.hpp +596 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/bind_cancellation_slot.hpp +613 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/bind_executor.hpp +664 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/bind_immediate_executor.hpp +616 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffer.hpp +2751 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffer_registration.hpp +318 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_read_stream.hpp +273 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_read_stream_fwd.hpp +25 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_stream.hpp +292 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_stream_fwd.hpp +25 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_write_stream.hpp +265 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffered_write_stream_fwd.hpp +25 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/buffers_iterator.hpp +521 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/cancel_after.hpp +301 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/cancel_at.hpp +294 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/cancellation_signal.hpp +245 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/cancellation_state.hpp +235 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/cancellation_type.hpp +157 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/co_composed.hpp +1319 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/co_spawn.hpp +523 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/completion_condition.hpp +267 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/compose.hpp +128 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/composed.hpp +413 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/connect.hpp +1346 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/connect_pipe.hpp +83 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/consign.hpp +75 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/coroutine.hpp +328 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/deadline_timer.hpp +38 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/default_completion_token.hpp +89 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/defer.hpp +218 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/deferred.hpp +719 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detached.hpp +105 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/array.hpp +30 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/array_fwd.hpp +32 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/assert.hpp +32 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/atomic_count.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +164 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/base_from_completion_cond.hpp +69 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/bind_handler.hpp +711 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/blocking_executor_op.hpp +107 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/buffer_resize_guard.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +837 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/buffered_stream_storage.hpp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/call_stack.hpp +125 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/chrono.hpp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/chrono_time_traits.hpp +190 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/completion_handler.hpp +88 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/completion_message.hpp +127 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/completion_payload.hpp +220 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/completion_payload_handler.hpp +79 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/composed_work.hpp +252 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/concurrency_hint.hpp +94 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +120 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +149 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/config.hpp +1422 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/consuming_buffers.hpp +443 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/cstddef.hpp +27 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/cstdint.hpp +40 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/date_time_fwd.hpp +34 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/deadline_timer_service.hpp +339 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/dependent_type.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/descriptor_ops.hpp +179 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/descriptor_read_op.hpp +188 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/descriptor_write_op.hpp +187 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/dev_poll_reactor.hpp +247 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/epoll_reactor.hpp +295 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/event.hpp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +83 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/exception.hpp +29 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/executor_function.hpp +152 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/executor_op.hpp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/fd_set_adapter.hpp +39 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/fenced_block.hpp +40 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/functional.hpp +33 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/future.hpp +32 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/global.hpp +50 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +123 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/handler_cont_helpers.hpp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/handler_tracking.hpp +264 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/handler_type_requirements.hpp +553 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/handler_work.hpp +511 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/hash_map.hpp +331 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +118 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +994 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +111 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +469 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +109 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +826 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +171 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/handler_tracking.ipp +398 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +205 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +140 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/io_uring_service.hpp +112 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/io_uring_service.ipp +914 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +249 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +113 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +608 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/null_event.ipp +74 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +129 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/posix_event.ipp +63 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/posix_mutex.ipp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +168 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/posix_thread.ipp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +232 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +312 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +158 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/scheduler.ipp +675 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/select_reactor.hpp +124 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/select_reactor.ipp +400 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/service_registry.hpp +93 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/service_registry.ipp +197 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/signal_set_service.ipp +826 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/socket_ops.ipp +4038 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +185 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +346 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +158 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/strand_service.hpp +86 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/strand_service.ipp +202 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/thread_context.ipp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/throw_error.ipp +49 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +97 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +101 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_event.ipp +76 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +280 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +619 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +119 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +614 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +200 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +821 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_mutex.ipp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +452 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +136 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_thread.ipp +150 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +57 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +626 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +92 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +121 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/impl/winsock_init.ipp +82 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/initiate_defer.hpp +207 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/initiate_dispatch.hpp +193 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/initiate_post.hpp +207 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/initiation_base.hpp +62 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_control.hpp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_object_impl.hpp +177 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +195 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +190 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +687 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +189 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +185 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_file_service.hpp +261 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +114 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_operation.hpp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_service.hpp +319 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +280 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +140 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +205 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +206 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +192 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +191 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +194 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_service.hpp +629 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +663 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/io_uring_wait_op.hpp +112 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/is_buffer_sequence.hpp +296 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/is_executor.hpp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +70 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/kqueue_reactor.hpp +271 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/memory.hpp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/mutex.hpp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/non_const_lvalue.hpp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/noncopyable.hpp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_event.hpp +106 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_fenced_block.hpp +47 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_global.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_mutex.hpp +60 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_reactor.hpp +83 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_signal_blocker.hpp +69 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_socket_service.hpp +519 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_static_mutex.hpp +60 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_thread.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/null_tss_ptr.hpp +68 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/object_pool.hpp +171 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +214 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/op_queue.hpp +162 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/operation.hpp +38 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +89 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/pop_options.hpp +157 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_event.hpp +175 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +118 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_global.hpp +80 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_mutex.hpp +76 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_serial_port_service.hpp +249 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_signal_blocker.hpp +85 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_static_mutex.hpp +64 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_thread.hpp +109 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/posix_tss_ptr.hpp +79 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/push_options.hpp +228 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +570 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +131 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +323 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +162 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +197 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +203 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +184 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +200 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +194 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_service.hpp +633 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +755 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactive_wait_op.hpp +131 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactor.hpp +54 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactor_op.hpp +71 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/reactor_op_queue.hpp +212 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/recycling_allocator.hpp +114 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/regex_fwd.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +140 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/resolve_op.hpp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/resolve_query_op.hpp +150 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/resolver_service.hpp +147 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/resolver_service_base.hpp +158 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scheduler.hpp +241 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scheduler_operation.hpp +78 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scheduler_task.hpp +49 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scheduler_thread_info.hpp +40 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scoped_lock.hpp +101 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/scoped_ptr.hpp +87 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/select_interrupter.hpp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/select_reactor.hpp +291 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/service_registry.hpp +163 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/signal_blocker.hpp +44 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/signal_handler.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/signal_init.hpp +47 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/signal_op.hpp +53 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/signal_set_service.hpp +292 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/socket_holder.hpp +98 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/socket_ops.hpp +375 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/socket_option.hpp +316 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/socket_select_interrupter.hpp +91 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/socket_types.hpp +427 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/source_location.hpp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/static_mutex.hpp +50 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_event.hpp +183 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_fenced_block.hpp +57 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_global.hpp +65 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_mutex.hpp +68 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_static_mutex.hpp +76 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/std_thread.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/strand_executor_service.hpp +173 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/strand_service.hpp +144 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/string_view.hpp +47 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/thread.hpp +58 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/thread_context.hpp +51 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/thread_group.hpp +99 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/thread_info_base.hpp +260 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/throw_error.hpp +62 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/throw_exception.hpp +55 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timed_cancel_op.hpp +361 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_queue.hpp +389 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_queue_base.hpp +68 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_queue_ptime.hpp +103 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_queue_set.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_scheduler.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +42 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/tss_ptr.hpp +69 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/type_traits.hpp +178 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/utility.hpp +83 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/wait_handler.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/wait_op.hpp +49 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_event.hpp +164 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +149 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_global.hpp +71 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_file_service.hpp +287 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +119 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +431 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +114 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_io_context.hpp +347 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +129 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_operation.hpp +96 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +100 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +171 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +233 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +339 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +138 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +135 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +127 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +120 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +680 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +829 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +34 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +130 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_mutex.hpp +78 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_object_handle_service.hpp +194 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_static_mutex.hpp +74 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_thread.hpp +147 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/win_tss_ptr.hpp +79 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winapp_thread.hpp +124 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/wince_thread.hpp +124 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_async_manager.hpp +305 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_async_op.hpp +65 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_resolve_op.hpp +125 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_resolver_service.hpp +212 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +98 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +119 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +110 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +250 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +362 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +147 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winrt_utils.hpp +106 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/winsock_init.hpp +128 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/work_dispatcher.hpp +143 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/detail/wrapped_handler.hpp +217 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/dispatch.hpp +197 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/error.hpp +389 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/error_code.hpp +39 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/allocator.hpp +278 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/any_executor.hpp +1933 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/bad_executor.hpp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/blocking.hpp +1360 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/blocking_adaptation.hpp +1080 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/context.hpp +191 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/context_as.hpp +190 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/executor.hpp +116 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/impl/bad_executor.ipp +40 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/invocable_archetype.hpp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/mapping.hpp +1002 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/occupancy.hpp +184 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/outstanding_work.hpp +753 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/prefer_only.hpp +328 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution/relationship.hpp +751 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution.hpp +33 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/execution_context.hpp +388 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/executor.hpp +363 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/executor_work_guard.hpp +362 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/append.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/as_single.hpp +132 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/as_tuple.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/awaitable_operators.hpp +536 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/basic_channel.hpp +514 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +514 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/cancellation_condition.hpp +152 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/channel.hpp +70 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/channel_error.hpp +82 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/channel_traits.hpp +301 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/co_composed.hpp +33 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/concurrent_channel.hpp +70 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/deferred.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/channel_operation.hpp +361 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +200 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +147 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/channel_service.hpp +679 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +140 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/has_signature.hpp +54 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +623 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/detail/partial_promise.hpp +195 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/impl/as_single.hpp +181 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/impl/channel_error.ipp +61 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/impl/parallel_group.hpp +788 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/parallel_group.hpp +455 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/prepend.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/promise.hpp +224 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/experimental/use_coro.hpp +189 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/file_base.hpp +166 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/basic_endpoint.hpp +189 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/datagram_protocol.hpp +123 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/detail/endpoint.hpp +133 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +110 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/raw_protocol.hpp +121 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/seq_packet_protocol.hpp +122 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/generic/stream_protocol.hpp +127 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/handler_continuation_hook.hpp +54 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/high_resolution_timer.hpp +39 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/immediate.hpp +142 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/any_completion_executor.ipp +126 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/any_io_executor.ipp +134 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/append.hpp +169 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/as_tuple.hpp +276 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/awaitable.hpp +1196 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/buffered_read_stream.hpp +404 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/buffered_write_stream.hpp +384 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/cancel_after.hpp +268 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/cancel_at.hpp +268 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/cancellation_signal.ipp +96 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/co_spawn.hpp +449 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/connect.hpp +703 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/connect_pipe.hpp +73 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/connect_pipe.ipp +149 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/consign.hpp +144 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/deferred.hpp +147 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/detached.hpp +77 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/error.ipp +128 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/error_code.ipp +206 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/execution_context.hpp +77 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/execution_context.ipp +82 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/executor.hpp +317 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/executor.ipp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/io_context.hpp +433 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/io_context.ipp +176 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/multiple_exceptions.ipp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/prepend.hpp +170 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/read.hpp +902 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/read_at.hpp +562 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/read_until.hpp +2668 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/redirect_error.hpp +287 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/serial_port_base.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/serial_port_base.ipp +554 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/spawn.hpp +1399 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/src.hpp +94 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/system_context.hpp +34 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/system_context.ipp +92 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/system_executor.hpp +179 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/thread_pool.hpp +277 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/thread_pool.ipp +142 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/use_awaitable.hpp +301 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/use_future.hpp +707 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/write.hpp +780 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/impl/write_at.hpp +480 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/io_context.hpp +1505 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/io_context_strand.hpp +396 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/io_service.hpp +33 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/io_service_strand.hpp +20 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address.hpp +281 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v4.hpp +421 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v4_iterator.hpp +156 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v4_range.hpp +128 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v6.hpp +407 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v6_iterator.hpp +178 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/address_v6_range.hpp +124 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/bad_address_cast.hpp +63 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_endpoint.hpp +282 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_resolver.hpp +1112 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_resolver_entry.hpp +113 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +188 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_resolver_query.hpp +260 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/basic_resolver_results.hpp +307 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/detail/endpoint.hpp +141 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +195 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/detail/socket_option.hpp +566 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/host_name.hpp +42 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/icmp.hpp +115 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address.ipp +235 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address_v4.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address_v4.ipp +206 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address_v6.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/address_v6.ipp +342 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/host_name.ipp +54 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/network_v4.hpp +54 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/network_v4.ipp +218 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/network_v6.hpp +53 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/impl/network_v6.ipp +187 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/multicast.hpp +191 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/network_v4.hpp +257 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/network_v6.hpp +231 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/resolver_base.hpp +129 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/resolver_query_base.hpp +43 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/tcp.hpp +155 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/udp.hpp +111 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/unicast.hpp +70 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ip/v6_only.hpp +69 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/is_applicable_property.hpp +61 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/is_contiguous_iterator.hpp +45 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/is_executor.hpp +46 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/is_read_buffered.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/is_write_buffered.hpp +59 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/basic_endpoint.hpp +243 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/connect_pair.hpp +101 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/datagram_protocol.hpp +80 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/detail/endpoint.hpp +139 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/detail/impl/endpoint.ipp +131 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/seq_packet_protocol.hpp +84 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/local/stream_protocol.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/multiple_exceptions.hpp +52 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/packaged_task.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/placeholders.hpp +75 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/posix/basic_descriptor.hpp +773 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +559 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/posix/descriptor.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/posix/descriptor_base.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/posix/stream_descriptor.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/post.hpp +213 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/prefer.hpp +577 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/prepend.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/query.hpp +311 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/random_access_file.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/read.hpp +1547 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/read_at.hpp +828 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/read_until.hpp +3202 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/readable_pipe.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/recycling_allocator.hpp +138 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/redirect_error.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/registered_buffer.hpp +344 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/require.hpp +433 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/require_concept.hpp +343 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/serial_port.hpp +36 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/serial_port_base.hpp +167 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/signal_set.hpp +28 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/signal_set_base.hpp +171 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/socket_base.hpp +559 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/spawn.hpp +871 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/context.hpp +762 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/context_base.hpp +209 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +119 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/engine.hpp +169 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/handshake_op.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/impl/engine.ipp +377 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +169 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/io.hpp +376 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/openssl_init.hpp +101 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/openssl_types.hpp +34 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/password_callback.hpp +66 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/read_op.hpp +72 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +69 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/stream_core.hpp +217 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/verify_callback.hpp +62 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/detail/write_op.hpp +76 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/error.hpp +123 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/host_name_verification.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/context.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/context.ipp +1319 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/error.ipp +124 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +73 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +164 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/impl/src.hpp +29 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/rfc2818_verification.hpp +98 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/stream.hpp +1042 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/stream_base.hpp +52 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/verify_context.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl/verify_mode.hpp +63 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ssl.hpp +28 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/static_thread_pool.hpp +31 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/steady_timer.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/strand.hpp +557 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/stream_file.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/streambuf.hpp +33 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/system_context.hpp +90 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/system_error.hpp +31 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/system_executor.hpp +671 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/system_timer.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/this_coro.hpp +267 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/thread.hpp +92 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/thread_pool.hpp +963 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/time_traits.hpp +86 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/equality_comparable.hpp +100 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/execute_member.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/prefer_free.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/prefer_member.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/query_free.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/query_member.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +101 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/require_concept_free.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/require_concept_member.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/require_free.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/require_member.hpp +104 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/static_query.hpp +102 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/static_require.hpp +115 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/traits/static_require_concept.hpp +116 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/buffer.hpp +24 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/executor.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/internet.hpp +40 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/io_context.hpp +20 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/net.hpp +26 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/netfwd.hpp +236 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/socket.hpp +27 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/ts/timer.hpp +26 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/unyield.hpp +21 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/use_awaitable.hpp +161 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/use_future.hpp +159 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/uses_executor.hpp +67 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/version.hpp +23 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/wait_traits.hpp +56 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/basic_object_handle.hpp +485 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +455 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/basic_random_access_handle.hpp +567 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/basic_stream_handle.hpp +551 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/object_handle.hpp +38 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/overlapped_handle.hpp +39 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/overlapped_ptr.hpp +145 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/random_access_handle.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/windows/stream_handle.hpp +37 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/writable_pipe.hpp +35 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/write.hpp +1526 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/write_at.hpp +841 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio/yield.hpp +23 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/include/asio.hpp +205 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/src/asio.cpp +11 -0
- data/ext/cache/asio/b710bc0ca14b231d20e983b02d27485125c7860e/asio/asio/src/asio_ssl.cpp +11 -0
- data/ext/cache/extconf_include.rb +3 -3
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/CMakeLists.txt +520 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/ChangeLog.md +2598 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/README.md +484 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/args.h +228 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/base.h +3061 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/chrono.h +2432 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/color.h +612 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/compile.h +529 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/core.h +5 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/format-inl.h +1904 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/format.h +4419 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/os.h +439 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/ostream.h +211 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/printf.h +656 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/ranges.h +882 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/std.h +699 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt/xchar.h +322 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/fmt.cc +135 -0
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/os.cc +403 -0
- data/ext/cache/llhttp/c67596e14f24b689a867a26fa36e02bdba733b9b/llhttp/CMakeLists.txt +117 -0
- data/ext/cache/llhttp/c67596e14f24b689a867a26fa36e02bdba733b9b/llhttp/include/llhttp.h +903 -0
- data/ext/cache/llhttp/c67596e14f24b689a867a26fa36e02bdba733b9b/llhttp/src/llhttp.c +10168 -0
- data/ext/cache/mozilla-ca-bundle.crt +100 -2
- data/ext/cache/mozilla-ca-bundle.sha256 +1 -1
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/CMakeLists.txt +438 -0
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/cmake/config.h.in +69 -0
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/snappy-internal.h +424 -0
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/snappy-stubs-internal.h +531 -0
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/snappy.cc +2645 -0
- data/ext/cache/snappy/585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c/snappy/snappy.h +257 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/CMakeLists.txt +359 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/async_logger-inl.h +86 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/common.h +411 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/circular_q.h +115 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/file_helper-inl.h +152 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/os-inl.h +594 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/periodic_worker.h +58 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/registry-inl.h +261 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/registry.h +129 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/thread_pool-inl.h +132 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/details/thread_pool.h +128 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/fmt.h +30 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/mdc.h +46 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/pattern_formatter-inl.h +1324 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/sinks/qt_sinks.h +304 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/stopwatch.h +66 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/version.h +11 -0
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/src/bundled_fmtlib_format.cpp +46 -0
- data/ext/couchbase/CMakeLists.txt +155 -82
- data/ext/couchbase/cmake/0001-fix-build-for-mingw-w64-ucrt-x86_64-toolchain.patch +4 -3
- data/ext/couchbase/cmake/CompilerWarnings.cmake +1 -0
- data/ext/couchbase/cmake/OpenSSL.cmake +15 -8
- data/ext/couchbase/cmake/Packaging.cmake +147 -17
- data/ext/couchbase/cmake/StandardProjectSettings.cmake +1 -1
- data/ext/couchbase/cmake/StaticAnalyzers.cmake +28 -6
- data/ext/couchbase/cmake/Testing.cmake +57 -9
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +36 -20
- data/ext/couchbase/cmake/VersionInfo.cmake +27 -13
- data/ext/couchbase/cmake/build_config.hxx.in +1 -0
- data/ext/couchbase/cmake/couchbase-cxx-client.spec.in +104 -0
- data/ext/couchbase/cmake/couchbase_cxx_client-config.cmake.in +3 -0
- data/ext/couchbase/cmake/tarball_glob.txt +91 -0
- data/ext/couchbase/core/agent.cxx +148 -121
- data/ext/couchbase/core/agent.hxx +39 -36
- data/ext/couchbase/core/agent_config.cxx +2 -2
- data/ext/couchbase/core/agent_group.cxx +61 -32
- data/ext/couchbase/core/agent_group.hxx +12 -7
- data/ext/couchbase/core/agent_group_config.cxx +2 -2
- data/ext/couchbase/core/analytics_query_options.cxx +6 -0
- data/ext/couchbase/core/bucket.cxx +118 -76
- data/ext/couchbase/core/bucket.hxx +15 -14
- data/ext/couchbase/core/cluster.cxx +477 -76
- data/ext/couchbase/core/cluster.hxx +11 -0
- data/ext/couchbase/core/cluster_agent.cxx +44 -4
- data/ext/couchbase/core/cluster_agent.hxx +19 -1
- data/ext/couchbase/core/cluster_agent_config.cxx +2 -2
- data/ext/couchbase/core/cluster_options.cxx +5 -4
- data/ext/couchbase/core/cluster_options.hxx +3 -0
- data/ext/couchbase/core/collections_component.cxx +58 -34
- data/ext/couchbase/core/collections_component.hxx +2 -2
- data/ext/couchbase/core/columnar/agent.cxx +147 -0
- data/ext/couchbase/core/columnar/agent.hxx +71 -0
- data/ext/couchbase/core/columnar/agent_config.cxx +48 -0
- data/ext/couchbase/core/columnar/agent_config.hxx +59 -0
- data/ext/couchbase/core/columnar/background_bootstrap_listener.hxx +42 -0
- data/ext/couchbase/core/columnar/backoff_calculator.cxx +62 -0
- data/ext/couchbase/core/columnar/backoff_calculator.hxx +34 -0
- data/ext/couchbase/core/columnar/bootstrap_notification_subscriber.hxx +32 -0
- data/ext/couchbase/core/columnar/database_management_options.hxx +56 -0
- data/ext/couchbase/core/columnar/error.cxx +50 -0
- data/ext/couchbase/core/columnar/error.hxx +52 -0
- data/ext/couchbase/core/columnar/error_codes.cxx +107 -0
- data/ext/couchbase/core/columnar/error_codes.hxx +75 -0
- data/ext/couchbase/core/columnar/management_component.cxx +300 -0
- data/ext/couchbase/core/columnar/management_component.hxx +56 -0
- data/ext/couchbase/core/columnar/query_component.cxx +523 -0
- data/ext/couchbase/core/columnar/query_component.hxx +57 -0
- data/ext/couchbase/core/columnar/query_options.hxx +59 -0
- data/ext/couchbase/core/columnar/query_result.cxx +130 -0
- data/ext/couchbase/core/columnar/query_result.hxx +78 -0
- data/ext/couchbase/core/columnar/retry_info.hxx +34 -0
- data/ext/couchbase/core/columnar/security_options.hxx +34 -0
- data/ext/couchbase/core/config_profiles.cxx +6 -3
- data/ext/couchbase/core/core_sdk_shim.cxx +3 -1
- data/ext/couchbase/core/crud_component.cxx +50 -33
- data/ext/couchbase/core/crud_component.hxx +4 -4
- data/ext/couchbase/core/crypto/cbcrypto.cc +159 -141
- data/ext/couchbase/core/crypto/cbcrypto.h +16 -14
- data/ext/couchbase/core/diagnostics.hxx +3 -3
- data/ext/couchbase/core/diagnostics_json.hxx +1 -1
- data/ext/couchbase/core/dispatcher.cxx +8 -0
- data/ext/couchbase/core/document_id.cxx +25 -13
- data/ext/couchbase/core/error_context/analytics_json.hxx +2 -2
- data/ext/couchbase/core/error_context/http_json.hxx +2 -3
- data/ext/couchbase/core/error_context/key_value.cxx +9 -0
- data/ext/couchbase/core/error_context/query_json.hxx +2 -2
- data/ext/couchbase/core/error_context/query_public_json.hxx +1 -0
- data/ext/couchbase/core/error_context/search_json.hxx +2 -2
- data/ext/couchbase/core/error_context/subdocument_json.hxx +2 -3
- data/ext/couchbase/core/free_form_http_request.cxx +121 -17
- data/ext/couchbase/core/free_form_http_request.hxx +60 -16
- data/ext/couchbase/core/http_component.cxx +711 -0
- data/ext/couchbase/core/http_component.hxx +65 -0
- data/ext/couchbase/core/impl/analytics.cxx +19 -10
- data/ext/couchbase/core/impl/analytics_error_category.cxx +1 -0
- data/ext/couchbase/core/impl/analytics_index_manager.cxx +90 -66
- data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +13 -7
- data/ext/couchbase/core/impl/binary_collection.cxx +73 -54
- data/ext/couchbase/core/impl/boolean_field_query.cxx +3 -1
- data/ext/couchbase/core/impl/boolean_query.cxx +4 -2
- data/ext/couchbase/core/impl/bootstrap_error.hxx +42 -0
- data/ext/couchbase/core/impl/bucket.cxx +12 -2
- data/ext/couchbase/core/impl/bucket_manager.cxx +27 -28
- data/ext/couchbase/core/impl/cluster.cxx +82 -48
- data/ext/couchbase/core/impl/collection.cxx +64 -16
- data/ext/couchbase/core/impl/collection_manager.cxx +21 -6
- data/ext/couchbase/core/impl/common_error_category.cxx +1 -0
- data/ext/couchbase/core/impl/configuration_profiles_registry.cxx +11 -4
- data/ext/couchbase/core/impl/conjunction_query.cxx +2 -1
- data/ext/couchbase/core/impl/date_range.cxx +7 -0
- data/ext/couchbase/core/impl/date_range_facet.cxx +2 -0
- data/ext/couchbase/core/impl/date_range_facet_result.cxx +9 -1
- data/ext/couchbase/core/impl/date_range_query.cxx +7 -2
- data/ext/couchbase/core/impl/diagnostics.cxx +14 -10
- data/ext/couchbase/core/impl/disjunction_query.cxx +4 -2
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +22 -8
- data/ext/couchbase/core/impl/dns_srv_tracker.hxx +3 -3
- data/ext/couchbase/core/impl/doc_id_query.cxx +2 -1
- data/ext/couchbase/core/impl/encoded_search_query.hxx +2 -1
- data/ext/couchbase/core/impl/error.cxx +20 -5
- data/ext/couchbase/core/impl/error_context.cxx +1 -0
- data/ext/couchbase/core/impl/expiry.cxx +14 -6
- data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +7 -0
- data/ext/couchbase/core/impl/field_level_encryption_error_category.cxx +1 -0
- data/ext/couchbase/core/impl/geo_bounding_box_query.cxx +1 -0
- data/ext/couchbase/core/impl/geo_distance_query.cxx +1 -0
- data/ext/couchbase/core/impl/geo_polygon_query.cxx +1 -0
- data/ext/couchbase/core/impl/get_replica.cxx +6 -2
- data/ext/couchbase/core/impl/get_replica.hxx +1 -1
- data/ext/couchbase/core/impl/internal_date_range_facet_result.cxx +11 -1
- data/ext/couchbase/core/impl/internal_error_context.cxx +2 -2
- data/ext/couchbase/core/impl/internal_error_context.hxx +3 -2
- data/ext/couchbase/core/impl/internal_numeric_range_facet_result.cxx +11 -1
- data/ext/couchbase/core/impl/internal_scan_result.hxx +6 -0
- data/ext/couchbase/core/impl/internal_search_error_context.cxx +11 -0
- data/ext/couchbase/core/impl/internal_search_meta_data.cxx +10 -1
- data/ext/couchbase/core/impl/internal_search_result.cxx +19 -7
- data/ext/couchbase/core/impl/internal_search_row.cxx +6 -0
- data/ext/couchbase/core/impl/internal_search_row.hxx +2 -0
- data/ext/couchbase/core/impl/internal_term_facet_result.cxx +4 -1
- data/ext/couchbase/core/impl/lookup_in_replica.cxx +4 -0
- data/ext/couchbase/core/impl/observe_poll.cxx +25 -17
- data/ext/couchbase/core/impl/observe_poll.hxx +2 -4
- data/ext/couchbase/core/impl/observe_seqno.cxx +1 -1
- data/ext/couchbase/core/impl/observe_seqno.hxx +4 -4
- data/ext/couchbase/core/impl/query.cxx +22 -18
- data/ext/couchbase/core/impl/query_index_manager.cxx +43 -38
- data/ext/couchbase/core/impl/replica_utils.cxx +1 -1
- data/ext/couchbase/core/impl/scan_result.cxx +2 -2
- data/ext/couchbase/core/impl/scope.cxx +8 -6
- data/ext/couchbase/core/impl/search.cxx +14 -16
- data/ext/couchbase/core/impl/search_index_manager.cxx +12 -12
- data/ext/couchbase/core/impl/search_meta_data.cxx +7 -0
- data/ext/couchbase/core/impl/search_request.cxx +1 -1
- data/ext/couchbase/core/impl/search_row.cxx +5 -0
- data/ext/couchbase/core/impl/search_row_locations.cxx +6 -0
- data/ext/couchbase/core/impl/subdoc/join_values.cxx +2 -2
- data/ext/couchbase/core/impl/subdoc/lookup_in_macro.cxx +15 -12
- data/ext/couchbase/core/impl/subdoc/lookup_in_specs.cxx +1 -1
- data/ext/couchbase/core/impl/subdoc/mutate_in_macro.cxx +3 -3
- data/ext/couchbase/core/impl/subdoc/mutate_in_specs.cxx +1 -1
- data/ext/couchbase/core/impl/transaction_get_result.cxx +9 -3
- data/ext/couchbase/core/impl/vector_query.cxx +1 -1
- data/ext/couchbase/core/io/config_tracker.cxx +685 -0
- data/ext/couchbase/core/io/config_tracker.hxx +122 -0
- data/ext/couchbase/core/io/dns_client.cxx +12 -5
- data/ext/couchbase/core/io/dns_config.cxx +5 -3
- data/ext/couchbase/core/io/http_command.hxx +90 -22
- data/ext/couchbase/core/io/http_message.hxx +4 -1
- data/ext/couchbase/core/io/http_session.cxx +809 -0
- data/ext/couchbase/core/io/http_session.hxx +97 -547
- data/ext/couchbase/core/io/http_session_manager.hxx +514 -54
- data/ext/couchbase/core/io/http_streaming_parser.cxx +166 -0
- data/ext/couchbase/core/io/http_streaming_parser.hxx +62 -0
- data/ext/couchbase/core/io/http_streaming_response.cxx +227 -0
- data/ext/couchbase/core/io/http_streaming_response.hxx +73 -0
- data/ext/couchbase/core/io/mcbp_command.hxx +15 -14
- data/ext/couchbase/core/io/mcbp_message.hxx +1 -1
- data/ext/couchbase/core/io/mcbp_parser.cxx +5 -5
- data/ext/couchbase/core/io/mcbp_session.cxx +401 -178
- data/ext/couchbase/core/io/mcbp_session.hxx +21 -5
- data/ext/couchbase/core/io/streams.cxx +256 -0
- data/ext/couchbase/core/io/streams.hxx +44 -162
- data/ext/couchbase/core/logger/configuration.hxx +5 -0
- data/ext/couchbase/core/logger/custom_rotating_file_sink.cxx +14 -12
- data/ext/couchbase/core/logger/custom_rotating_file_sink.hxx +1 -1
- data/ext/couchbase/core/logger/logger.cxx +77 -35
- data/ext/couchbase/core/logger/logger.hxx +8 -1
- data/ext/couchbase/core/management/search_index.cxx +6 -7
- data/ext/couchbase/core/mcbp/buffer_writer.cxx +1 -1
- data/ext/couchbase/core/mcbp/codec.cxx +25 -23
- data/ext/couchbase/core/mcbp/codec.hxx +5 -4
- data/ext/couchbase/core/mcbp/operation_queue.cxx +12 -10
- data/ext/couchbase/core/mcbp/operation_queue.hxx +4 -4
- data/ext/couchbase/core/mcbp/packet.cxx +2 -0
- data/ext/couchbase/core/mcbp/queue_request.cxx +10 -7
- data/ext/couchbase/core/meta/version.cxx +22 -13
- data/ext/couchbase/core/metrics/logging_meter.cxx +6 -6
- data/ext/couchbase/core/metrics/meter_wrapper.cxx +188 -0
- data/ext/couchbase/core/metrics/meter_wrapper.hxx +73 -0
- data/ext/couchbase/core/mozilla_ca_bundle.hxx +2 -1
- data/ext/couchbase/core/operations/document_analytics.cxx +3 -1
- data/ext/couchbase/core/operations/document_get_projected.cxx +16 -12
- data/ext/couchbase/core/operations/document_lookup_in.cxx +4 -0
- data/ext/couchbase/core/operations/document_lookup_in.hxx +1 -0
- data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +2 -2
- data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +4 -14
- data/ext/couchbase/core/operations/document_query.cxx +12 -3
- data/ext/couchbase/core/operations/document_view.cxx +2 -0
- data/ext/couchbase/core/operations/http_noop.hxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.cxx +8 -5
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +6 -3
- data/ext/couchbase/core/operations/management/analytics_index_create.cxx +10 -5
- data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_index_get_all.cxx +8 -5
- data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_link_create.cxx +9 -7
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +9 -5
- data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +8 -4
- data/ext/couchbase/core/operations/management/analytics_link_replace.cxx +9 -7
- data/ext/couchbase/core/operations/management/bucket_create.cxx +7 -3
- data/ext/couchbase/core/operations/management/bucket_describe.cxx +18 -14
- data/ext/couchbase/core/operations/management/bucket_drop.cxx +9 -6
- data/ext/couchbase/core/operations/management/bucket_flush.cxx +9 -6
- data/ext/couchbase/core/operations/management/bucket_get.cxx +9 -5
- data/ext/couchbase/core/operations/management/bucket_get_all.cxx +7 -3
- data/ext/couchbase/core/operations/management/bucket_update.cxx +10 -4
- data/ext/couchbase/core/operations/management/change_password.cxx +5 -3
- data/ext/couchbase/core/operations/management/cluster_describe.cxx +6 -3
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.cxx +4 -2
- data/ext/couchbase/core/operations/management/collection_create.cxx +13 -9
- data/ext/couchbase/core/operations/management/collection_drop.cxx +15 -9
- data/ext/couchbase/core/operations/management/collection_update.cxx +12 -7
- data/ext/couchbase/core/operations/management/collections_manifest_get.cxx +4 -3
- data/ext/couchbase/core/operations/management/error_utils.cxx +21 -12
- data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.cxx +6 -3
- data/ext/couchbase/core/operations/management/eventing_get_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_get_status.cxx +6 -3
- data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +5 -3
- data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +18 -13
- data/ext/couchbase/core/operations/management/freeform.cxx +5 -4
- data/ext/couchbase/core/operations/management/freeform.hxx +1 -1
- data/ext/couchbase/core/operations/management/group_drop.cxx +5 -4
- data/ext/couchbase/core/operations/management/group_get.cxx +6 -4
- data/ext/couchbase/core/operations/management/group_get_all.cxx +7 -3
- data/ext/couchbase/core/operations/management/group_upsert.cxx +12 -9
- data/ext/couchbase/core/operations/management/query_index_build.cxx +8 -5
- data/ext/couchbase/core/operations/management/query_index_create.cxx +6 -3
- data/ext/couchbase/core/operations/management/query_index_drop.cxx +7 -3
- data/ext/couchbase/core/operations/management/query_index_get_all.cxx +14 -7
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.cxx +11 -6
- data/ext/couchbase/core/operations/management/role_get_all.cxx +8 -5
- data/ext/couchbase/core/operations/management/scope_create.cxx +10 -7
- data/ext/couchbase/core/operations/management/scope_drop.cxx +13 -8
- data/ext/couchbase/core/operations/management/scope_get_all.cxx +9 -4
- data/ext/couchbase/core/operations/management/search_get_stats.cxx +4 -3
- data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +8 -4
- data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +8 -5
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +8 -4
- data/ext/couchbase/core/operations/management/search_index_control_query.cxx +8 -5
- data/ext/couchbase/core/operations/management/search_index_drop.cxx +10 -5
- data/ext/couchbase/core/operations/management/search_index_get.cxx +10 -5
- data/ext/couchbase/core/operations/management/search_index_get_all.cxx +9 -5
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +10 -4
- data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +7 -3
- data/ext/couchbase/core/operations/management/search_index_upsert.cxx +10 -5
- data/ext/couchbase/core/operations/management/user_drop.cxx +5 -4
- data/ext/couchbase/core/operations/management/user_get.cxx +7 -4
- data/ext/couchbase/core/operations/management/user_get_all.cxx +8 -5
- data/ext/couchbase/core/operations/management/user_upsert.cxx +10 -7
- data/ext/couchbase/core/operations/management/view_index_drop.cxx +8 -4
- data/ext/couchbase/core/operations/management/view_index_get.cxx +8 -4
- data/ext/couchbase/core/operations/management/view_index_get_all.cxx +8 -4
- data/ext/couchbase/core/operations/management/view_index_upsert.cxx +7 -4
- data/ext/couchbase/core/origin.cxx +67 -42
- data/ext/couchbase/core/origin.hxx +1 -1
- data/ext/couchbase/core/pending_operation_connection_info.hxx +32 -0
- data/ext/couchbase/core/platform/CMakeLists.txt +0 -19
- data/ext/couchbase/core/platform/base64.cc +32 -23
- data/ext/couchbase/core/platform/dirutils.cc +24 -14
- data/ext/couchbase/core/platform/random.cc +22 -12
- data/ext/couchbase/core/platform/random.h +1 -1
- data/ext/couchbase/core/platform/string_hex.cc +37 -28
- data/ext/couchbase/core/platform/string_hex.h +1 -0
- data/ext/couchbase/core/platform/terminate_handler.cc +15 -12
- data/ext/couchbase/core/platform/uuid.cc +18 -11
- data/ext/couchbase/core/platform/uuid.h +6 -6
- data/ext/couchbase/core/protocol/client_request.cxx +1 -1
- data/ext/couchbase/core/protocol/client_request.hxx +1 -3
- data/ext/couchbase/core/protocol/client_response.cxx +1 -0
- data/ext/couchbase/core/protocol/cmd_cluster_map_change_notification.cxx +5 -3
- data/ext/couchbase/core/protocol/cmd_get_and_lock.hxx +1 -1
- data/ext/couchbase/core/protocol/cmd_get_and_touch.hxx +1 -1
- data/ext/couchbase/core/protocol/cmd_get_cluster_config.cxx +2 -1
- data/ext/couchbase/core/protocol/cmd_get_cluster_config.hxx +2 -2
- data/ext/couchbase/core/protocol/cmd_get_collections_manifest.cxx +2 -1
- data/ext/couchbase/core/protocol/cmd_get_error_map.cxx +2 -1
- data/ext/couchbase/core/protocol/cmd_hello.cxx +5 -5
- data/ext/couchbase/core/protocol/cmd_mutate_in.cxx +2 -2
- data/ext/couchbase/core/protocol/cmd_observe_seqno.cxx +3 -2
- data/ext/couchbase/core/protocol/cmd_observe_seqno.hxx +1 -1
- data/ext/couchbase/core/protocol/status.cxx +0 -1
- data/ext/couchbase/core/range_scan_load_balancer.cxx +10 -9
- data/ext/couchbase/core/range_scan_load_balancer.hxx +3 -4
- data/ext/couchbase/core/range_scan_orchestrator.cxx +44 -27
- data/ext/couchbase/core/retry_orchestrator.cxx +1 -1
- data/ext/couchbase/core/retry_orchestrator.hxx +1 -1
- data/ext/couchbase/core/row_streamer.cxx +239 -0
- data/ext/couchbase/core/row_streamer.hxx +68 -0
- data/ext/couchbase/core/sasl/context.cc +2 -2
- data/ext/couchbase/core/sasl/mechanism.cc +3 -5
- data/ext/couchbase/core/sasl/mechanism.h +2 -5
- data/ext/couchbase/core/sasl/plain/plain.cc +2 -2
- data/ext/couchbase/core/sasl/scram-sha/scram-sha.cc +21 -20
- data/ext/couchbase/core/sasl/scram-sha/stringutils.cc +4 -4
- data/ext/couchbase/core/sasl/scram-sha/stringutils.h +4 -4
- data/ext/couchbase/core/scan_result.cxx +4 -4
- data/ext/couchbase/core/scan_result.hxx +1 -1
- data/ext/couchbase/core/timeout_defaults.hxx +1 -0
- data/ext/couchbase/core/topology/collections_manifest.hxx +3 -3
- data/ext/couchbase/core/topology/configuration.hxx +2 -0
- data/ext/couchbase/core/topology/configuration_json.hxx +10 -2
- data/ext/couchbase/core/tracing/constants.hxx +3 -0
- data/ext/couchbase/core/tracing/threshold_logging_tracer.cxx +22 -26
- data/ext/couchbase/core/tracing/threshold_logging_tracer.hxx +1 -1
- data/ext/couchbase/core/tracing/tracer_wrapper.cxx +87 -0
- data/ext/couchbase/core/tracing/tracer_wrapper.hxx +57 -0
- data/ext/couchbase/core/transactions/active_transaction_record.cxx +31 -32
- data/ext/couchbase/core/transactions/async_attempt_context.hxx +3 -3
- data/ext/couchbase/core/transactions/atr_cleanup_entry.cxx +68 -56
- data/ext/couchbase/core/transactions/atr_ids.cxx +3 -2
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +512 -408
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +40 -67
- data/ext/couchbase/core/transactions/attempt_context_testing_hooks.cxx +3 -0
- data/ext/couchbase/core/transactions/binary.cxx +1 -1
- data/ext/couchbase/core/transactions/cleanup_testing_hooks.cxx +2 -1
- data/ext/couchbase/core/transactions/document_metadata.hxx +4 -4
- data/ext/couchbase/core/transactions/exceptions.cxx +11 -12
- data/ext/couchbase/core/transactions/forward_compat.cxx +40 -29
- data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +12 -11
- data/ext/couchbase/core/transactions/internal/doc_record.cxx +7 -7
- data/ext/couchbase/core/transactions/internal/transaction_context.hxx +46 -96
- data/ext/couchbase/core/transactions/internal/transactions_cleanup.hxx +34 -33
- data/ext/couchbase/core/transactions/internal/utils.hxx +3 -2
- data/ext/couchbase/core/transactions/result.cxx +1 -1
- data/ext/couchbase/core/transactions/staged_mutation.cxx +105 -97
- data/ext/couchbase/core/transactions/staged_mutation.hxx +28 -26
- data/ext/couchbase/core/transactions/transaction_context.cxx +118 -8
- data/ext/couchbase/core/transactions/transaction_get_result.cxx +5 -1
- data/ext/couchbase/core/transactions/transaction_get_result.hxx +9 -17
- data/ext/couchbase/core/transactions/transaction_keyspace.cxx +1 -1
- data/ext/couchbase/core/transactions/transaction_links.cxx +87 -2
- data/ext/couchbase/core/transactions/transaction_links.hxx +6 -65
- data/ext/couchbase/core/transactions/transaction_options.cxx +3 -2
- data/ext/couchbase/core/transactions/transactions.cxx +12 -9
- data/ext/couchbase/core/transactions/transactions_cleanup.cxx +59 -68
- data/ext/couchbase/core/transactions/transactions_config.cxx +1 -3
- data/ext/couchbase/core/transactions/uid_generator.cxx +3 -1
- data/ext/couchbase/core/transactions/utils.cxx +14 -14
- data/ext/couchbase/core/transactions.hxx +3 -4
- data/ext/couchbase/core/utils/connection_string.cxx +135 -47
- data/ext/couchbase/core/utils/duration_parser.cxx +11 -9
- data/ext/couchbase/core/utils/json.cxx +14 -4
- data/ext/couchbase/core/utils/json.hxx +1 -1
- data/ext/couchbase/core/utils/json_streaming_lexer.cxx +44 -9
- data/ext/couchbase/core/utils/json_streaming_lexer.hxx +4 -0
- data/ext/couchbase/core/utils/movable_function.hxx +0 -1
- data/ext/couchbase/core/utils/url_codec.cxx +7 -4
- data/ext/couchbase/couchbase/analytics_index_manager.hxx +24 -24
- data/ext/couchbase/couchbase/analytics_meta_data.hxx +2 -1
- data/ext/couchbase/couchbase/analytics_options.hxx +32 -15
- data/ext/couchbase/couchbase/analytics_result.hxx +7 -9
- data/ext/couchbase/couchbase/behavior_options.hxx +1 -10
- data/ext/couchbase/couchbase/boolean_query.hxx +1 -1
- data/ext/couchbase/couchbase/bucket_manager.hxx +1 -0
- data/ext/couchbase/couchbase/codec/codec_flags.hxx +0 -1
- data/ext/couchbase/couchbase/codec/default_json_transcoder.hxx +1 -1
- data/ext/couchbase/couchbase/codec/tao_json_serializer.hxx +1 -1
- data/ext/couchbase/couchbase/collection.hxx +14 -0
- data/ext/couchbase/couchbase/conjunction_query.hxx +1 -1
- data/ext/couchbase/couchbase/create_bucket_options.hxx +1 -0
- data/ext/couchbase/couchbase/date_range_facet_result.hxx +1 -0
- data/ext/couchbase/couchbase/date_range_query.hxx +2 -2
- data/ext/couchbase/couchbase/disjunction_query.hxx +1 -1
- data/ext/couchbase/couchbase/drop_bucket_options.hxx +3 -3
- data/ext/couchbase/couchbase/expiry.hxx +2 -2
- data/ext/couchbase/couchbase/flush_bucket_options.hxx +2 -4
- data/ext/couchbase/couchbase/geo_bounding_box_query.hxx +1 -1
- data/ext/couchbase/couchbase/geo_distance_query.hxx +1 -1
- data/ext/couchbase/couchbase/geo_polygon_query.hxx +1 -1
- data/ext/couchbase/couchbase/get_all_buckets_options.hxx +2 -3
- data/ext/couchbase/couchbase/get_bucket_options.hxx +2 -3
- data/ext/couchbase/couchbase/get_replica_result.hxx +2 -2
- data/ext/couchbase/couchbase/get_result.hxx +2 -2
- data/ext/couchbase/couchbase/lookup_in_result.hxx +20 -7
- data/ext/couchbase/couchbase/match_phrase_query.hxx +1 -1
- data/ext/couchbase/couchbase/match_query.hxx +2 -2
- data/ext/couchbase/couchbase/mutate_in_result.hxx +17 -6
- data/ext/couchbase/couchbase/mutate_in_specs.hxx +16 -12
- data/ext/couchbase/couchbase/network_options.hxx +11 -1
- data/ext/couchbase/couchbase/numeric_range_query.hxx +2 -1
- data/ext/couchbase/couchbase/phrase_query.hxx +1 -1
- data/ext/couchbase/couchbase/prefix_query.hxx +1 -1
- data/ext/couchbase/couchbase/query_index_manager.hxx +14 -14
- data/ext/couchbase/couchbase/query_options.hxx +32 -14
- data/ext/couchbase/couchbase/query_result.hxx +9 -10
- data/ext/couchbase/couchbase/query_string_query.hxx +3 -3
- data/ext/couchbase/couchbase/regexp_query.hxx +1 -1
- data/ext/couchbase/couchbase/search_meta_data.hxx +3 -0
- data/ext/couchbase/couchbase/search_numeric_range.hxx +1 -0
- data/ext/couchbase/couchbase/search_options.hxx +9 -3
- data/ext/couchbase/couchbase/search_row.hxx +3 -0
- data/ext/couchbase/couchbase/search_row_location.hxx +2 -1
- data/ext/couchbase/couchbase/search_row_locations.hxx +4 -0
- data/ext/couchbase/couchbase/search_sort_field.hxx +2 -2
- data/ext/couchbase/couchbase/subdoc/lookup_in_macro.hxx +1 -1
- data/ext/couchbase/couchbase/term_query.hxx +1 -1
- data/ext/couchbase/couchbase/term_range_query.hxx +1 -1
- data/ext/couchbase/couchbase/transactions/async_attempt_context.hxx +7 -1
- data/ext/couchbase/couchbase/transactions/attempt_context.hxx +36 -10
- data/ext/couchbase/couchbase/transactions/transaction_get_result.hxx +26 -3
- data/ext/couchbase/couchbase/transactions/transaction_keyspace.hxx +1 -1
- data/ext/couchbase/couchbase/update_bucket_options.hxx +3 -3
- data/ext/couchbase/couchbase/vector_query.hxx +1 -1
- data/ext/couchbase/couchbase/wildcard_query.hxx +1 -1
- data/ext/extconf.rb +3 -0
- data/ext/rcb_backend.cxx +0 -1
- data/ext/rcb_crud.cxx +2 -0
- data/ext/rcb_version.cxx +4 -1
- data/lib/active_support/cache/couchbase_store.rb +2 -2
- data/lib/couchbase/version.rb +1 -1
- metadata +852 -910
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/any_completion_executor.hpp +0 -336
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/any_completion_handler.hpp +0 -812
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/any_io_executor.hpp +0 -351
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/append.hpp +0 -65
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/as_tuple.hpp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/associated_allocator.hpp +0 -214
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/associated_cancellation_slot.hpp +0 -221
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/associated_executor.hpp +0 -235
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/associated_immediate_executor.hpp +0 -280
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/associator.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/async_result.hpp +0 -893
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/awaitable.hpp +0 -142
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_datagram_socket.hpp +0 -1362
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_deadline_timer.hpp +0 -710
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_file.hpp +0 -824
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_io_object.hpp +0 -286
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_random_access_file.hpp +0 -689
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_raw_socket.hpp +0 -1356
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_readable_pipe.hpp +0 -626
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_seq_packet_socket.hpp +0 -823
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_serial_port.hpp +0 -987
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_signal_set.hpp +0 -648
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_socket.hpp +0 -1936
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_socket_acceptor.hpp +0 -2708
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_socket_iostream.hpp +0 -331
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_socket_streambuf.hpp +0 -642
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_stream_file.hpp +0 -744
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_stream_socket.hpp +0 -1163
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_streambuf.hpp +0 -450
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_streambuf_fwd.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_waitable_timer.hpp +0 -824
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/basic_writable_pipe.hpp +0 -622
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/bind_allocator.hpp +0 -524
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/bind_cancellation_slot.hpp +0 -536
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/bind_executor.hpp +0 -576
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/bind_immediate_executor.hpp +0 -543
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffer.hpp +0 -2751
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffer_registration.hpp +0 -318
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_read_stream.hpp +0 -273
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_read_stream_fwd.hpp +0 -25
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_stream.hpp +0 -292
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_stream_fwd.hpp +0 -25
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_write_stream.hpp +0 -265
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffered_write_stream_fwd.hpp +0 -25
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/buffers_iterator.hpp +0 -521
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/cancellation_signal.hpp +0 -245
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/cancellation_state.hpp +0 -235
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/cancellation_type.hpp +0 -157
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/co_spawn.hpp +0 -523
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/completion_condition.hpp +0 -218
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/compose.hpp +0 -319
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/connect.hpp +0 -1180
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/connect_pipe.hpp +0 -83
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/consign.hpp +0 -75
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/coroutine.hpp +0 -328
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/deadline_timer.hpp +0 -38
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/defer.hpp +0 -218
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/deferred.hpp +0 -715
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detached.hpp +0 -105
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/array.hpp +0 -30
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/array_fwd.hpp +0 -32
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/assert.hpp +0 -32
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/atomic_count.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +0 -164
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/base_from_completion_cond.hpp +0 -69
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/bind_handler.hpp +0 -711
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/blocking_executor_op.hpp +0 -107
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/buffer_resize_guard.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +0 -837
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/buffered_stream_storage.hpp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/call_stack.hpp +0 -125
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/chrono.hpp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/chrono_time_traits.hpp +0 -190
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/completion_handler.hpp +0 -88
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/composed_work.hpp +0 -252
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/concurrency_hint.hpp +0 -94
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +0 -120
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +0 -149
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/config.hpp +0 -1422
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/consuming_buffers.hpp +0 -443
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/cstddef.hpp +0 -27
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/cstdint.hpp +0 -40
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/date_time_fwd.hpp +0 -34
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/deadline_timer_service.hpp +0 -335
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/dependent_type.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/descriptor_ops.hpp +0 -179
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/descriptor_read_op.hpp +0 -188
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/descriptor_write_op.hpp +0 -187
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/dev_poll_reactor.hpp +0 -247
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/epoll_reactor.hpp +0 -295
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/event.hpp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +0 -83
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/exception.hpp +0 -29
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/executor_function.hpp +0 -152
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/executor_op.hpp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/fd_set_adapter.hpp +0 -39
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/fenced_block.hpp +0 -40
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/functional.hpp +0 -33
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/future.hpp +0 -32
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/global.hpp +0 -50
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +0 -225
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/handler_cont_helpers.hpp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/handler_tracking.hpp +0 -264
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/handler_type_requirements.hpp +0 -553
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/handler_work.hpp +0 -511
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/hash_map.hpp +0 -331
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +0 -118
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +0 -970
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +0 -111
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +0 -469
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +0 -109
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +0 -826
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +0 -171
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/handler_tracking.ipp +0 -398
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +0 -205
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +0 -140
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/io_uring_service.hpp +0 -112
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/io_uring_service.ipp +0 -914
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +0 -249
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +0 -113
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +0 -608
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/null_event.ipp +0 -74
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +0 -129
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/posix_event.ipp +0 -63
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/posix_mutex.ipp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +0 -168
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/posix_thread.ipp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +0 -230
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +0 -310
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +0 -158
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/scheduler.ipp +0 -675
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/select_reactor.hpp +0 -124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/select_reactor.ipp +0 -400
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/service_registry.hpp +0 -93
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/service_registry.ipp +0 -197
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/signal_set_service.ipp +0 -826
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/socket_ops.ipp +0 -3977
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +0 -185
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +0 -346
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +0 -158
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/strand_service.hpp +0 -86
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/strand_service.ipp +0 -202
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/thread_context.ipp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/throw_error.ipp +0 -49
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +0 -97
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +0 -101
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_event.ipp +0 -76
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +0 -265
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +0 -619
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +0 -119
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +0 -614
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +0 -200
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +0 -821
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_mutex.ipp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +0 -452
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +0 -136
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_thread.ipp +0 -150
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +0 -57
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +0 -626
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +0 -92
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +0 -121
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/impl/winsock_init.ipp +0 -82
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/initiate_defer.hpp +0 -207
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/initiate_dispatch.hpp +0 -193
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/initiate_post.hpp +0 -207
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_control.hpp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_object_impl.hpp +0 -177
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +0 -195
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +0 -190
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +0 -687
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +0 -189
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +0 -185
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_file_service.hpp +0 -261
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +0 -114
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_operation.hpp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_service.hpp +0 -319
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +0 -280
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +0 -140
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +0 -205
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +0 -206
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +0 -192
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +0 -191
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +0 -194
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_service.hpp +0 -629
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +0 -663
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/io_uring_wait_op.hpp +0 -112
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/is_buffer_sequence.hpp +0 -296
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/is_executor.hpp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +0 -70
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/kqueue_reactor.hpp +0 -271
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/memory.hpp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/mutex.hpp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/non_const_lvalue.hpp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/noncopyable.hpp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_event.hpp +0 -106
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_fenced_block.hpp +0 -47
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_global.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_mutex.hpp +0 -60
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_reactor.hpp +0 -83
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_signal_blocker.hpp +0 -69
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_socket_service.hpp +0 -519
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_static_mutex.hpp +0 -60
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_thread.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/null_tss_ptr.hpp +0 -68
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/object_pool.hpp +0 -171
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +0 -214
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/op_queue.hpp +0 -162
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/operation.hpp +0 -38
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +0 -89
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/pop_options.hpp +0 -157
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_event.hpp +0 -175
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +0 -118
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_global.hpp +0 -80
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_mutex.hpp +0 -76
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_serial_port_service.hpp +0 -249
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_signal_blocker.hpp +0 -85
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_static_mutex.hpp +0 -64
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_thread.hpp +0 -109
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/posix_tss_ptr.hpp +0 -79
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/push_options.hpp +0 -228
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +0 -566
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +0 -131
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +0 -323
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +0 -162
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +0 -197
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +0 -203
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +0 -184
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +0 -201
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +0 -194
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_service.hpp +0 -633
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +0 -750
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactive_wait_op.hpp +0 -131
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactor.hpp +0 -54
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactor_op.hpp +0 -71
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/reactor_op_queue.hpp +0 -212
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/recycling_allocator.hpp +0 -105
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/regex_fwd.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +0 -140
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/resolve_op.hpp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/resolve_query_op.hpp +0 -150
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/resolver_service.hpp +0 -147
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/resolver_service_base.hpp +0 -158
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scheduler.hpp +0 -241
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scheduler_operation.hpp +0 -78
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scheduler_task.hpp +0 -49
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scheduler_thread_info.hpp +0 -40
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scoped_lock.hpp +0 -101
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/scoped_ptr.hpp +0 -87
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/select_interrupter.hpp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/select_reactor.hpp +0 -291
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/service_registry.hpp +0 -163
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/signal_blocker.hpp +0 -44
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/signal_handler.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/signal_init.hpp +0 -47
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/signal_op.hpp +0 -53
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/signal_set_service.hpp +0 -292
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/socket_holder.hpp +0 -98
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/socket_ops.hpp +0 -375
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/socket_option.hpp +0 -316
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/socket_select_interrupter.hpp +0 -91
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/socket_types.hpp +0 -427
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/source_location.hpp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/static_mutex.hpp +0 -50
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_event.hpp +0 -183
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_fenced_block.hpp +0 -57
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_global.hpp +0 -65
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_mutex.hpp +0 -68
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_static_mutex.hpp +0 -76
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/std_thread.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/strand_executor_service.hpp +0 -173
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/strand_service.hpp +0 -144
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/string_view.hpp +0 -47
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/thread.hpp +0 -58
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/thread_context.hpp +0 -51
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/thread_group.hpp +0 -99
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/thread_info_base.hpp +0 -250
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/throw_error.hpp +0 -62
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/throw_exception.hpp +0 -55
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_queue.hpp +0 -389
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_queue_base.hpp +0 -68
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_queue_ptime.hpp +0 -103
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_queue_set.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_scheduler.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +0 -42
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/tss_ptr.hpp +0 -69
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/type_traits.hpp +0 -178
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/utility.hpp +0 -83
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/wait_handler.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/wait_op.hpp +0 -49
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_event.hpp +0 -164
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +0 -149
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_global.hpp +0 -71
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_file_service.hpp +0 -287
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +0 -119
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +0 -431
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +0 -114
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_io_context.hpp +0 -347
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +0 -129
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_operation.hpp +0 -96
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +0 -100
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +0 -171
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +0 -233
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +0 -339
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +0 -138
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +0 -135
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +0 -127
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +0 -120
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +0 -680
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +0 -829
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +0 -34
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +0 -130
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_mutex.hpp +0 -78
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_object_handle_service.hpp +0 -194
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_static_mutex.hpp +0 -74
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_thread.hpp +0 -147
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/win_tss_ptr.hpp +0 -79
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winapp_thread.hpp +0 -124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/wince_thread.hpp +0 -124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_async_manager.hpp +0 -305
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_async_op.hpp +0 -65
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_resolve_op.hpp +0 -125
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_resolver_service.hpp +0 -212
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +0 -98
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +0 -119
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +0 -110
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +0 -250
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +0 -362
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +0 -147
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winrt_utils.hpp +0 -106
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/winsock_init.hpp +0 -128
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/work_dispatcher.hpp +0 -143
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/detail/wrapped_handler.hpp +0 -217
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/dispatch.hpp +0 -197
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/error.hpp +0 -389
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/error_code.hpp +0 -39
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/allocator.hpp +0 -278
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/any_executor.hpp +0 -1933
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/bad_executor.hpp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/blocking.hpp +0 -1360
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/blocking_adaptation.hpp +0 -1080
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/context.hpp +0 -191
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/context_as.hpp +0 -190
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/executor.hpp +0 -116
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/impl/bad_executor.ipp +0 -40
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/invocable_archetype.hpp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/mapping.hpp +0 -1002
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/occupancy.hpp +0 -184
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/outstanding_work.hpp +0 -753
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/prefer_only.hpp +0 -328
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution/relationship.hpp +0 -751
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution.hpp +0 -33
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/execution_context.hpp +0 -388
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/executor.hpp +0 -343
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/executor_work_guard.hpp +0 -362
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/append.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/as_single.hpp +0 -132
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/as_tuple.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/awaitable_operators.hpp +0 -536
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/basic_channel.hpp +0 -513
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +0 -513
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/cancellation_condition.hpp +0 -152
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/channel.hpp +0 -70
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/channel_error.hpp +0 -82
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/channel_traits.hpp +0 -301
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/co_composed.hpp +0 -145
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/concurrent_channel.hpp +0 -70
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/deferred.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_handler.hpp +0 -77
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_message.hpp +0 -129
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_operation.hpp +0 -361
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_payload.hpp +0 -222
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +0 -127
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +0 -192
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +0 -148
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/channel_service.hpp +0 -677
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +0 -141
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/has_signature.hpp +0 -54
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +0 -620
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/detail/partial_promise.hpp +0 -197
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/impl/as_single.hpp +0 -176
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/impl/channel_error.ipp +0 -61
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/impl/co_composed.hpp +0 -1174
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/impl/parallel_group.hpp +0 -787
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/parallel_group.hpp +0 -456
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/prepend.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/promise.hpp +0 -224
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/experimental/use_coro.hpp +0 -189
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/file_base.hpp +0 -166
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/basic_endpoint.hpp +0 -189
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/datagram_protocol.hpp +0 -123
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/detail/endpoint.hpp +0 -133
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +0 -110
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/raw_protocol.hpp +0 -121
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/seq_packet_protocol.hpp +0 -122
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/generic/stream_protocol.hpp +0 -127
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/handler_continuation_hook.hpp +0 -54
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/high_resolution_timer.hpp +0 -39
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/any_completion_executor.ipp +0 -126
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/any_io_executor.ipp +0 -134
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/append.hpp +0 -162
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/as_tuple.hpp +0 -245
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/awaitable.hpp +0 -1195
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/buffered_read_stream.hpp +0 -404
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/buffered_write_stream.hpp +0 -384
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/cancellation_signal.ipp +0 -96
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/co_spawn.hpp +0 -440
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/connect.hpp +0 -809
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/connect_pipe.hpp +0 -73
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/connect_pipe.ipp +0 -149
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/consign.hpp +0 -137
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/deferred.hpp +0 -147
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/detached.hpp +0 -77
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/error.ipp +0 -128
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/error_code.ipp +0 -206
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/execution_context.hpp +0 -77
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/execution_context.ipp +0 -82
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/executor.hpp +0 -300
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/executor.ipp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/io_context.hpp +0 -433
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/io_context.ipp +0 -176
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/multiple_exceptions.ipp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/prepend.hpp +0 -163
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/read.hpp +0 -1053
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/read_at.hpp +0 -628
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/read_until.hpp +0 -2941
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/redirect_error.hpp +0 -250
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/serial_port_base.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/serial_port_base.ipp +0 -554
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/spawn.hpp +0 -1400
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/src.hpp +0 -94
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/system_context.hpp +0 -34
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/system_context.ipp +0 -92
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/system_executor.hpp +0 -179
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/thread_pool.hpp +0 -277
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/thread_pool.ipp +0 -142
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/use_awaitable.hpp +0 -301
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/use_future.hpp +0 -707
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/write.hpp +0 -939
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/impl/write_at.hpp +0 -551
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/io_context.hpp +0 -1509
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/io_context_strand.hpp +0 -385
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/io_service.hpp +0 -33
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/io_service_strand.hpp +0 -20
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address.hpp +0 -281
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v4.hpp +0 -421
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v4_iterator.hpp +0 -156
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v4_range.hpp +0 -128
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v6.hpp +0 -407
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v6_iterator.hpp +0 -178
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/address_v6_range.hpp +0 -124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/bad_address_cast.hpp +0 -63
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_endpoint.hpp +0 -282
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_resolver.hpp +0 -1112
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_resolver_entry.hpp +0 -113
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +0 -188
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_resolver_query.hpp +0 -244
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/basic_resolver_results.hpp +0 -307
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/detail/endpoint.hpp +0 -141
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +0 -195
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/detail/socket_option.hpp +0 -566
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/host_name.hpp +0 -42
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/icmp.hpp +0 -115
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address.ipp +0 -235
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address_v4.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address_v4.ipp +0 -206
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address_v6.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/address_v6.ipp +0 -342
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/host_name.ipp +0 -54
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/network_v4.hpp +0 -54
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/network_v4.ipp +0 -218
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/network_v6.hpp +0 -53
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/impl/network_v6.ipp +0 -187
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/multicast.hpp +0 -191
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/network_v4.hpp +0 -257
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/network_v6.hpp +0 -231
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/resolver_base.hpp +0 -129
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/resolver_query_base.hpp +0 -43
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/tcp.hpp +0 -155
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/udp.hpp +0 -111
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/unicast.hpp +0 -70
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ip/v6_only.hpp +0 -69
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/is_applicable_property.hpp +0 -61
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/is_contiguous_iterator.hpp +0 -45
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/is_executor.hpp +0 -46
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/is_read_buffered.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/is_write_buffered.hpp +0 -59
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/basic_endpoint.hpp +0 -243
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/connect_pair.hpp +0 -101
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/datagram_protocol.hpp +0 -80
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/detail/endpoint.hpp +0 -139
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/detail/impl/endpoint.ipp +0 -131
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/seq_packet_protocol.hpp +0 -84
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/local/stream_protocol.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/multiple_exceptions.hpp +0 -52
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/packaged_task.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/placeholders.hpp +0 -75
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/posix/basic_descriptor.hpp +0 -773
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +0 -559
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/posix/descriptor.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/posix/descriptor_base.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/posix/stream_descriptor.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/post.hpp +0 -213
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/prefer.hpp +0 -577
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/prepend.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/query.hpp +0 -311
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/random_access_file.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/read.hpp +0 -1448
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/read_at.hpp +0 -778
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/read_until.hpp +0 -3124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/readable_pipe.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/recycling_allocator.hpp +0 -138
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/redirect_error.hpp +0 -64
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/registered_buffer.hpp +0 -344
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/require.hpp +0 -433
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/require_concept.hpp +0 -343
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/serial_port.hpp +0 -36
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/serial_port_base.hpp +0 -167
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/signal_set.hpp +0 -28
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/signal_set_base.hpp +0 -171
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/socket_base.hpp +0 -559
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/spawn.hpp +0 -872
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/context.hpp +0 -762
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/context_base.hpp +0 -209
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +0 -119
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/engine.hpp +0 -169
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/handshake_op.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/impl/engine.ipp +0 -377
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +0 -169
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/io.hpp +0 -376
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/openssl_init.hpp +0 -101
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/openssl_types.hpp +0 -34
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/password_callback.hpp +0 -66
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/read_op.hpp +0 -72
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +0 -69
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/stream_core.hpp +0 -217
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/verify_callback.hpp +0 -62
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/detail/write_op.hpp +0 -76
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/error.hpp +0 -123
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/host_name_verification.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/context.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/context.ipp +0 -1319
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/error.ipp +0 -124
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +0 -73
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +0 -164
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/impl/src.hpp +0 -29
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/rfc2818_verification.hpp +0 -98
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/stream.hpp +0 -1038
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/stream_base.hpp +0 -52
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/verify_context.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl/verify_mode.hpp +0 -63
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ssl.hpp +0 -28
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/static_thread_pool.hpp +0 -31
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/steady_timer.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/strand.hpp +0 -557
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/stream_file.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/streambuf.hpp +0 -33
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/system_context.hpp +0 -90
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/system_error.hpp +0 -31
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/system_executor.hpp +0 -671
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/system_timer.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/this_coro.hpp +0 -267
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/thread.hpp +0 -92
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/thread_pool.hpp +0 -963
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/time_traits.hpp +0 -86
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/equality_comparable.hpp +0 -100
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/execute_member.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/prefer_free.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/prefer_member.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/query_free.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/query_member.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +0 -101
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/require_concept_free.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/require_concept_member.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/require_free.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/require_member.hpp +0 -104
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/static_query.hpp +0 -102
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/static_require.hpp +0 -115
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/traits/static_require_concept.hpp +0 -116
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/buffer.hpp +0 -24
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/executor.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/internet.hpp +0 -40
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/io_context.hpp +0 -20
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/net.hpp +0 -26
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/netfwd.hpp +0 -236
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/socket.hpp +0 -27
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/ts/timer.hpp +0 -26
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/unyield.hpp +0 -21
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/use_awaitable.hpp +0 -161
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/use_future.hpp +0 -159
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/uses_executor.hpp +0 -67
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/version.hpp +0 -23
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/wait_traits.hpp +0 -56
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/basic_object_handle.hpp +0 -485
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +0 -455
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/basic_random_access_handle.hpp +0 -567
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/basic_stream_handle.hpp +0 -551
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/object_handle.hpp +0 -38
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/overlapped_handle.hpp +0 -39
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/overlapped_ptr.hpp +0 -145
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/random_access_handle.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/windows/stream_handle.hpp +0 -37
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/writable_pipe.hpp +0 -35
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/write.hpp +0 -1414
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/write_at.hpp +0 -789
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio/yield.hpp +0 -23
- data/ext/cache/asio/41f31469d0dd420500b334dc8c2fd3ffe7320d8e/asio/asio/include/asio.hpp +0 -199
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/CMakeLists.txt +0 -338
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-assertion-result.h +0 -237
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-death-test.h +0 -345
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-matchers.h +0 -923
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-message.h +0 -220
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-param-test.h +0 -546
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-printers.h +0 -1139
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-spi.h +0 -250
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-test-part.h +0 -192
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest-typed-test.h +0 -331
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest.h +0 -2318
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest_pred_impl.h +0 -279
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/gtest_prod.h +0 -60
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/custom/gtest-port.h +0 -37
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/custom/gtest.h +0 -37
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -307
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-filepath.h +0 -227
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-internal.h +0 -1559
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-param-util.h +0 -1026
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-port-arch.h +0 -118
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-port.h +0 -2529
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-string.h +0 -178
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/include/gtest/internal/gtest-type-util.h +0 -220
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/prime_tables.h +0 -125
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample1.cc +0 -66
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample1.h +0 -41
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample10_unittest.cc +0 -138
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample1_unittest.cc +0 -148
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample2.cc +0 -54
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample2.h +0 -79
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample2_unittest.cc +0 -107
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample3-inl.h +0 -171
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample3_unittest.cc +0 -146
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample4.cc +0 -50
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample4.h +0 -53
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample4_unittest.cc +0 -53
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample5_unittest.cc +0 -189
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample6_unittest.cc +0 -214
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample7_unittest.cc +0 -113
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample8_unittest.cc +0 -154
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/samples/sample9_unittest.cc +0 -148
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-all.cc +0 -49
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-assertion-result.cc +0 -77
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-death-test.cc +0 -1585
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-filepath.cc +0 -412
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-internal-inl.h +0 -1218
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-matchers.cc +0 -98
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-port.cc +0 -1392
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-printers.cc +0 -555
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-test-part.cc +0 -106
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest-typed-test.cc +0 -108
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest.cc +0 -6919
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/src/gtest_main.cc +0 -65
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-break-on-failure-unittest_.cc +0 -83
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-catch-exceptions-test_.cc +0 -289
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-color-test_.cc +0 -60
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-death-test-test.cc +0 -1508
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-death-test_ex_test.cc +0 -91
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-env-var-test_.cc +0 -130
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-failfast-unittest_.cc +0 -166
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-filepath-test.cc +0 -671
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-filter-unittest_.cc +0 -106
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-global-environment-unittest_.cc +0 -58
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-list-tests-unittest_.cc +0 -143
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-listener-test.cc +0 -509
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-message-test.cc +0 -161
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-options-test.cc +0 -222
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-output-test_.cc +0 -1052
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-param-test-invalid-name1-test_.cc +0 -46
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-param-test-invalid-name2-test_.cc +0 -52
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-param-test-test.cc +0 -1173
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-param-test-test.h +0 -49
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-param-test2-test.cc +0 -58
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-port-test.cc +0 -1301
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-printers-test.cc +0 -1990
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-setuptestsuite-test_.cc +0 -44
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-shuffle-test_.cc +0 -99
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-test-part-test.cc +0 -220
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-throw-on-failure-test_.cc +0 -71
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/googletest-uninitialized-test_.cc +0 -39
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest-typed-test2_test.cc +0 -39
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest-typed-test_test.cc +0 -423
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest-typed-test_test.h +0 -57
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest-unittest-api_test.cc +0 -328
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_all_test.cc +0 -46
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_assert_by_exception_test.cc +0 -112
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_dirs_test.cc +0 -101
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_environment_test.cc +0 -179
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_help_test_.cc +0 -44
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_list_output_unittest_.cc +0 -77
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_main_unittest.cc +0 -42
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_no_test_unittest.cc +0 -54
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_pred_impl_unittest.cc +0 -2070
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_premature_exit_test.cc +0 -128
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_prod_test.cc +0 -56
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_repeat_test.cc +0 -222
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_skip_in_environment_setup_test.cc +0 -50
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_skip_test.cc +0 -51
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_sole_header_test.cc +0 -54
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_stress_test.cc +0 -245
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_test_macro_stack_footprint_test.cc +0 -89
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_testbridge_test_.cc +0 -42
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -90
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_unittest.cc +0 -7767
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_xml_outfile1_test_.cc +0 -43
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_xml_outfile2_test_.cc +0 -77
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/gtest_xml_output_unittest_.cc +0 -197
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/production.cc +0 -35
- data/ext/cache/boringssl/e31ea00c1ea52052d2d78d44006cc88c80fa24a9/boringssl/src/third_party/googletest/test/production.h +0 -55
- data/ext/cache/fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/CMakeLists.txt +0 -453
- data/ext/cache/fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/ChangeLog.md +0 -5533
- data/ext/cache/fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/README.md +0 -490
- data/ext/cache/fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/src/fmt.cc +0 -108
- data/ext/cache/fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/src/os.cc +0 -402
- data/ext/cache/llhttp/b74a6759ffeff2e9b72f62f790afbc73362a526b/llhttp/CMakeLists.txt +0 -117
- data/ext/cache/llhttp/b74a6759ffeff2e9b72f62f790afbc73362a526b/llhttp/include/llhttp.h +0 -903
- data/ext/cache/llhttp/b74a6759ffeff2e9b72f62f790afbc73362a526b/llhttp/src/llhttp.c +0 -10149
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/CMakeLists.txt +0 -420
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/cmake/config.h.in +0 -66
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/snappy-internal.h +0 -395
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/snappy-stubs-internal.h +0 -525
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/snappy.cc +0 -2427
- data/ext/cache/snappy/76d5cfe9eb57e13784ae53647f505edbe9341bdf/snappy/snappy.h +0 -222
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/CMakeLists.txt +0 -359
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/async_logger-inl.h +0 -84
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/common.h +0 -411
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/circular_q.h +0 -113
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/file_helper-inl.h +0 -152
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/os-inl.h +0 -585
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/periodic_worker.h +0 -57
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/registry-inl.h +0 -265
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/registry.h +0 -122
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/thread_pool-inl.h +0 -127
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/details/thread_pool.h +0 -117
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/args.h +0 -234
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -2069
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/color.h +0 -651
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/compile.h +0 -611
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/core.h +0 -3323
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1723
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/format.h +0 -4217
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/os.h +0 -478
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -237
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/printf.h +0 -640
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -722
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/std.h +0 -171
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/bundled/xchar.h +0 -229
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/fmt/fmt.h +0 -34
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/pattern_formatter-inl.h +0 -1268
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/sinks/qt_sinks.h +0 -304
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/stopwatch.h +0 -62
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/include/spdlog/version.h +0 -11
- data/ext/cache/spdlog/25435891d500fa18cdfc40bd923333e006159907/spdlog/src/bundled_fmtlib_format.cpp +0 -49
- data/ext/couchbase/core/logger/CMakeLists.txt +0 -10
- data/ext/couchbase/core/meta/CMakeLists.txt +0 -27
- data/ext/couchbase/core/metrics/CMakeLists.txt +0 -14
- data/ext/couchbase/core/tracing/CMakeLists.txt +0 -12
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/detail/limits.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/co_spawn.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/coro.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/coro_traits.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/detail/coro_completion_handler.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/impl/coro.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/impl/promise.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/impl/use_coro.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/impl/use_promise.hpp +0 -0
- /data/ext/cache/asio/{41f31469d0dd420500b334dc8c2fd3ffe7320d8e → b710bc0ca14b231d20e983b02d27485125c7860e}/asio/asio/include/asio/experimental/use_promise.hpp +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/LICENSE +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/src/format.cc +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/support/cmake/FindSetEnv.cmake +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/support/cmake/JoinPaths.cmake +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/support/cmake/fmt-config.cmake.in +0 -0
- /data/ext/cache/fmt/{d3c862243fcf1c41b4c09903f35479bd42f135b7 → 141a17a028e6c29914e109691389f6cf87f9cfe3}/fmt/support/cmake/fmt.pc.in +0 -0
- /data/ext/cache/llhttp/{b74a6759ffeff2e9b72f62f790afbc73362a526b → c67596e14f24b689a867a26fa36e02bdba733b9b}/llhttp/LICENSE-MIT +0 -0
- /data/ext/cache/llhttp/{b74a6759ffeff2e9b72f62f790afbc73362a526b → c67596e14f24b689a867a26fa36e02bdba733b9b}/llhttp/libllhttp.pc.in +0 -0
- /data/ext/cache/llhttp/{b74a6759ffeff2e9b72f62f790afbc73362a526b → c67596e14f24b689a867a26fa36e02bdba733b9b}/llhttp/src/api.c +0 -0
- /data/ext/cache/llhttp/{b74a6759ffeff2e9b72f62f790afbc73362a526b → c67596e14f24b689a867a26fa36e02bdba733b9b}/llhttp/src/http.c +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/COPYING +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/cmake/SnappyConfig.cmake.in +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-c.cc +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-c.h +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-sinksource.cc +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-sinksource.h +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-stubs-internal.cc +0 -0
- /data/ext/cache/snappy/{76d5cfe9eb57e13784ae53647f505edbe9341bdf → 585305c8dbb8f762f2c2e17f937f1cf3ac6cbc9c}/snappy/snappy-stubs-public.h.in +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/LICENSE +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/ide.cmake +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/pch.h.in +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/spdlog.pc.in +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/spdlogCPack.cmake +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/spdlogConfig.cmake.in +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/utils.cmake +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/cmake/version.rc.in +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/async.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/async_logger.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/cfg/argv.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/cfg/env.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/cfg/helpers-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/cfg/helpers.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/common-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/backtracer-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/backtracer.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/console_globals.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/file_helper.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/fmt_helper.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/log_msg-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/log_msg.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/log_msg_buffer.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/mpmc_blocking_q.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/null_mutex.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/os.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/synchronous_factory.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/tcp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/tcp_client.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/udp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/udp_client.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/details/windows_include.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/args.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/chrono.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/color.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/compile.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/core.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/bundled/fmt.license.rst +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/format-inl.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/format.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/bundled/locale.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/os.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/ostream.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/printf.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/ranges.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/std.h +0 -0
- /data/ext/cache/{fmt/d3c862243fcf1c41b4c09903f35479bd42f135b7/fmt/include/fmt → spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled}/xchar.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/chrono.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/compile.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/ostr.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/ranges.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/std.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fmt/xchar.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/formatter.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/fwd.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/logger-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/logger.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/pattern_formatter.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/android_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/ansicolor_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/base_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/callback_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/daily_file_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/dist_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/hourly_file_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/kafka_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/mongo_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/msvc_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/null_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/ostream_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/syslog_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/systemd_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/tcp_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/udp_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/spdlog-inl.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/spdlog.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/include/spdlog/tweakme.h +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/async.cpp +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/cfg.cpp +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/color_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/file_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/spdlog.cpp +0 -0
- /data/ext/cache/spdlog/{25435891d500fa18cdfc40bd923333e006159907 → 19df5d3d8e5526c255d27414e09568671ef87483}/spdlog/src/stdout_sinks.cpp +0 -0
- /data/ext/couchbase/cmake/{couchbase-cxx-client.pc.in → couchbase_cxx_client.pc.in} +0 -0
@@ -0,0 +1,4419 @@
|
|
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
|
+
#ifndef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
|
37
|
+
# define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
|
38
|
+
# define FMT_REMOVE_TRANSITIVE_INCLUDES
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#include "base.h"
|
42
|
+
|
43
|
+
#ifndef FMT_MODULE
|
44
|
+
# include <cmath> // std::signbit
|
45
|
+
# include <cstdint> // uint32_t
|
46
|
+
# include <cstring> // std::memcpy
|
47
|
+
# include <initializer_list> // std::initializer_list
|
48
|
+
# include <limits> // std::numeric_limits
|
49
|
+
# if defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI)
|
50
|
+
// Workaround for pre gcc 5 libstdc++.
|
51
|
+
# include <memory> // std::allocator_traits
|
52
|
+
# endif
|
53
|
+
# include <stdexcept> // std::runtime_error
|
54
|
+
# include <string> // std::string
|
55
|
+
# include <system_error> // std::system_error
|
56
|
+
|
57
|
+
// Checking FMT_CPLUSPLUS for warning suppression in MSVC.
|
58
|
+
# if FMT_HAS_INCLUDE(<bit>) && FMT_CPLUSPLUS > 201703L
|
59
|
+
# include <bit> // std::bit_cast
|
60
|
+
# endif
|
61
|
+
|
62
|
+
// libc++ supports string_view in pre-c++17.
|
63
|
+
# if FMT_HAS_INCLUDE(<string_view>) && \
|
64
|
+
(FMT_CPLUSPLUS >= 201703L || defined(_LIBCPP_VERSION))
|
65
|
+
# include <string_view>
|
66
|
+
# define FMT_USE_STRING_VIEW
|
67
|
+
# endif
|
68
|
+
#endif // FMT_MODULE
|
69
|
+
|
70
|
+
#if defined __cpp_inline_variables && __cpp_inline_variables >= 201606L
|
71
|
+
# define FMT_INLINE_VARIABLE inline
|
72
|
+
#else
|
73
|
+
# define FMT_INLINE_VARIABLE
|
74
|
+
#endif
|
75
|
+
|
76
|
+
#ifndef FMT_NO_UNIQUE_ADDRESS
|
77
|
+
# if FMT_CPLUSPLUS >= 202002L
|
78
|
+
# if FMT_HAS_CPP_ATTRIBUTE(no_unique_address)
|
79
|
+
# define FMT_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
80
|
+
// VS2019 v16.10 and later except clang-cl (https://reviews.llvm.org/D110485).
|
81
|
+
# elif (FMT_MSC_VERSION >= 1929) && !FMT_CLANG_VERSION
|
82
|
+
# define FMT_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
83
|
+
# endif
|
84
|
+
# endif
|
85
|
+
#endif
|
86
|
+
#ifndef FMT_NO_UNIQUE_ADDRESS
|
87
|
+
# define FMT_NO_UNIQUE_ADDRESS
|
88
|
+
#endif
|
89
|
+
|
90
|
+
// Visibility when compiled as a shared library/object.
|
91
|
+
#if defined(FMT_LIB_EXPORT) || defined(FMT_SHARED)
|
92
|
+
# define FMT_SO_VISIBILITY(value) FMT_VISIBILITY(value)
|
93
|
+
#else
|
94
|
+
# define FMT_SO_VISIBILITY(value)
|
95
|
+
#endif
|
96
|
+
|
97
|
+
#ifdef __has_builtin
|
98
|
+
# define FMT_HAS_BUILTIN(x) __has_builtin(x)
|
99
|
+
#else
|
100
|
+
# define FMT_HAS_BUILTIN(x) 0
|
101
|
+
#endif
|
102
|
+
|
103
|
+
#if FMT_GCC_VERSION || FMT_CLANG_VERSION
|
104
|
+
# define FMT_NOINLINE __attribute__((noinline))
|
105
|
+
#else
|
106
|
+
# define FMT_NOINLINE
|
107
|
+
#endif
|
108
|
+
|
109
|
+
#ifndef FMT_THROW
|
110
|
+
# if FMT_EXCEPTIONS
|
111
|
+
# if FMT_MSC_VERSION || defined(__NVCC__)
|
112
|
+
FMT_BEGIN_NAMESPACE
|
113
|
+
namespace detail {
|
114
|
+
template <typename Exception> inline void do_throw(const Exception& x) {
|
115
|
+
// Silence unreachable code warnings in MSVC and NVCC because these
|
116
|
+
// are nearly impossible to fix in a generic code.
|
117
|
+
volatile bool b = true;
|
118
|
+
if (b) throw x;
|
119
|
+
}
|
120
|
+
} // namespace detail
|
121
|
+
FMT_END_NAMESPACE
|
122
|
+
# define FMT_THROW(x) detail::do_throw(x)
|
123
|
+
# else
|
124
|
+
# define FMT_THROW(x) throw x
|
125
|
+
# endif
|
126
|
+
# else
|
127
|
+
# define FMT_THROW(x) \
|
128
|
+
::fmt::detail::assert_fail(__FILE__, __LINE__, (x).what())
|
129
|
+
# endif
|
130
|
+
#endif
|
131
|
+
|
132
|
+
#ifndef FMT_MAYBE_UNUSED
|
133
|
+
# if FMT_HAS_CPP17_ATTRIBUTE(maybe_unused)
|
134
|
+
# define FMT_MAYBE_UNUSED [[maybe_unused]]
|
135
|
+
# else
|
136
|
+
# define FMT_MAYBE_UNUSED
|
137
|
+
# endif
|
138
|
+
#endif
|
139
|
+
|
140
|
+
#ifndef FMT_USE_USER_DEFINED_LITERALS
|
141
|
+
// EDG based compilers (Intel, NVIDIA, Elbrus, etc), GCC and MSVC support UDLs.
|
142
|
+
//
|
143
|
+
// GCC before 4.9 requires a space in `operator"" _a` which is invalid in later
|
144
|
+
// compiler versions.
|
145
|
+
# if (FMT_HAS_FEATURE(cxx_user_literals) || FMT_GCC_VERSION >= 409 || \
|
146
|
+
FMT_MSC_VERSION >= 1900) && \
|
147
|
+
(!defined(__EDG_VERSION__) || __EDG_VERSION__ >= /* UDL feature */ 480)
|
148
|
+
# define FMT_USE_USER_DEFINED_LITERALS 1
|
149
|
+
# else
|
150
|
+
# define FMT_USE_USER_DEFINED_LITERALS 0
|
151
|
+
# endif
|
152
|
+
#endif
|
153
|
+
|
154
|
+
// Defining FMT_REDUCE_INT_INSTANTIATIONS to 1, will reduce the number of
|
155
|
+
// integer formatter template instantiations to just one by only using the
|
156
|
+
// largest integer type. This results in a reduction in binary size but will
|
157
|
+
// cause a decrease in integer formatting performance.
|
158
|
+
#if !defined(FMT_REDUCE_INT_INSTANTIATIONS)
|
159
|
+
# define FMT_REDUCE_INT_INSTANTIATIONS 0
|
160
|
+
#endif
|
161
|
+
|
162
|
+
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
163
|
+
// https://github.com/fmtlib/fmt/issues/519.
|
164
|
+
#if !FMT_MSC_VERSION
|
165
|
+
# if FMT_HAS_BUILTIN(__builtin_clz) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
166
|
+
# define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
|
167
|
+
# endif
|
168
|
+
# if FMT_HAS_BUILTIN(__builtin_clzll) || FMT_GCC_VERSION || FMT_ICC_VERSION
|
169
|
+
# define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
|
170
|
+
# endif
|
171
|
+
#endif
|
172
|
+
|
173
|
+
// __builtin_ctz is broken in Intel Compiler Classic on Windows:
|
174
|
+
// https://github.com/fmtlib/fmt/issues/2510.
|
175
|
+
#ifndef __ICL
|
176
|
+
# if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || FMT_ICC_VERSION || \
|
177
|
+
defined(__NVCOMPILER)
|
178
|
+
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
|
179
|
+
# endif
|
180
|
+
# if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || \
|
181
|
+
FMT_ICC_VERSION || defined(__NVCOMPILER)
|
182
|
+
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
|
183
|
+
# endif
|
184
|
+
#endif
|
185
|
+
|
186
|
+
#if FMT_MSC_VERSION
|
187
|
+
# include <intrin.h> // _BitScanReverse[64], _BitScanForward[64], _umul128
|
188
|
+
#endif
|
189
|
+
|
190
|
+
// Some compilers masquerade as both MSVC and GCC-likes or otherwise support
|
191
|
+
// __builtin_clz and __builtin_clzll, so only define FMT_BUILTIN_CLZ using the
|
192
|
+
// MSVC intrinsics if the clz and clzll builtins are not available.
|
193
|
+
#if FMT_MSC_VERSION && !defined(FMT_BUILTIN_CLZLL) && \
|
194
|
+
!defined(FMT_BUILTIN_CTZLL)
|
195
|
+
FMT_BEGIN_NAMESPACE
|
196
|
+
namespace detail {
|
197
|
+
// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
|
198
|
+
# if !defined(__clang__)
|
199
|
+
# pragma intrinsic(_BitScanForward)
|
200
|
+
# pragma intrinsic(_BitScanReverse)
|
201
|
+
# if defined(_WIN64)
|
202
|
+
# pragma intrinsic(_BitScanForward64)
|
203
|
+
# pragma intrinsic(_BitScanReverse64)
|
204
|
+
# endif
|
205
|
+
# endif
|
206
|
+
|
207
|
+
inline auto clz(uint32_t x) -> int {
|
208
|
+
unsigned long r = 0;
|
209
|
+
_BitScanReverse(&r, x);
|
210
|
+
FMT_ASSERT(x != 0, "");
|
211
|
+
// Static analysis complains about using uninitialized data
|
212
|
+
// "r", but the only way that can happen is if "x" is 0,
|
213
|
+
// which the callers guarantee to not happen.
|
214
|
+
FMT_MSC_WARNING(suppress : 6102)
|
215
|
+
return 31 ^ static_cast<int>(r);
|
216
|
+
}
|
217
|
+
# define FMT_BUILTIN_CLZ(n) detail::clz(n)
|
218
|
+
|
219
|
+
inline auto clzll(uint64_t x) -> int {
|
220
|
+
unsigned long r = 0;
|
221
|
+
# ifdef _WIN64
|
222
|
+
_BitScanReverse64(&r, x);
|
223
|
+
# else
|
224
|
+
// Scan the high 32 bits.
|
225
|
+
if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32)))
|
226
|
+
return 63 ^ static_cast<int>(r + 32);
|
227
|
+
// Scan the low 32 bits.
|
228
|
+
_BitScanReverse(&r, static_cast<uint32_t>(x));
|
229
|
+
# endif
|
230
|
+
FMT_ASSERT(x != 0, "");
|
231
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
232
|
+
return 63 ^ static_cast<int>(r);
|
233
|
+
}
|
234
|
+
# define FMT_BUILTIN_CLZLL(n) detail::clzll(n)
|
235
|
+
|
236
|
+
inline auto ctz(uint32_t x) -> int {
|
237
|
+
unsigned long r = 0;
|
238
|
+
_BitScanForward(&r, x);
|
239
|
+
FMT_ASSERT(x != 0, "");
|
240
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
241
|
+
return static_cast<int>(r);
|
242
|
+
}
|
243
|
+
# define FMT_BUILTIN_CTZ(n) detail::ctz(n)
|
244
|
+
|
245
|
+
inline auto ctzll(uint64_t x) -> int {
|
246
|
+
unsigned long r = 0;
|
247
|
+
FMT_ASSERT(x != 0, "");
|
248
|
+
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
|
249
|
+
# ifdef _WIN64
|
250
|
+
_BitScanForward64(&r, x);
|
251
|
+
# else
|
252
|
+
// Scan the low 32 bits.
|
253
|
+
if (_BitScanForward(&r, static_cast<uint32_t>(x))) return static_cast<int>(r);
|
254
|
+
// Scan the high 32 bits.
|
255
|
+
_BitScanForward(&r, static_cast<uint32_t>(x >> 32));
|
256
|
+
r += 32;
|
257
|
+
# endif
|
258
|
+
return static_cast<int>(r);
|
259
|
+
}
|
260
|
+
# define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
|
261
|
+
} // namespace detail
|
262
|
+
FMT_END_NAMESPACE
|
263
|
+
#endif
|
264
|
+
|
265
|
+
FMT_BEGIN_NAMESPACE
|
266
|
+
|
267
|
+
template <typename Char, typename Traits, typename Allocator>
|
268
|
+
struct is_contiguous<std::basic_string<Char, Traits, Allocator>>
|
269
|
+
: std::true_type {};
|
270
|
+
|
271
|
+
namespace detail {
|
272
|
+
|
273
|
+
FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
|
274
|
+
ignore_unused(condition);
|
275
|
+
#ifdef FMT_FUZZ
|
276
|
+
if (condition) throw std::runtime_error("fuzzing limit reached");
|
277
|
+
#endif
|
278
|
+
}
|
279
|
+
|
280
|
+
#if defined(FMT_USE_STRING_VIEW)
|
281
|
+
template <typename Char> using std_string_view = std::basic_string_view<Char>;
|
282
|
+
#else
|
283
|
+
template <typename T> struct std_string_view {};
|
284
|
+
#endif
|
285
|
+
|
286
|
+
// Implementation of std::bit_cast for pre-C++20.
|
287
|
+
template <typename To, typename From, FMT_ENABLE_IF(sizeof(To) == sizeof(From))>
|
288
|
+
FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {
|
289
|
+
#ifdef __cpp_lib_bit_cast
|
290
|
+
if (is_constant_evaluated()) return std::bit_cast<To>(from);
|
291
|
+
#endif
|
292
|
+
auto to = To();
|
293
|
+
// The cast suppresses a bogus -Wclass-memaccess on GCC.
|
294
|
+
std::memcpy(static_cast<void*>(&to), &from, sizeof(to));
|
295
|
+
return to;
|
296
|
+
}
|
297
|
+
|
298
|
+
inline auto is_big_endian() -> bool {
|
299
|
+
#ifdef _WIN32
|
300
|
+
return false;
|
301
|
+
#elif defined(__BIG_ENDIAN__)
|
302
|
+
return true;
|
303
|
+
#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
|
304
|
+
return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;
|
305
|
+
#else
|
306
|
+
struct bytes {
|
307
|
+
char data[sizeof(int)];
|
308
|
+
};
|
309
|
+
return bit_cast<bytes>(1).data[0] == 0;
|
310
|
+
#endif
|
311
|
+
}
|
312
|
+
|
313
|
+
class uint128_fallback {
|
314
|
+
private:
|
315
|
+
uint64_t lo_, hi_;
|
316
|
+
|
317
|
+
public:
|
318
|
+
constexpr uint128_fallback(uint64_t hi, uint64_t lo) : lo_(lo), hi_(hi) {}
|
319
|
+
constexpr uint128_fallback(uint64_t value = 0) : lo_(value), hi_(0) {}
|
320
|
+
|
321
|
+
constexpr auto high() const noexcept -> uint64_t { return hi_; }
|
322
|
+
constexpr auto low() const noexcept -> uint64_t { return lo_; }
|
323
|
+
|
324
|
+
template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
|
325
|
+
constexpr explicit operator T() const {
|
326
|
+
return static_cast<T>(lo_);
|
327
|
+
}
|
328
|
+
|
329
|
+
friend constexpr auto operator==(const uint128_fallback& lhs,
|
330
|
+
const uint128_fallback& rhs) -> bool {
|
331
|
+
return lhs.hi_ == rhs.hi_ && lhs.lo_ == rhs.lo_;
|
332
|
+
}
|
333
|
+
friend constexpr auto operator!=(const uint128_fallback& lhs,
|
334
|
+
const uint128_fallback& rhs) -> bool {
|
335
|
+
return !(lhs == rhs);
|
336
|
+
}
|
337
|
+
friend constexpr auto operator>(const uint128_fallback& lhs,
|
338
|
+
const uint128_fallback& rhs) -> bool {
|
339
|
+
return lhs.hi_ != rhs.hi_ ? lhs.hi_ > rhs.hi_ : lhs.lo_ > rhs.lo_;
|
340
|
+
}
|
341
|
+
friend constexpr auto operator|(const uint128_fallback& lhs,
|
342
|
+
const uint128_fallback& rhs)
|
343
|
+
-> uint128_fallback {
|
344
|
+
return {lhs.hi_ | rhs.hi_, lhs.lo_ | rhs.lo_};
|
345
|
+
}
|
346
|
+
friend constexpr auto operator&(const uint128_fallback& lhs,
|
347
|
+
const uint128_fallback& rhs)
|
348
|
+
-> uint128_fallback {
|
349
|
+
return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_};
|
350
|
+
}
|
351
|
+
friend constexpr auto operator~(const uint128_fallback& n)
|
352
|
+
-> uint128_fallback {
|
353
|
+
return {~n.hi_, ~n.lo_};
|
354
|
+
}
|
355
|
+
friend auto operator+(const uint128_fallback& lhs,
|
356
|
+
const uint128_fallback& rhs) -> uint128_fallback {
|
357
|
+
auto result = uint128_fallback(lhs);
|
358
|
+
result += rhs;
|
359
|
+
return result;
|
360
|
+
}
|
361
|
+
friend auto operator*(const uint128_fallback& lhs, uint32_t rhs)
|
362
|
+
-> uint128_fallback {
|
363
|
+
FMT_ASSERT(lhs.hi_ == 0, "");
|
364
|
+
uint64_t hi = (lhs.lo_ >> 32) * rhs;
|
365
|
+
uint64_t lo = (lhs.lo_ & ~uint32_t()) * rhs;
|
366
|
+
uint64_t new_lo = (hi << 32) + lo;
|
367
|
+
return {(hi >> 32) + (new_lo < lo ? 1 : 0), new_lo};
|
368
|
+
}
|
369
|
+
friend auto operator-(const uint128_fallback& lhs, uint64_t rhs)
|
370
|
+
-> uint128_fallback {
|
371
|
+
return {lhs.hi_ - (lhs.lo_ < rhs ? 1 : 0), lhs.lo_ - rhs};
|
372
|
+
}
|
373
|
+
FMT_CONSTEXPR auto operator>>(int shift) const -> uint128_fallback {
|
374
|
+
if (shift == 64) return {0, hi_};
|
375
|
+
if (shift > 64) return uint128_fallback(0, hi_) >> (shift - 64);
|
376
|
+
return {hi_ >> shift, (hi_ << (64 - shift)) | (lo_ >> shift)};
|
377
|
+
}
|
378
|
+
FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback {
|
379
|
+
if (shift == 64) return {lo_, 0};
|
380
|
+
if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64);
|
381
|
+
return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)};
|
382
|
+
}
|
383
|
+
FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& {
|
384
|
+
return *this = *this >> shift;
|
385
|
+
}
|
386
|
+
FMT_CONSTEXPR void operator+=(uint128_fallback n) {
|
387
|
+
uint64_t new_lo = lo_ + n.lo_;
|
388
|
+
uint64_t new_hi = hi_ + n.hi_ + (new_lo < lo_ ? 1 : 0);
|
389
|
+
FMT_ASSERT(new_hi >= hi_, "");
|
390
|
+
lo_ = new_lo;
|
391
|
+
hi_ = new_hi;
|
392
|
+
}
|
393
|
+
FMT_CONSTEXPR void operator&=(uint128_fallback n) {
|
394
|
+
lo_ &= n.lo_;
|
395
|
+
hi_ &= n.hi_;
|
396
|
+
}
|
397
|
+
|
398
|
+
FMT_CONSTEXPR20 auto operator+=(uint64_t n) noexcept -> uint128_fallback& {
|
399
|
+
if (is_constant_evaluated()) {
|
400
|
+
lo_ += n;
|
401
|
+
hi_ += (lo_ < n ? 1 : 0);
|
402
|
+
return *this;
|
403
|
+
}
|
404
|
+
#if FMT_HAS_BUILTIN(__builtin_addcll) && !defined(__ibmxl__)
|
405
|
+
unsigned long long carry;
|
406
|
+
lo_ = __builtin_addcll(lo_, n, 0, &carry);
|
407
|
+
hi_ += carry;
|
408
|
+
#elif FMT_HAS_BUILTIN(__builtin_ia32_addcarryx_u64) && !defined(__ibmxl__)
|
409
|
+
unsigned long long result;
|
410
|
+
auto carry = __builtin_ia32_addcarryx_u64(0, lo_, n, &result);
|
411
|
+
lo_ = result;
|
412
|
+
hi_ += carry;
|
413
|
+
#elif defined(_MSC_VER) && defined(_M_X64)
|
414
|
+
auto carry = _addcarry_u64(0, lo_, n, &lo_);
|
415
|
+
_addcarry_u64(carry, hi_, 0, &hi_);
|
416
|
+
#else
|
417
|
+
lo_ += n;
|
418
|
+
hi_ += (lo_ < n ? 1 : 0);
|
419
|
+
#endif
|
420
|
+
return *this;
|
421
|
+
}
|
422
|
+
};
|
423
|
+
|
424
|
+
using uint128_t = conditional_t<FMT_USE_INT128, uint128_opt, uint128_fallback>;
|
425
|
+
|
426
|
+
#ifdef UINTPTR_MAX
|
427
|
+
using uintptr_t = ::uintptr_t;
|
428
|
+
#else
|
429
|
+
using uintptr_t = uint128_t;
|
430
|
+
#endif
|
431
|
+
|
432
|
+
// Returns the largest possible value for type T. Same as
|
433
|
+
// std::numeric_limits<T>::max() but shorter and not affected by the max macro.
|
434
|
+
template <typename T> constexpr auto max_value() -> T {
|
435
|
+
return (std::numeric_limits<T>::max)();
|
436
|
+
}
|
437
|
+
template <typename T> constexpr auto num_bits() -> int {
|
438
|
+
return std::numeric_limits<T>::digits;
|
439
|
+
}
|
440
|
+
// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
|
441
|
+
template <> constexpr auto num_bits<int128_opt>() -> int { return 128; }
|
442
|
+
template <> constexpr auto num_bits<uint128_opt>() -> int { return 128; }
|
443
|
+
template <> constexpr auto num_bits<uint128_fallback>() -> int { return 128; }
|
444
|
+
|
445
|
+
// A heterogeneous bit_cast used for converting 96-bit long double to uint128_t
|
446
|
+
// and 128-bit pointers to uint128_fallback.
|
447
|
+
template <typename To, typename From, FMT_ENABLE_IF(sizeof(To) > sizeof(From))>
|
448
|
+
inline auto bit_cast(const From& from) -> To {
|
449
|
+
constexpr auto size = static_cast<int>(sizeof(From) / sizeof(unsigned));
|
450
|
+
struct data_t {
|
451
|
+
unsigned value[static_cast<unsigned>(size)];
|
452
|
+
} data = bit_cast<data_t>(from);
|
453
|
+
auto result = To();
|
454
|
+
if (const_check(is_big_endian())) {
|
455
|
+
for (int i = 0; i < size; ++i)
|
456
|
+
result = (result << num_bits<unsigned>()) | data.value[i];
|
457
|
+
} else {
|
458
|
+
for (int i = size - 1; i >= 0; --i)
|
459
|
+
result = (result << num_bits<unsigned>()) | data.value[i];
|
460
|
+
}
|
461
|
+
return result;
|
462
|
+
}
|
463
|
+
|
464
|
+
template <typename UInt>
|
465
|
+
FMT_CONSTEXPR20 inline auto countl_zero_fallback(UInt n) -> int {
|
466
|
+
int lz = 0;
|
467
|
+
constexpr UInt msb_mask = static_cast<UInt>(1) << (num_bits<UInt>() - 1);
|
468
|
+
for (; (n & msb_mask) == 0; n <<= 1) lz++;
|
469
|
+
return lz;
|
470
|
+
}
|
471
|
+
|
472
|
+
FMT_CONSTEXPR20 inline auto countl_zero(uint32_t n) -> int {
|
473
|
+
#ifdef FMT_BUILTIN_CLZ
|
474
|
+
if (!is_constant_evaluated()) return FMT_BUILTIN_CLZ(n);
|
475
|
+
#endif
|
476
|
+
return countl_zero_fallback(n);
|
477
|
+
}
|
478
|
+
|
479
|
+
FMT_CONSTEXPR20 inline auto countl_zero(uint64_t n) -> int {
|
480
|
+
#ifdef FMT_BUILTIN_CLZLL
|
481
|
+
if (!is_constant_evaluated()) return FMT_BUILTIN_CLZLL(n);
|
482
|
+
#endif
|
483
|
+
return countl_zero_fallback(n);
|
484
|
+
}
|
485
|
+
|
486
|
+
FMT_INLINE void assume(bool condition) {
|
487
|
+
(void)condition;
|
488
|
+
#if FMT_HAS_BUILTIN(__builtin_assume) && !FMT_ICC_VERSION
|
489
|
+
__builtin_assume(condition);
|
490
|
+
#elif FMT_GCC_VERSION
|
491
|
+
if (!condition) __builtin_unreachable();
|
492
|
+
#endif
|
493
|
+
}
|
494
|
+
|
495
|
+
// An approximation of iterator_t for pre-C++20 systems.
|
496
|
+
template <typename T>
|
497
|
+
using iterator_t = decltype(std::begin(std::declval<T&>()));
|
498
|
+
template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>()));
|
499
|
+
|
500
|
+
// A workaround for std::string not having mutable data() until C++17.
|
501
|
+
template <typename Char>
|
502
|
+
inline auto get_data(std::basic_string<Char>& s) -> Char* {
|
503
|
+
return &s[0];
|
504
|
+
}
|
505
|
+
template <typename Container>
|
506
|
+
inline auto get_data(Container& c) -> typename Container::value_type* {
|
507
|
+
return c.data();
|
508
|
+
}
|
509
|
+
|
510
|
+
// Attempts to reserve space for n extra characters in the output range.
|
511
|
+
// Returns a pointer to the reserved range or a reference to it.
|
512
|
+
template <typename OutputIt,
|
513
|
+
FMT_ENABLE_IF(is_back_insert_iterator<OutputIt>::value&&
|
514
|
+
is_contiguous<typename OutputIt::container>::value)>
|
515
|
+
#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
|
516
|
+
__attribute__((no_sanitize("undefined")))
|
517
|
+
#endif
|
518
|
+
inline auto
|
519
|
+
reserve(OutputIt it, size_t n) -> typename OutputIt::value_type* {
|
520
|
+
auto& c = get_container(it);
|
521
|
+
size_t size = c.size();
|
522
|
+
c.resize(size + n);
|
523
|
+
return get_data(c) + size;
|
524
|
+
}
|
525
|
+
|
526
|
+
template <typename T>
|
527
|
+
inline auto reserve(basic_appender<T> it, size_t n) -> basic_appender<T> {
|
528
|
+
buffer<T>& buf = get_container(it);
|
529
|
+
buf.try_reserve(buf.size() + n);
|
530
|
+
return it;
|
531
|
+
}
|
532
|
+
|
533
|
+
template <typename Iterator>
|
534
|
+
constexpr auto reserve(Iterator& it, size_t) -> Iterator& {
|
535
|
+
return it;
|
536
|
+
}
|
537
|
+
|
538
|
+
template <typename OutputIt>
|
539
|
+
using reserve_iterator =
|
540
|
+
remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>;
|
541
|
+
|
542
|
+
template <typename T, typename OutputIt>
|
543
|
+
constexpr auto to_pointer(OutputIt, size_t) -> T* {
|
544
|
+
return nullptr;
|
545
|
+
}
|
546
|
+
template <typename T> auto to_pointer(basic_appender<T> it, size_t n) -> T* {
|
547
|
+
buffer<T>& buf = get_container(it);
|
548
|
+
auto size = buf.size();
|
549
|
+
if (buf.capacity() < size + n) return nullptr;
|
550
|
+
buf.try_resize(size + n);
|
551
|
+
return buf.data() + size;
|
552
|
+
}
|
553
|
+
|
554
|
+
template <typename OutputIt,
|
555
|
+
FMT_ENABLE_IF(is_back_insert_iterator<OutputIt>::value&&
|
556
|
+
is_contiguous<typename OutputIt::container>::value)>
|
557
|
+
inline auto base_iterator(OutputIt it,
|
558
|
+
typename OutputIt::container_type::value_type*)
|
559
|
+
-> OutputIt {
|
560
|
+
return it;
|
561
|
+
}
|
562
|
+
|
563
|
+
template <typename Iterator>
|
564
|
+
constexpr auto base_iterator(Iterator, Iterator it) -> Iterator {
|
565
|
+
return it;
|
566
|
+
}
|
567
|
+
|
568
|
+
// <algorithm> is spectacularly slow to compile in C++20 so use a simple fill_n
|
569
|
+
// instead (#1998).
|
570
|
+
template <typename OutputIt, typename Size, typename T>
|
571
|
+
FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
|
572
|
+
-> OutputIt {
|
573
|
+
for (Size i = 0; i < count; ++i) *out++ = value;
|
574
|
+
return out;
|
575
|
+
}
|
576
|
+
template <typename T, typename Size>
|
577
|
+
FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
|
578
|
+
if (is_constant_evaluated()) {
|
579
|
+
return fill_n<T*, Size, T>(out, count, value);
|
580
|
+
}
|
581
|
+
std::memset(out, value, to_unsigned(count));
|
582
|
+
return out + count;
|
583
|
+
}
|
584
|
+
|
585
|
+
template <typename OutChar, typename InputIt, typename OutputIt>
|
586
|
+
FMT_CONSTEXPR FMT_NOINLINE auto copy_noinline(InputIt begin, InputIt end,
|
587
|
+
OutputIt out) -> OutputIt {
|
588
|
+
return copy<OutChar>(begin, end, out);
|
589
|
+
}
|
590
|
+
|
591
|
+
// A public domain branchless UTF-8 decoder by Christopher Wellons:
|
592
|
+
// https://github.com/skeeto/branchless-utf8
|
593
|
+
/* Decode the next character, c, from s, reporting errors in e.
|
594
|
+
*
|
595
|
+
* Since this is a branchless decoder, four bytes will be read from the
|
596
|
+
* buffer regardless of the actual length of the next character. This
|
597
|
+
* means the buffer _must_ have at least three bytes of zero padding
|
598
|
+
* following the end of the data stream.
|
599
|
+
*
|
600
|
+
* Errors are reported in e, which will be non-zero if the parsed
|
601
|
+
* character was somehow invalid: invalid byte sequence, non-canonical
|
602
|
+
* encoding, or a surrogate half.
|
603
|
+
*
|
604
|
+
* The function returns a pointer to the next character. When an error
|
605
|
+
* occurs, this pointer will be a guess that depends on the particular
|
606
|
+
* error, but it will always advance at least one byte.
|
607
|
+
*/
|
608
|
+
FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e)
|
609
|
+
-> const char* {
|
610
|
+
constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07};
|
611
|
+
constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536};
|
612
|
+
constexpr const int shiftc[] = {0, 18, 12, 6, 0};
|
613
|
+
constexpr const int shifte[] = {0, 6, 4, 2, 0};
|
614
|
+
|
615
|
+
int len = "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4"
|
616
|
+
[static_cast<unsigned char>(*s) >> 3];
|
617
|
+
// Compute the pointer to the next character early so that the next
|
618
|
+
// iteration can start working on the next character. Neither Clang
|
619
|
+
// nor GCC figure out this reordering on their own.
|
620
|
+
const char* next = s + len + !len;
|
621
|
+
|
622
|
+
using uchar = unsigned char;
|
623
|
+
|
624
|
+
// Assume a four-byte character and load four bytes. Unused bits are
|
625
|
+
// shifted out.
|
626
|
+
*c = uint32_t(uchar(s[0]) & masks[len]) << 18;
|
627
|
+
*c |= uint32_t(uchar(s[1]) & 0x3f) << 12;
|
628
|
+
*c |= uint32_t(uchar(s[2]) & 0x3f) << 6;
|
629
|
+
*c |= uint32_t(uchar(s[3]) & 0x3f) << 0;
|
630
|
+
*c >>= shiftc[len];
|
631
|
+
|
632
|
+
// Accumulate the various error conditions.
|
633
|
+
*e = (*c < mins[len]) << 6; // non-canonical encoding
|
634
|
+
*e |= ((*c >> 11) == 0x1b) << 7; // surrogate half?
|
635
|
+
*e |= (*c > 0x10FFFF) << 8; // out of range?
|
636
|
+
*e |= (uchar(s[1]) & 0xc0) >> 2;
|
637
|
+
*e |= (uchar(s[2]) & 0xc0) >> 4;
|
638
|
+
*e |= uchar(s[3]) >> 6;
|
639
|
+
*e ^= 0x2a; // top two bits of each tail byte correct?
|
640
|
+
*e >>= shifte[len];
|
641
|
+
|
642
|
+
return next;
|
643
|
+
}
|
644
|
+
|
645
|
+
constexpr FMT_INLINE_VARIABLE uint32_t invalid_code_point = ~uint32_t();
|
646
|
+
|
647
|
+
// Invokes f(cp, sv) for every code point cp in s with sv being the string view
|
648
|
+
// corresponding to the code point. cp is invalid_code_point on error.
|
649
|
+
template <typename F>
|
650
|
+
FMT_CONSTEXPR void for_each_codepoint(string_view s, F f) {
|
651
|
+
auto decode = [f](const char* buf_ptr, const char* ptr) {
|
652
|
+
auto cp = uint32_t();
|
653
|
+
auto error = 0;
|
654
|
+
auto end = utf8_decode(buf_ptr, &cp, &error);
|
655
|
+
bool result = f(error ? invalid_code_point : cp,
|
656
|
+
string_view(ptr, error ? 1 : to_unsigned(end - buf_ptr)));
|
657
|
+
return result ? (error ? buf_ptr + 1 : end) : nullptr;
|
658
|
+
};
|
659
|
+
auto p = s.data();
|
660
|
+
const size_t block_size = 4; // utf8_decode always reads blocks of 4 chars.
|
661
|
+
if (s.size() >= block_size) {
|
662
|
+
for (auto end = p + s.size() - block_size + 1; p < end;) {
|
663
|
+
p = decode(p, p);
|
664
|
+
if (!p) return;
|
665
|
+
}
|
666
|
+
}
|
667
|
+
if (auto num_chars_left = s.data() + s.size() - p) {
|
668
|
+
char buf[2 * block_size - 1] = {};
|
669
|
+
copy<char>(p, p + num_chars_left, buf);
|
670
|
+
const char* buf_ptr = buf;
|
671
|
+
do {
|
672
|
+
auto end = decode(buf_ptr, p);
|
673
|
+
if (!end) return;
|
674
|
+
p += end - buf_ptr;
|
675
|
+
buf_ptr = end;
|
676
|
+
} while (buf_ptr - buf < num_chars_left);
|
677
|
+
}
|
678
|
+
}
|
679
|
+
|
680
|
+
template <typename Char>
|
681
|
+
inline auto compute_width(basic_string_view<Char> s) -> size_t {
|
682
|
+
return s.size();
|
683
|
+
}
|
684
|
+
|
685
|
+
// Computes approximate display width of a UTF-8 string.
|
686
|
+
FMT_CONSTEXPR inline auto compute_width(string_view s) -> size_t {
|
687
|
+
size_t num_code_points = 0;
|
688
|
+
// It is not a lambda for compatibility with C++14.
|
689
|
+
struct count_code_points {
|
690
|
+
size_t* count;
|
691
|
+
FMT_CONSTEXPR auto operator()(uint32_t cp, string_view) const -> bool {
|
692
|
+
*count += detail::to_unsigned(
|
693
|
+
1 +
|
694
|
+
(cp >= 0x1100 &&
|
695
|
+
(cp <= 0x115f || // Hangul Jamo init. consonants
|
696
|
+
cp == 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
697
|
+
cp == 0x232a || // RIGHT-POINTING ANGLE BRACKET
|
698
|
+
// CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE:
|
699
|
+
(cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) ||
|
700
|
+
(cp >= 0xac00 && cp <= 0xd7a3) || // Hangul Syllables
|
701
|
+
(cp >= 0xf900 && cp <= 0xfaff) || // CJK Compatibility Ideographs
|
702
|
+
(cp >= 0xfe10 && cp <= 0xfe19) || // Vertical Forms
|
703
|
+
(cp >= 0xfe30 && cp <= 0xfe6f) || // CJK Compatibility Forms
|
704
|
+
(cp >= 0xff00 && cp <= 0xff60) || // Fullwidth Forms
|
705
|
+
(cp >= 0xffe0 && cp <= 0xffe6) || // Fullwidth Forms
|
706
|
+
(cp >= 0x20000 && cp <= 0x2fffd) || // CJK
|
707
|
+
(cp >= 0x30000 && cp <= 0x3fffd) ||
|
708
|
+
// Miscellaneous Symbols and Pictographs + Emoticons:
|
709
|
+
(cp >= 0x1f300 && cp <= 0x1f64f) ||
|
710
|
+
// Supplemental Symbols and Pictographs:
|
711
|
+
(cp >= 0x1f900 && cp <= 0x1f9ff))));
|
712
|
+
return true;
|
713
|
+
}
|
714
|
+
};
|
715
|
+
// We could avoid branches by using utf8_decode directly.
|
716
|
+
for_each_codepoint(s, count_code_points{&num_code_points});
|
717
|
+
return num_code_points;
|
718
|
+
}
|
719
|
+
|
720
|
+
template <typename Char>
|
721
|
+
inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t {
|
722
|
+
size_t size = s.size();
|
723
|
+
return n < size ? n : size;
|
724
|
+
}
|
725
|
+
|
726
|
+
// Calculates the index of the nth code point in a UTF-8 string.
|
727
|
+
inline auto code_point_index(string_view s, size_t n) -> size_t {
|
728
|
+
size_t result = s.size();
|
729
|
+
const char* begin = s.begin();
|
730
|
+
for_each_codepoint(s, [begin, &n, &result](uint32_t, string_view sv) {
|
731
|
+
if (n != 0) {
|
732
|
+
--n;
|
733
|
+
return true;
|
734
|
+
}
|
735
|
+
result = to_unsigned(sv.begin() - begin);
|
736
|
+
return false;
|
737
|
+
});
|
738
|
+
return result;
|
739
|
+
}
|
740
|
+
|
741
|
+
template <typename T> struct is_integral : std::is_integral<T> {};
|
742
|
+
template <> struct is_integral<int128_opt> : std::true_type {};
|
743
|
+
template <> struct is_integral<uint128_t> : std::true_type {};
|
744
|
+
|
745
|
+
template <typename T>
|
746
|
+
using is_signed =
|
747
|
+
std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
|
748
|
+
std::is_same<T, int128_opt>::value>;
|
749
|
+
|
750
|
+
template <typename T>
|
751
|
+
using is_integer =
|
752
|
+
bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
|
753
|
+
!std::is_same<T, char>::value &&
|
754
|
+
!std::is_same<T, wchar_t>::value>;
|
755
|
+
|
756
|
+
#ifndef FMT_USE_FLOAT
|
757
|
+
# define FMT_USE_FLOAT 1
|
758
|
+
#endif
|
759
|
+
#ifndef FMT_USE_DOUBLE
|
760
|
+
# define FMT_USE_DOUBLE 1
|
761
|
+
#endif
|
762
|
+
#ifndef FMT_USE_LONG_DOUBLE
|
763
|
+
# define FMT_USE_LONG_DOUBLE 1
|
764
|
+
#endif
|
765
|
+
|
766
|
+
#if defined(FMT_USE_FLOAT128)
|
767
|
+
// Use the provided definition.
|
768
|
+
#elif FMT_CLANG_VERSION && FMT_HAS_INCLUDE(<quadmath.h>)
|
769
|
+
# define FMT_USE_FLOAT128 1
|
770
|
+
#elif FMT_GCC_VERSION && defined(_GLIBCXX_USE_FLOAT128) && \
|
771
|
+
!defined(__STRICT_ANSI__)
|
772
|
+
# define FMT_USE_FLOAT128 1
|
773
|
+
#else
|
774
|
+
# define FMT_USE_FLOAT128 0
|
775
|
+
#endif
|
776
|
+
#if FMT_USE_FLOAT128
|
777
|
+
using float128 = __float128;
|
778
|
+
#else
|
779
|
+
using float128 = void;
|
780
|
+
#endif
|
781
|
+
|
782
|
+
template <typename T> using is_float128 = std::is_same<T, float128>;
|
783
|
+
|
784
|
+
template <typename T>
|
785
|
+
using is_floating_point =
|
786
|
+
bool_constant<std::is_floating_point<T>::value || is_float128<T>::value>;
|
787
|
+
|
788
|
+
template <typename T, bool = std::is_floating_point<T>::value>
|
789
|
+
struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 &&
|
790
|
+
sizeof(T) <= sizeof(double)> {};
|
791
|
+
template <typename T> struct is_fast_float<T, false> : std::false_type {};
|
792
|
+
|
793
|
+
template <typename T>
|
794
|
+
using is_double_double = bool_constant<std::numeric_limits<T>::digits == 106>;
|
795
|
+
|
796
|
+
#ifndef FMT_USE_FULL_CACHE_DRAGONBOX
|
797
|
+
# define FMT_USE_FULL_CACHE_DRAGONBOX 0
|
798
|
+
#endif
|
799
|
+
|
800
|
+
template <typename T, typename Enable = void>
|
801
|
+
struct is_locale : std::false_type {};
|
802
|
+
template <typename T>
|
803
|
+
struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {};
|
804
|
+
} // namespace detail
|
805
|
+
|
806
|
+
FMT_BEGIN_EXPORT
|
807
|
+
|
808
|
+
// The number of characters to store in the basic_memory_buffer object itself
|
809
|
+
// to avoid dynamic memory allocation.
|
810
|
+
enum { inline_buffer_size = 500 };
|
811
|
+
|
812
|
+
/**
|
813
|
+
* A dynamically growing memory buffer for trivially copyable/constructible
|
814
|
+
* types with the first `SIZE` elements stored in the object itself. Most
|
815
|
+
* commonly used via the `memory_buffer` alias for `char`.
|
816
|
+
*
|
817
|
+
* **Example**:
|
818
|
+
*
|
819
|
+
* auto out = fmt::memory_buffer();
|
820
|
+
* fmt::format_to(std::back_inserter(out), "The answer is {}.", 42);
|
821
|
+
*
|
822
|
+
* This will append "The answer is 42." to `out`. The buffer content can be
|
823
|
+
* converted to `std::string` with `to_string(out)`.
|
824
|
+
*/
|
825
|
+
template <typename T, size_t SIZE = inline_buffer_size,
|
826
|
+
typename Allocator = std::allocator<T>>
|
827
|
+
class basic_memory_buffer : public detail::buffer<T> {
|
828
|
+
private:
|
829
|
+
T store_[SIZE];
|
830
|
+
|
831
|
+
// Don't inherit from Allocator to avoid generating type_info for it.
|
832
|
+
FMT_NO_UNIQUE_ADDRESS Allocator alloc_;
|
833
|
+
|
834
|
+
// Deallocate memory allocated by the buffer.
|
835
|
+
FMT_CONSTEXPR20 void deallocate() {
|
836
|
+
T* data = this->data();
|
837
|
+
if (data != store_) alloc_.deallocate(data, this->capacity());
|
838
|
+
}
|
839
|
+
|
840
|
+
static FMT_CONSTEXPR20 void grow(detail::buffer<T>& buf, size_t size) {
|
841
|
+
detail::abort_fuzzing_if(size > 5000);
|
842
|
+
auto& self = static_cast<basic_memory_buffer&>(buf);
|
843
|
+
const size_t max_size =
|
844
|
+
std::allocator_traits<Allocator>::max_size(self.alloc_);
|
845
|
+
size_t old_capacity = buf.capacity();
|
846
|
+
size_t new_capacity = old_capacity + old_capacity / 2;
|
847
|
+
if (size > new_capacity)
|
848
|
+
new_capacity = size;
|
849
|
+
else if (new_capacity > max_size)
|
850
|
+
new_capacity = size > max_size ? size : max_size;
|
851
|
+
T* old_data = buf.data();
|
852
|
+
T* new_data = self.alloc_.allocate(new_capacity);
|
853
|
+
// Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481).
|
854
|
+
detail::assume(buf.size() <= new_capacity);
|
855
|
+
// The following code doesn't throw, so the raw pointer above doesn't leak.
|
856
|
+
memcpy(new_data, old_data, buf.size() * sizeof(T));
|
857
|
+
self.set(new_data, new_capacity);
|
858
|
+
// deallocate must not throw according to the standard, but even if it does,
|
859
|
+
// the buffer already uses the new storage and will deallocate it in
|
860
|
+
// destructor.
|
861
|
+
if (old_data != self.store_) self.alloc_.deallocate(old_data, old_capacity);
|
862
|
+
}
|
863
|
+
|
864
|
+
public:
|
865
|
+
using value_type = T;
|
866
|
+
using const_reference = const T&;
|
867
|
+
|
868
|
+
FMT_CONSTEXPR20 explicit basic_memory_buffer(
|
869
|
+
const Allocator& alloc = Allocator())
|
870
|
+
: detail::buffer<T>(grow), alloc_(alloc) {
|
871
|
+
this->set(store_, SIZE);
|
872
|
+
if (detail::is_constant_evaluated()) detail::fill_n(store_, SIZE, T());
|
873
|
+
}
|
874
|
+
FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
|
875
|
+
|
876
|
+
private:
|
877
|
+
// Move data from other to this buffer.
|
878
|
+
FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
|
879
|
+
alloc_ = std::move(other.alloc_);
|
880
|
+
T* data = other.data();
|
881
|
+
size_t size = other.size(), capacity = other.capacity();
|
882
|
+
if (data == other.store_) {
|
883
|
+
this->set(store_, capacity);
|
884
|
+
detail::copy<T>(other.store_, other.store_ + size, store_);
|
885
|
+
} else {
|
886
|
+
this->set(data, capacity);
|
887
|
+
// Set pointer to the inline array so that delete is not called
|
888
|
+
// when deallocating.
|
889
|
+
other.set(other.store_, 0);
|
890
|
+
other.clear();
|
891
|
+
}
|
892
|
+
this->resize(size);
|
893
|
+
}
|
894
|
+
|
895
|
+
public:
|
896
|
+
/// Constructs a `basic_memory_buffer` object moving the content of the other
|
897
|
+
/// object to it.
|
898
|
+
FMT_CONSTEXPR20 basic_memory_buffer(basic_memory_buffer&& other) noexcept
|
899
|
+
: detail::buffer<T>(grow) {
|
900
|
+
move(other);
|
901
|
+
}
|
902
|
+
|
903
|
+
/// Moves the content of the other `basic_memory_buffer` object to this one.
|
904
|
+
auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& {
|
905
|
+
FMT_ASSERT(this != &other, "");
|
906
|
+
deallocate();
|
907
|
+
move(other);
|
908
|
+
return *this;
|
909
|
+
}
|
910
|
+
|
911
|
+
// Returns a copy of the allocator associated with this buffer.
|
912
|
+
auto get_allocator() const -> Allocator { return alloc_; }
|
913
|
+
|
914
|
+
/// Resizes the buffer to contain `count` elements. If T is a POD type new
|
915
|
+
/// elements may not be initialized.
|
916
|
+
FMT_CONSTEXPR20 void resize(size_t count) { this->try_resize(count); }
|
917
|
+
|
918
|
+
/// Increases the buffer capacity to `new_capacity`.
|
919
|
+
void reserve(size_t new_capacity) { this->try_reserve(new_capacity); }
|
920
|
+
|
921
|
+
using detail::buffer<T>::append;
|
922
|
+
template <typename ContiguousRange>
|
923
|
+
void append(const ContiguousRange& range) {
|
924
|
+
append(range.data(), range.data() + range.size());
|
925
|
+
}
|
926
|
+
};
|
927
|
+
|
928
|
+
using memory_buffer = basic_memory_buffer<char>;
|
929
|
+
|
930
|
+
template <typename T, size_t SIZE, typename Allocator>
|
931
|
+
struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
|
932
|
+
};
|
933
|
+
|
934
|
+
FMT_END_EXPORT
|
935
|
+
namespace detail {
|
936
|
+
FMT_API auto write_console(int fd, string_view text) -> bool;
|
937
|
+
FMT_API void print(std::FILE*, string_view);
|
938
|
+
} // namespace detail
|
939
|
+
|
940
|
+
FMT_BEGIN_EXPORT
|
941
|
+
|
942
|
+
// Suppress a misleading warning in older versions of clang.
|
943
|
+
#if FMT_CLANG_VERSION
|
944
|
+
# pragma clang diagnostic ignored "-Wweak-vtables"
|
945
|
+
#endif
|
946
|
+
|
947
|
+
/// An error reported from a formatting function.
|
948
|
+
class FMT_SO_VISIBILITY("default") format_error : public std::runtime_error {
|
949
|
+
public:
|
950
|
+
using std::runtime_error::runtime_error;
|
951
|
+
};
|
952
|
+
|
953
|
+
namespace detail_exported {
|
954
|
+
#if FMT_USE_NONTYPE_TEMPLATE_ARGS
|
955
|
+
template <typename Char, size_t N> struct fixed_string {
|
956
|
+
constexpr fixed_string(const Char (&str)[N]) {
|
957
|
+
detail::copy<Char, const Char*, Char*>(static_cast<const Char*>(str),
|
958
|
+
str + N, data);
|
959
|
+
}
|
960
|
+
Char data[N] = {};
|
961
|
+
};
|
962
|
+
#endif
|
963
|
+
|
964
|
+
// Converts a compile-time string to basic_string_view.
|
965
|
+
template <typename Char, size_t N>
|
966
|
+
constexpr auto compile_string_to_view(const Char (&s)[N])
|
967
|
+
-> basic_string_view<Char> {
|
968
|
+
// Remove trailing NUL character if needed. Won't be present if this is used
|
969
|
+
// with a raw character array (i.e. not defined as a string).
|
970
|
+
return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)};
|
971
|
+
}
|
972
|
+
template <typename Char>
|
973
|
+
constexpr auto compile_string_to_view(basic_string_view<Char> s)
|
974
|
+
-> basic_string_view<Char> {
|
975
|
+
return s;
|
976
|
+
}
|
977
|
+
} // namespace detail_exported
|
978
|
+
|
979
|
+
// A generic formatting context with custom output iterator and character
|
980
|
+
// (code unit) support. Char is the format string code unit type which can be
|
981
|
+
// different from OutputIt::value_type.
|
982
|
+
template <typename OutputIt, typename Char> class generic_context {
|
983
|
+
private:
|
984
|
+
OutputIt out_;
|
985
|
+
basic_format_args<generic_context> args_;
|
986
|
+
detail::locale_ref loc_;
|
987
|
+
|
988
|
+
public:
|
989
|
+
using char_type = Char;
|
990
|
+
using iterator = OutputIt;
|
991
|
+
using parse_context_type = basic_format_parse_context<Char>;
|
992
|
+
template <typename T> using formatter_type = formatter<T, Char>;
|
993
|
+
|
994
|
+
constexpr generic_context(OutputIt out,
|
995
|
+
basic_format_args<generic_context> ctx_args,
|
996
|
+
detail::locale_ref loc = {})
|
997
|
+
: out_(out), args_(ctx_args), loc_(loc) {}
|
998
|
+
generic_context(generic_context&&) = default;
|
999
|
+
generic_context(const generic_context&) = delete;
|
1000
|
+
void operator=(const generic_context&) = delete;
|
1001
|
+
|
1002
|
+
constexpr auto arg(int id) const -> basic_format_arg<generic_context> {
|
1003
|
+
return args_.get(id);
|
1004
|
+
}
|
1005
|
+
auto arg(basic_string_view<Char> name) -> basic_format_arg<generic_context> {
|
1006
|
+
return args_.get(name);
|
1007
|
+
}
|
1008
|
+
FMT_CONSTEXPR auto arg_id(basic_string_view<Char> name) -> int {
|
1009
|
+
return args_.get_id(name);
|
1010
|
+
}
|
1011
|
+
auto args() const -> const basic_format_args<generic_context>& {
|
1012
|
+
return args_;
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
FMT_CONSTEXPR auto out() -> iterator { return out_; }
|
1016
|
+
|
1017
|
+
void advance_to(iterator it) {
|
1018
|
+
if (!detail::is_back_insert_iterator<iterator>()) out_ = it;
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
FMT_CONSTEXPR auto locale() -> detail::locale_ref { return loc_; }
|
1022
|
+
};
|
1023
|
+
|
1024
|
+
class loc_value {
|
1025
|
+
private:
|
1026
|
+
basic_format_arg<format_context> value_;
|
1027
|
+
|
1028
|
+
public:
|
1029
|
+
template <typename T, FMT_ENABLE_IF(!detail::is_float128<T>::value)>
|
1030
|
+
loc_value(T value) : value_(detail::make_arg<format_context>(value)) {}
|
1031
|
+
|
1032
|
+
template <typename T, FMT_ENABLE_IF(detail::is_float128<T>::value)>
|
1033
|
+
loc_value(T) {}
|
1034
|
+
|
1035
|
+
template <typename Visitor> auto visit(Visitor&& vis) -> decltype(vis(0)) {
|
1036
|
+
return value_.visit(vis);
|
1037
|
+
}
|
1038
|
+
};
|
1039
|
+
|
1040
|
+
// A locale facet that formats values in UTF-8.
|
1041
|
+
// It is parameterized on the locale to avoid the heavy <locale> include.
|
1042
|
+
template <typename Locale> class format_facet : public Locale::facet {
|
1043
|
+
private:
|
1044
|
+
std::string separator_;
|
1045
|
+
std::string grouping_;
|
1046
|
+
std::string decimal_point_;
|
1047
|
+
|
1048
|
+
protected:
|
1049
|
+
virtual auto do_put(appender out, loc_value val,
|
1050
|
+
const format_specs& specs) const -> bool;
|
1051
|
+
|
1052
|
+
public:
|
1053
|
+
static FMT_API typename Locale::id id;
|
1054
|
+
|
1055
|
+
explicit format_facet(Locale& loc);
|
1056
|
+
explicit format_facet(string_view sep = "",
|
1057
|
+
std::initializer_list<unsigned char> g = {3},
|
1058
|
+
std::string decimal_point = ".")
|
1059
|
+
: separator_(sep.data(), sep.size()),
|
1060
|
+
grouping_(g.begin(), g.end()),
|
1061
|
+
decimal_point_(decimal_point) {}
|
1062
|
+
|
1063
|
+
auto put(appender out, loc_value val, const format_specs& specs) const
|
1064
|
+
-> bool {
|
1065
|
+
return do_put(out, val, specs);
|
1066
|
+
}
|
1067
|
+
};
|
1068
|
+
|
1069
|
+
FMT_END_EXPORT
|
1070
|
+
|
1071
|
+
namespace detail {
|
1072
|
+
|
1073
|
+
// Returns true if value is negative, false otherwise.
|
1074
|
+
// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
|
1075
|
+
template <typename T, FMT_ENABLE_IF(is_signed<T>::value)>
|
1076
|
+
constexpr auto is_negative(T value) -> bool {
|
1077
|
+
return value < 0;
|
1078
|
+
}
|
1079
|
+
template <typename T, FMT_ENABLE_IF(!is_signed<T>::value)>
|
1080
|
+
constexpr auto is_negative(T) -> bool {
|
1081
|
+
return false;
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
template <typename T>
|
1085
|
+
FMT_CONSTEXPR auto is_supported_floating_point(T) -> bool {
|
1086
|
+
if (std::is_same<T, float>()) return FMT_USE_FLOAT;
|
1087
|
+
if (std::is_same<T, double>()) return FMT_USE_DOUBLE;
|
1088
|
+
if (std::is_same<T, long double>()) return FMT_USE_LONG_DOUBLE;
|
1089
|
+
return true;
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
// Smallest of uint32_t, uint64_t, uint128_t that is large enough to
|
1093
|
+
// represent all values of an integral type T.
|
1094
|
+
template <typename T>
|
1095
|
+
using uint32_or_64_or_128_t =
|
1096
|
+
conditional_t<num_bits<T>() <= 32 && !FMT_REDUCE_INT_INSTANTIATIONS,
|
1097
|
+
uint32_t,
|
1098
|
+
conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>;
|
1099
|
+
template <typename T>
|
1100
|
+
using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
|
1101
|
+
|
1102
|
+
#define FMT_POWERS_OF_10(factor) \
|
1103
|
+
factor * 10, (factor) * 100, (factor) * 1000, (factor) * 10000, \
|
1104
|
+
(factor) * 100000, (factor) * 1000000, (factor) * 10000000, \
|
1105
|
+
(factor) * 100000000, (factor) * 1000000000
|
1106
|
+
|
1107
|
+
// Converts value in the range [0, 100) to a string.
|
1108
|
+
constexpr auto digits2(size_t value) -> const char* {
|
1109
|
+
// GCC generates slightly better code when value is pointer-size.
|
1110
|
+
return &"0001020304050607080910111213141516171819"
|
1111
|
+
"2021222324252627282930313233343536373839"
|
1112
|
+
"4041424344454647484950515253545556575859"
|
1113
|
+
"6061626364656667686970717273747576777879"
|
1114
|
+
"8081828384858687888990919293949596979899"[value * 2];
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
// Sign is a template parameter to workaround a bug in gcc 4.8.
|
1118
|
+
template <typename Char, typename Sign> constexpr auto sign(Sign s) -> Char {
|
1119
|
+
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604
|
1120
|
+
static_assert(std::is_same<Sign, sign_t>::value, "");
|
1121
|
+
#endif
|
1122
|
+
return static_cast<Char>("\0-+ "[s]);
|
1123
|
+
}
|
1124
|
+
|
1125
|
+
template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
|
1126
|
+
int count = 1;
|
1127
|
+
for (;;) {
|
1128
|
+
// Integer division is slow so do it for a group of four digits instead
|
1129
|
+
// of for every digit. The idea comes from the talk by Alexandrescu
|
1130
|
+
// "Three Optimization Tips for C++". See speed-test for a comparison.
|
1131
|
+
if (n < 10) return count;
|
1132
|
+
if (n < 100) return count + 1;
|
1133
|
+
if (n < 1000) return count + 2;
|
1134
|
+
if (n < 10000) return count + 3;
|
1135
|
+
n /= 10000u;
|
1136
|
+
count += 4;
|
1137
|
+
}
|
1138
|
+
}
|
1139
|
+
#if FMT_USE_INT128
|
1140
|
+
FMT_CONSTEXPR inline auto count_digits(uint128_opt n) -> int {
|
1141
|
+
return count_digits_fallback(n);
|
1142
|
+
}
|
1143
|
+
#endif
|
1144
|
+
|
1145
|
+
#ifdef FMT_BUILTIN_CLZLL
|
1146
|
+
// It is a separate function rather than a part of count_digits to workaround
|
1147
|
+
// the lack of static constexpr in constexpr functions.
|
1148
|
+
inline auto do_count_digits(uint64_t n) -> int {
|
1149
|
+
// This has comparable performance to the version by Kendall Willets
|
1150
|
+
// (https://github.com/fmtlib/format-benchmark/blob/master/digits10)
|
1151
|
+
// but uses smaller tables.
|
1152
|
+
// Maps bsr(n) to ceil(log10(pow(2, bsr(n) + 1) - 1)).
|
1153
|
+
static constexpr uint8_t bsr2log10[] = {
|
1154
|
+
1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5,
|
1155
|
+
6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10,
|
1156
|
+
10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15,
|
1157
|
+
15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20};
|
1158
|
+
auto t = bsr2log10[FMT_BUILTIN_CLZLL(n | 1) ^ 63];
|
1159
|
+
static constexpr const uint64_t zero_or_powers_of_10[] = {
|
1160
|
+
0, 0, FMT_POWERS_OF_10(1U), FMT_POWERS_OF_10(1000000000ULL),
|
1161
|
+
10000000000000000000ULL};
|
1162
|
+
return t - (n < zero_or_powers_of_10[t]);
|
1163
|
+
}
|
1164
|
+
#endif
|
1165
|
+
|
1166
|
+
// Returns the number of decimal digits in n. Leading zeros are not counted
|
1167
|
+
// except for n == 0 in which case count_digits returns 1.
|
1168
|
+
FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
|
1169
|
+
#ifdef FMT_BUILTIN_CLZLL
|
1170
|
+
if (!is_constant_evaluated()) return do_count_digits(n);
|
1171
|
+
#endif
|
1172
|
+
return count_digits_fallback(n);
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
// Counts the number of digits in n. BITS = log2(radix).
|
1176
|
+
template <int BITS, typename UInt>
|
1177
|
+
FMT_CONSTEXPR auto count_digits(UInt n) -> int {
|
1178
|
+
#ifdef FMT_BUILTIN_CLZ
|
1179
|
+
if (!is_constant_evaluated() && num_bits<UInt>() == 32)
|
1180
|
+
return (FMT_BUILTIN_CLZ(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1;
|
1181
|
+
#endif
|
1182
|
+
// Lambda avoids unreachable code warnings from NVHPC.
|
1183
|
+
return [](UInt m) {
|
1184
|
+
int num_digits = 0;
|
1185
|
+
do {
|
1186
|
+
++num_digits;
|
1187
|
+
} while ((m >>= BITS) != 0);
|
1188
|
+
return num_digits;
|
1189
|
+
}(n);
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
#ifdef FMT_BUILTIN_CLZ
|
1193
|
+
// It is a separate function rather than a part of count_digits to workaround
|
1194
|
+
// the lack of static constexpr in constexpr functions.
|
1195
|
+
FMT_INLINE auto do_count_digits(uint32_t n) -> int {
|
1196
|
+
// An optimization by Kendall Willets from https://bit.ly/3uOIQrB.
|
1197
|
+
// This increments the upper 32 bits (log10(T) - 1) when >= T is added.
|
1198
|
+
# define FMT_INC(T) (((sizeof(#T) - 1ull) << 32) - T)
|
1199
|
+
static constexpr uint64_t table[] = {
|
1200
|
+
FMT_INC(0), FMT_INC(0), FMT_INC(0), // 8
|
1201
|
+
FMT_INC(10), FMT_INC(10), FMT_INC(10), // 64
|
1202
|
+
FMT_INC(100), FMT_INC(100), FMT_INC(100), // 512
|
1203
|
+
FMT_INC(1000), FMT_INC(1000), FMT_INC(1000), // 4096
|
1204
|
+
FMT_INC(10000), FMT_INC(10000), FMT_INC(10000), // 32k
|
1205
|
+
FMT_INC(100000), FMT_INC(100000), FMT_INC(100000), // 256k
|
1206
|
+
FMT_INC(1000000), FMT_INC(1000000), FMT_INC(1000000), // 2048k
|
1207
|
+
FMT_INC(10000000), FMT_INC(10000000), FMT_INC(10000000), // 16M
|
1208
|
+
FMT_INC(100000000), FMT_INC(100000000), FMT_INC(100000000), // 128M
|
1209
|
+
FMT_INC(1000000000), FMT_INC(1000000000), FMT_INC(1000000000), // 1024M
|
1210
|
+
FMT_INC(1000000000), FMT_INC(1000000000) // 4B
|
1211
|
+
};
|
1212
|
+
auto inc = table[FMT_BUILTIN_CLZ(n | 1) ^ 31];
|
1213
|
+
return static_cast<int>((n + inc) >> 32);
|
1214
|
+
}
|
1215
|
+
#endif
|
1216
|
+
|
1217
|
+
// Optional version of count_digits for better performance on 32-bit platforms.
|
1218
|
+
FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
|
1219
|
+
#ifdef FMT_BUILTIN_CLZ
|
1220
|
+
if (!is_constant_evaluated()) {
|
1221
|
+
return do_count_digits(n);
|
1222
|
+
}
|
1223
|
+
#endif
|
1224
|
+
return count_digits_fallback(n);
|
1225
|
+
}
|
1226
|
+
|
1227
|
+
template <typename Int> constexpr auto digits10() noexcept -> int {
|
1228
|
+
return std::numeric_limits<Int>::digits10;
|
1229
|
+
}
|
1230
|
+
template <> constexpr auto digits10<int128_opt>() noexcept -> int { return 38; }
|
1231
|
+
template <> constexpr auto digits10<uint128_t>() noexcept -> int { return 38; }
|
1232
|
+
|
1233
|
+
template <typename Char> struct thousands_sep_result {
|
1234
|
+
std::string grouping;
|
1235
|
+
Char thousands_sep;
|
1236
|
+
};
|
1237
|
+
|
1238
|
+
template <typename Char>
|
1239
|
+
FMT_API auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>;
|
1240
|
+
template <typename Char>
|
1241
|
+
inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> {
|
1242
|
+
auto result = thousands_sep_impl<char>(loc);
|
1243
|
+
return {result.grouping, Char(result.thousands_sep)};
|
1244
|
+
}
|
1245
|
+
template <>
|
1246
|
+
inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> {
|
1247
|
+
return thousands_sep_impl<wchar_t>(loc);
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
template <typename Char>
|
1251
|
+
FMT_API auto decimal_point_impl(locale_ref loc) -> Char;
|
1252
|
+
template <typename Char> inline auto decimal_point(locale_ref loc) -> Char {
|
1253
|
+
return Char(decimal_point_impl<char>(loc));
|
1254
|
+
}
|
1255
|
+
template <> inline auto decimal_point(locale_ref loc) -> wchar_t {
|
1256
|
+
return decimal_point_impl<wchar_t>(loc);
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
// Compares two characters for equality.
|
1260
|
+
template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
|
1261
|
+
return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
|
1262
|
+
}
|
1263
|
+
inline auto equal2(const char* lhs, const char* rhs) -> bool {
|
1264
|
+
return memcmp(lhs, rhs, 2) == 0;
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
// Copies two characters from src to dst.
|
1268
|
+
template <typename Char>
|
1269
|
+
FMT_CONSTEXPR20 FMT_INLINE void copy2(Char* dst, const char* src) {
|
1270
|
+
if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) {
|
1271
|
+
memcpy(dst, src, 2);
|
1272
|
+
return;
|
1273
|
+
}
|
1274
|
+
*dst++ = static_cast<Char>(*src++);
|
1275
|
+
*dst = static_cast<Char>(*src);
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
template <typename Iterator> struct format_decimal_result {
|
1279
|
+
Iterator begin;
|
1280
|
+
Iterator end;
|
1281
|
+
};
|
1282
|
+
|
1283
|
+
// Formats a decimal unsigned integer value writing into out pointing to a
|
1284
|
+
// buffer of specified size. The caller must ensure that the buffer is large
|
1285
|
+
// enough.
|
1286
|
+
template <typename Char, typename UInt>
|
1287
|
+
FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
|
1288
|
+
-> format_decimal_result<Char*> {
|
1289
|
+
FMT_ASSERT(size >= count_digits(value), "invalid digit count");
|
1290
|
+
out += size;
|
1291
|
+
Char* end = out;
|
1292
|
+
while (value >= 100) {
|
1293
|
+
// Integer division is slow so do it for a group of two digits instead
|
1294
|
+
// of for every digit. The idea comes from the talk by Alexandrescu
|
1295
|
+
// "Three Optimization Tips for C++". See speed-test for a comparison.
|
1296
|
+
out -= 2;
|
1297
|
+
copy2(out, digits2(static_cast<size_t>(value % 100)));
|
1298
|
+
value /= 100;
|
1299
|
+
}
|
1300
|
+
if (value < 10) {
|
1301
|
+
*--out = static_cast<Char>('0' + value);
|
1302
|
+
return {out, end};
|
1303
|
+
}
|
1304
|
+
out -= 2;
|
1305
|
+
copy2(out, digits2(static_cast<size_t>(value)));
|
1306
|
+
return {out, end};
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
template <typename Char, typename UInt, typename Iterator,
|
1310
|
+
FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<Iterator>>::value)>
|
1311
|
+
FMT_CONSTEXPR inline auto format_decimal(Iterator out, UInt value, int size)
|
1312
|
+
-> format_decimal_result<Iterator> {
|
1313
|
+
// Buffer is large enough to hold all digits (digits10 + 1).
|
1314
|
+
Char buffer[digits10<UInt>() + 1] = {};
|
1315
|
+
auto end = format_decimal(buffer, value, size).end;
|
1316
|
+
return {out, detail::copy_noinline<Char>(buffer, end, out)};
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
template <unsigned BASE_BITS, typename Char, typename UInt>
|
1320
|
+
FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
|
1321
|
+
bool upper = false) -> Char* {
|
1322
|
+
buffer += num_digits;
|
1323
|
+
Char* end = buffer;
|
1324
|
+
do {
|
1325
|
+
const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
|
1326
|
+
unsigned digit = static_cast<unsigned>(value & ((1 << BASE_BITS) - 1));
|
1327
|
+
*--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
|
1328
|
+
: digits[digit]);
|
1329
|
+
} while ((value >>= BASE_BITS) != 0);
|
1330
|
+
return end;
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
|
1334
|
+
FMT_CONSTEXPR inline auto format_uint(It out, UInt value, int num_digits,
|
1335
|
+
bool upper = false) -> It {
|
1336
|
+
if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
|
1337
|
+
format_uint<BASE_BITS>(ptr, value, num_digits, upper);
|
1338
|
+
return out;
|
1339
|
+
}
|
1340
|
+
// Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
|
1341
|
+
char buffer[num_bits<UInt>() / BASE_BITS + 1] = {};
|
1342
|
+
format_uint<BASE_BITS>(buffer, value, num_digits, upper);
|
1343
|
+
return detail::copy_noinline<Char>(buffer, buffer + num_digits, out);
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
// A converter from UTF-8 to UTF-16.
|
1347
|
+
class utf8_to_utf16 {
|
1348
|
+
private:
|
1349
|
+
basic_memory_buffer<wchar_t> buffer_;
|
1350
|
+
|
1351
|
+
public:
|
1352
|
+
FMT_API explicit utf8_to_utf16(string_view s);
|
1353
|
+
operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; }
|
1354
|
+
auto size() const -> size_t { return buffer_.size() - 1; }
|
1355
|
+
auto c_str() const -> const wchar_t* { return &buffer_[0]; }
|
1356
|
+
auto str() const -> std::wstring { return {&buffer_[0], size()}; }
|
1357
|
+
};
|
1358
|
+
|
1359
|
+
enum class to_utf8_error_policy { abort, replace };
|
1360
|
+
|
1361
|
+
// A converter from UTF-16/UTF-32 (host endian) to UTF-8.
|
1362
|
+
template <typename WChar, typename Buffer = memory_buffer> class to_utf8 {
|
1363
|
+
private:
|
1364
|
+
Buffer buffer_;
|
1365
|
+
|
1366
|
+
public:
|
1367
|
+
to_utf8() {}
|
1368
|
+
explicit to_utf8(basic_string_view<WChar> s,
|
1369
|
+
to_utf8_error_policy policy = to_utf8_error_policy::abort) {
|
1370
|
+
static_assert(sizeof(WChar) == 2 || sizeof(WChar) == 4,
|
1371
|
+
"Expect utf16 or utf32");
|
1372
|
+
if (!convert(s, policy))
|
1373
|
+
FMT_THROW(std::runtime_error(sizeof(WChar) == 2 ? "invalid utf16"
|
1374
|
+
: "invalid utf32"));
|
1375
|
+
}
|
1376
|
+
operator string_view() const { return string_view(&buffer_[0], size()); }
|
1377
|
+
auto size() const -> size_t { return buffer_.size() - 1; }
|
1378
|
+
auto c_str() const -> const char* { return &buffer_[0]; }
|
1379
|
+
auto str() const -> std::string { return std::string(&buffer_[0], size()); }
|
1380
|
+
|
1381
|
+
// Performs conversion returning a bool instead of throwing exception on
|
1382
|
+
// conversion error. This method may still throw in case of memory allocation
|
1383
|
+
// error.
|
1384
|
+
auto convert(basic_string_view<WChar> s,
|
1385
|
+
to_utf8_error_policy policy = to_utf8_error_policy::abort)
|
1386
|
+
-> bool {
|
1387
|
+
if (!convert(buffer_, s, policy)) return false;
|
1388
|
+
buffer_.push_back(0);
|
1389
|
+
return true;
|
1390
|
+
}
|
1391
|
+
static auto convert(Buffer& buf, basic_string_view<WChar> s,
|
1392
|
+
to_utf8_error_policy policy = to_utf8_error_policy::abort)
|
1393
|
+
-> bool {
|
1394
|
+
for (auto p = s.begin(); p != s.end(); ++p) {
|
1395
|
+
uint32_t c = static_cast<uint32_t>(*p);
|
1396
|
+
if (sizeof(WChar) == 2 && c >= 0xd800 && c <= 0xdfff) {
|
1397
|
+
// Handle a surrogate pair.
|
1398
|
+
++p;
|
1399
|
+
if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) {
|
1400
|
+
if (policy == to_utf8_error_policy::abort) return false;
|
1401
|
+
buf.append(string_view("\xEF\xBF\xBD"));
|
1402
|
+
--p;
|
1403
|
+
} else {
|
1404
|
+
c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;
|
1405
|
+
}
|
1406
|
+
} else if (c < 0x80) {
|
1407
|
+
buf.push_back(static_cast<char>(c));
|
1408
|
+
} else if (c < 0x800) {
|
1409
|
+
buf.push_back(static_cast<char>(0xc0 | (c >> 6)));
|
1410
|
+
buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
|
1411
|
+
} else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) {
|
1412
|
+
buf.push_back(static_cast<char>(0xe0 | (c >> 12)));
|
1413
|
+
buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
|
1414
|
+
buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
|
1415
|
+
} else if (c >= 0x10000 && c <= 0x10ffff) {
|
1416
|
+
buf.push_back(static_cast<char>(0xf0 | (c >> 18)));
|
1417
|
+
buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12)));
|
1418
|
+
buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6)));
|
1419
|
+
buf.push_back(static_cast<char>(0x80 | (c & 0x3f)));
|
1420
|
+
} else {
|
1421
|
+
return false;
|
1422
|
+
}
|
1423
|
+
}
|
1424
|
+
return true;
|
1425
|
+
}
|
1426
|
+
};
|
1427
|
+
|
1428
|
+
// Computes 128-bit result of multiplication of two 64-bit unsigned integers.
|
1429
|
+
inline auto umul128(uint64_t x, uint64_t y) noexcept -> uint128_fallback {
|
1430
|
+
#if FMT_USE_INT128
|
1431
|
+
auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y);
|
1432
|
+
return {static_cast<uint64_t>(p >> 64), static_cast<uint64_t>(p)};
|
1433
|
+
#elif defined(_MSC_VER) && defined(_M_X64)
|
1434
|
+
auto hi = uint64_t();
|
1435
|
+
auto lo = _umul128(x, y, &hi);
|
1436
|
+
return {hi, lo};
|
1437
|
+
#else
|
1438
|
+
const uint64_t mask = static_cast<uint64_t>(max_value<uint32_t>());
|
1439
|
+
|
1440
|
+
uint64_t a = x >> 32;
|
1441
|
+
uint64_t b = x & mask;
|
1442
|
+
uint64_t c = y >> 32;
|
1443
|
+
uint64_t d = y & mask;
|
1444
|
+
|
1445
|
+
uint64_t ac = a * c;
|
1446
|
+
uint64_t bc = b * c;
|
1447
|
+
uint64_t ad = a * d;
|
1448
|
+
uint64_t bd = b * d;
|
1449
|
+
|
1450
|
+
uint64_t intermediate = (bd >> 32) + (ad & mask) + (bc & mask);
|
1451
|
+
|
1452
|
+
return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
|
1453
|
+
(intermediate << 32) + (bd & mask)};
|
1454
|
+
#endif
|
1455
|
+
}
|
1456
|
+
|
1457
|
+
namespace dragonbox {
|
1458
|
+
// Computes floor(log10(pow(2, e))) for e in [-2620, 2620] using the method from
|
1459
|
+
// https://fmt.dev/papers/Dragonbox.pdf#page=28, section 6.1.
|
1460
|
+
inline auto floor_log10_pow2(int e) noexcept -> int {
|
1461
|
+
FMT_ASSERT(e <= 2620 && e >= -2620, "too large exponent");
|
1462
|
+
static_assert((-1 >> 1) == -1, "right shift is not arithmetic");
|
1463
|
+
return (e * 315653) >> 20;
|
1464
|
+
}
|
1465
|
+
|
1466
|
+
inline auto floor_log2_pow10(int e) noexcept -> int {
|
1467
|
+
FMT_ASSERT(e <= 1233 && e >= -1233, "too large exponent");
|
1468
|
+
return (e * 1741647) >> 19;
|
1469
|
+
}
|
1470
|
+
|
1471
|
+
// Computes upper 64 bits of multiplication of two 64-bit unsigned integers.
|
1472
|
+
inline auto umul128_upper64(uint64_t x, uint64_t y) noexcept -> uint64_t {
|
1473
|
+
#if FMT_USE_INT128
|
1474
|
+
auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y);
|
1475
|
+
return static_cast<uint64_t>(p >> 64);
|
1476
|
+
#elif defined(_MSC_VER) && defined(_M_X64)
|
1477
|
+
return __umulh(x, y);
|
1478
|
+
#else
|
1479
|
+
return umul128(x, y).high();
|
1480
|
+
#endif
|
1481
|
+
}
|
1482
|
+
|
1483
|
+
// Computes upper 128 bits of multiplication of a 64-bit unsigned integer and a
|
1484
|
+
// 128-bit unsigned integer.
|
1485
|
+
inline auto umul192_upper128(uint64_t x, uint128_fallback y) noexcept
|
1486
|
+
-> uint128_fallback {
|
1487
|
+
uint128_fallback r = umul128(x, y.high());
|
1488
|
+
r += umul128_upper64(x, y.low());
|
1489
|
+
return r;
|
1490
|
+
}
|
1491
|
+
|
1492
|
+
FMT_API auto get_cached_power(int k) noexcept -> uint128_fallback;
|
1493
|
+
|
1494
|
+
// Type-specific information that Dragonbox uses.
|
1495
|
+
template <typename T, typename Enable = void> struct float_info;
|
1496
|
+
|
1497
|
+
template <> struct float_info<float> {
|
1498
|
+
using carrier_uint = uint32_t;
|
1499
|
+
static const int exponent_bits = 8;
|
1500
|
+
static const int kappa = 1;
|
1501
|
+
static const int big_divisor = 100;
|
1502
|
+
static const int small_divisor = 10;
|
1503
|
+
static const int min_k = -31;
|
1504
|
+
static const int max_k = 46;
|
1505
|
+
static const int shorter_interval_tie_lower_threshold = -35;
|
1506
|
+
static const int shorter_interval_tie_upper_threshold = -35;
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
template <> struct float_info<double> {
|
1510
|
+
using carrier_uint = uint64_t;
|
1511
|
+
static const int exponent_bits = 11;
|
1512
|
+
static const int kappa = 2;
|
1513
|
+
static const int big_divisor = 1000;
|
1514
|
+
static const int small_divisor = 100;
|
1515
|
+
static const int min_k = -292;
|
1516
|
+
static const int max_k = 341;
|
1517
|
+
static const int shorter_interval_tie_lower_threshold = -77;
|
1518
|
+
static const int shorter_interval_tie_upper_threshold = -77;
|
1519
|
+
};
|
1520
|
+
|
1521
|
+
// An 80- or 128-bit floating point number.
|
1522
|
+
template <typename T>
|
1523
|
+
struct float_info<T, enable_if_t<std::numeric_limits<T>::digits == 64 ||
|
1524
|
+
std::numeric_limits<T>::digits == 113 ||
|
1525
|
+
is_float128<T>::value>> {
|
1526
|
+
using carrier_uint = detail::uint128_t;
|
1527
|
+
static const int exponent_bits = 15;
|
1528
|
+
};
|
1529
|
+
|
1530
|
+
// A double-double floating point number.
|
1531
|
+
template <typename T>
|
1532
|
+
struct float_info<T, enable_if_t<is_double_double<T>::value>> {
|
1533
|
+
using carrier_uint = detail::uint128_t;
|
1534
|
+
};
|
1535
|
+
|
1536
|
+
template <typename T> struct decimal_fp {
|
1537
|
+
using significand_type = typename float_info<T>::carrier_uint;
|
1538
|
+
significand_type significand;
|
1539
|
+
int exponent;
|
1540
|
+
};
|
1541
|
+
|
1542
|
+
template <typename T> FMT_API auto to_decimal(T x) noexcept -> decimal_fp<T>;
|
1543
|
+
} // namespace dragonbox
|
1544
|
+
|
1545
|
+
// Returns true iff Float has the implicit bit which is not stored.
|
1546
|
+
template <typename Float> constexpr auto has_implicit_bit() -> bool {
|
1547
|
+
// An 80-bit FP number has a 64-bit significand an no implicit bit.
|
1548
|
+
return std::numeric_limits<Float>::digits != 64;
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
// Returns the number of significand bits stored in Float. The implicit bit is
|
1552
|
+
// not counted since it is not stored.
|
1553
|
+
template <typename Float> constexpr auto num_significand_bits() -> int {
|
1554
|
+
// std::numeric_limits may not support __float128.
|
1555
|
+
return is_float128<Float>() ? 112
|
1556
|
+
: (std::numeric_limits<Float>::digits -
|
1557
|
+
(has_implicit_bit<Float>() ? 1 : 0));
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
template <typename Float>
|
1561
|
+
constexpr auto exponent_mask() ->
|
1562
|
+
typename dragonbox::float_info<Float>::carrier_uint {
|
1563
|
+
using float_uint = typename dragonbox::float_info<Float>::carrier_uint;
|
1564
|
+
return ((float_uint(1) << dragonbox::float_info<Float>::exponent_bits) - 1)
|
1565
|
+
<< num_significand_bits<Float>();
|
1566
|
+
}
|
1567
|
+
template <typename Float> constexpr auto exponent_bias() -> int {
|
1568
|
+
// std::numeric_limits may not support __float128.
|
1569
|
+
return is_float128<Float>() ? 16383
|
1570
|
+
: std::numeric_limits<Float>::max_exponent - 1;
|
1571
|
+
}
|
1572
|
+
|
1573
|
+
// Writes the exponent exp in the form "[+-]d{2,3}" to buffer.
|
1574
|
+
template <typename Char, typename It>
|
1575
|
+
FMT_CONSTEXPR auto write_exponent(int exp, It it) -> It {
|
1576
|
+
FMT_ASSERT(-10000 < exp && exp < 10000, "exponent out of range");
|
1577
|
+
if (exp < 0) {
|
1578
|
+
*it++ = static_cast<Char>('-');
|
1579
|
+
exp = -exp;
|
1580
|
+
} else {
|
1581
|
+
*it++ = static_cast<Char>('+');
|
1582
|
+
}
|
1583
|
+
if (exp >= 100) {
|
1584
|
+
const char* top = digits2(to_unsigned(exp / 100));
|
1585
|
+
if (exp >= 1000) *it++ = static_cast<Char>(top[0]);
|
1586
|
+
*it++ = static_cast<Char>(top[1]);
|
1587
|
+
exp %= 100;
|
1588
|
+
}
|
1589
|
+
const char* d = digits2(to_unsigned(exp));
|
1590
|
+
*it++ = static_cast<Char>(d[0]);
|
1591
|
+
*it++ = static_cast<Char>(d[1]);
|
1592
|
+
return it;
|
1593
|
+
}
|
1594
|
+
|
1595
|
+
// A floating-point number f * pow(2, e) where F is an unsigned type.
|
1596
|
+
template <typename F> struct basic_fp {
|
1597
|
+
F f;
|
1598
|
+
int e;
|
1599
|
+
|
1600
|
+
static constexpr const int num_significand_bits =
|
1601
|
+
static_cast<int>(sizeof(F) * num_bits<unsigned char>());
|
1602
|
+
|
1603
|
+
constexpr basic_fp() : f(0), e(0) {}
|
1604
|
+
constexpr basic_fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {}
|
1605
|
+
|
1606
|
+
// Constructs fp from an IEEE754 floating-point number.
|
1607
|
+
template <typename Float> FMT_CONSTEXPR basic_fp(Float n) { assign(n); }
|
1608
|
+
|
1609
|
+
// Assigns n to this and return true iff predecessor is closer than successor.
|
1610
|
+
template <typename Float, FMT_ENABLE_IF(!is_double_double<Float>::value)>
|
1611
|
+
FMT_CONSTEXPR auto assign(Float n) -> bool {
|
1612
|
+
static_assert(std::numeric_limits<Float>::digits <= 113, "unsupported FP");
|
1613
|
+
// Assume Float is in the format [sign][exponent][significand].
|
1614
|
+
using carrier_uint = typename dragonbox::float_info<Float>::carrier_uint;
|
1615
|
+
const auto num_float_significand_bits =
|
1616
|
+
detail::num_significand_bits<Float>();
|
1617
|
+
const auto implicit_bit = carrier_uint(1) << num_float_significand_bits;
|
1618
|
+
const auto significand_mask = implicit_bit - 1;
|
1619
|
+
auto u = bit_cast<carrier_uint>(n);
|
1620
|
+
f = static_cast<F>(u & significand_mask);
|
1621
|
+
auto biased_e = static_cast<int>((u & exponent_mask<Float>()) >>
|
1622
|
+
num_float_significand_bits);
|
1623
|
+
// The predecessor is closer if n is a normalized power of 2 (f == 0)
|
1624
|
+
// other than the smallest normalized number (biased_e > 1).
|
1625
|
+
auto is_predecessor_closer = f == 0 && biased_e > 1;
|
1626
|
+
if (biased_e == 0)
|
1627
|
+
biased_e = 1; // Subnormals use biased exponent 1 (min exponent).
|
1628
|
+
else if (has_implicit_bit<Float>())
|
1629
|
+
f += static_cast<F>(implicit_bit);
|
1630
|
+
e = biased_e - exponent_bias<Float>() - num_float_significand_bits;
|
1631
|
+
if (!has_implicit_bit<Float>()) ++e;
|
1632
|
+
return is_predecessor_closer;
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
template <typename Float, FMT_ENABLE_IF(is_double_double<Float>::value)>
|
1636
|
+
FMT_CONSTEXPR auto assign(Float n) -> bool {
|
1637
|
+
static_assert(std::numeric_limits<double>::is_iec559, "unsupported FP");
|
1638
|
+
return assign(static_cast<double>(n));
|
1639
|
+
}
|
1640
|
+
};
|
1641
|
+
|
1642
|
+
using fp = basic_fp<unsigned long long>;
|
1643
|
+
|
1644
|
+
// Normalizes the value converted from double and multiplied by (1 << SHIFT).
|
1645
|
+
template <int SHIFT = 0, typename F>
|
1646
|
+
FMT_CONSTEXPR auto normalize(basic_fp<F> value) -> basic_fp<F> {
|
1647
|
+
// Handle subnormals.
|
1648
|
+
const auto implicit_bit = F(1) << num_significand_bits<double>();
|
1649
|
+
const auto shifted_implicit_bit = implicit_bit << SHIFT;
|
1650
|
+
while ((value.f & shifted_implicit_bit) == 0) {
|
1651
|
+
value.f <<= 1;
|
1652
|
+
--value.e;
|
1653
|
+
}
|
1654
|
+
// Subtract 1 to account for hidden bit.
|
1655
|
+
const auto offset = basic_fp<F>::num_significand_bits -
|
1656
|
+
num_significand_bits<double>() - SHIFT - 1;
|
1657
|
+
value.f <<= offset;
|
1658
|
+
value.e -= offset;
|
1659
|
+
return value;
|
1660
|
+
}
|
1661
|
+
|
1662
|
+
// Computes lhs * rhs / pow(2, 64) rounded to nearest with half-up tie breaking.
|
1663
|
+
FMT_CONSTEXPR inline auto multiply(uint64_t lhs, uint64_t rhs) -> uint64_t {
|
1664
|
+
#if FMT_USE_INT128
|
1665
|
+
auto product = static_cast<__uint128_t>(lhs) * rhs;
|
1666
|
+
auto f = static_cast<uint64_t>(product >> 64);
|
1667
|
+
return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f;
|
1668
|
+
#else
|
1669
|
+
// Multiply 32-bit parts of significands.
|
1670
|
+
uint64_t mask = (1ULL << 32) - 1;
|
1671
|
+
uint64_t a = lhs >> 32, b = lhs & mask;
|
1672
|
+
uint64_t c = rhs >> 32, d = rhs & mask;
|
1673
|
+
uint64_t ac = a * c, bc = b * c, ad = a * d, bd = b * d;
|
1674
|
+
// Compute mid 64-bit of result and round.
|
1675
|
+
uint64_t mid = (bd >> 32) + (ad & mask) + (bc & mask) + (1U << 31);
|
1676
|
+
return ac + (ad >> 32) + (bc >> 32) + (mid >> 32);
|
1677
|
+
#endif
|
1678
|
+
}
|
1679
|
+
|
1680
|
+
FMT_CONSTEXPR inline auto operator*(fp x, fp y) -> fp {
|
1681
|
+
return {multiply(x.f, y.f), x.e + y.e + 64};
|
1682
|
+
}
|
1683
|
+
|
1684
|
+
template <typename T, bool doublish = num_bits<T>() == num_bits<double>()>
|
1685
|
+
using convert_float_result =
|
1686
|
+
conditional_t<std::is_same<T, float>::value || doublish, double, T>;
|
1687
|
+
|
1688
|
+
template <typename T>
|
1689
|
+
constexpr auto convert_float(T value) -> convert_float_result<T> {
|
1690
|
+
return static_cast<convert_float_result<T>>(value);
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
template <typename Char, typename OutputIt>
|
1694
|
+
FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n, const fill_t& fill)
|
1695
|
+
-> OutputIt {
|
1696
|
+
auto fill_size = fill.size();
|
1697
|
+
if (fill_size == 1) return detail::fill_n(it, n, fill.template get<Char>());
|
1698
|
+
if (const Char* data = fill.template data<Char>()) {
|
1699
|
+
for (size_t i = 0; i < n; ++i) it = copy<Char>(data, data + fill_size, it);
|
1700
|
+
}
|
1701
|
+
return it;
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
// Writes the output of f, padded according to format specifications in specs.
|
1705
|
+
// size: output size in code units.
|
1706
|
+
// width: output display width in (terminal) column positions.
|
1707
|
+
template <typename Char, align::type align = align::left, typename OutputIt,
|
1708
|
+
typename F>
|
1709
|
+
FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs& specs,
|
1710
|
+
size_t size, size_t width, F&& f) -> OutputIt {
|
1711
|
+
static_assert(align == align::left || align == align::right, "");
|
1712
|
+
unsigned spec_width = to_unsigned(specs.width);
|
1713
|
+
size_t padding = spec_width > width ? spec_width - width : 0;
|
1714
|
+
// Shifts are encoded as string literals because static constexpr is not
|
1715
|
+
// supported in constexpr functions.
|
1716
|
+
auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
|
1717
|
+
size_t left_padding = padding >> shifts[specs.align];
|
1718
|
+
size_t right_padding = padding - left_padding;
|
1719
|
+
auto it = reserve(out, size + padding * specs.fill.size());
|
1720
|
+
if (left_padding != 0) it = fill<Char>(it, left_padding, specs.fill);
|
1721
|
+
it = f(it);
|
1722
|
+
if (right_padding != 0) it = fill<Char>(it, right_padding, specs.fill);
|
1723
|
+
return base_iterator(out, it);
|
1724
|
+
}
|
1725
|
+
|
1726
|
+
template <typename Char, align::type align = align::left, typename OutputIt,
|
1727
|
+
typename F>
|
1728
|
+
constexpr auto write_padded(OutputIt out, const format_specs& specs,
|
1729
|
+
size_t size, F&& f) -> OutputIt {
|
1730
|
+
return write_padded<Char, align>(out, specs, size, size, f);
|
1731
|
+
}
|
1732
|
+
|
1733
|
+
template <typename Char, align::type align = align::left, typename OutputIt>
|
1734
|
+
FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
|
1735
|
+
const format_specs& specs = {}) -> OutputIt {
|
1736
|
+
return write_padded<Char, align>(
|
1737
|
+
out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
|
1738
|
+
const char* data = bytes.data();
|
1739
|
+
return copy<Char>(data, data + bytes.size(), it);
|
1740
|
+
});
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
template <typename Char, typename OutputIt, typename UIntPtr>
|
1744
|
+
auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs)
|
1745
|
+
-> OutputIt {
|
1746
|
+
int num_digits = count_digits<4>(value);
|
1747
|
+
auto size = to_unsigned(num_digits) + size_t(2);
|
1748
|
+
auto write = [=](reserve_iterator<OutputIt> it) {
|
1749
|
+
*it++ = static_cast<Char>('0');
|
1750
|
+
*it++ = static_cast<Char>('x');
|
1751
|
+
return format_uint<4, Char>(it, value, num_digits);
|
1752
|
+
};
|
1753
|
+
return specs ? write_padded<Char, align::right>(out, *specs, size, write)
|
1754
|
+
: base_iterator(out, write(reserve(out, size)));
|
1755
|
+
}
|
1756
|
+
|
1757
|
+
// Returns true iff the code point cp is printable.
|
1758
|
+
FMT_API auto is_printable(uint32_t cp) -> bool;
|
1759
|
+
|
1760
|
+
inline auto needs_escape(uint32_t cp) -> bool {
|
1761
|
+
return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||
|
1762
|
+
!is_printable(cp);
|
1763
|
+
}
|
1764
|
+
|
1765
|
+
template <typename Char> struct find_escape_result {
|
1766
|
+
const Char* begin;
|
1767
|
+
const Char* end;
|
1768
|
+
uint32_t cp;
|
1769
|
+
};
|
1770
|
+
|
1771
|
+
template <typename Char>
|
1772
|
+
auto find_escape(const Char* begin, const Char* end)
|
1773
|
+
-> find_escape_result<Char> {
|
1774
|
+
for (; begin != end; ++begin) {
|
1775
|
+
uint32_t cp = static_cast<unsigned_char<Char>>(*begin);
|
1776
|
+
if (const_check(sizeof(Char) == 1) && cp >= 0x80) continue;
|
1777
|
+
if (needs_escape(cp)) return {begin, begin + 1, cp};
|
1778
|
+
}
|
1779
|
+
return {begin, nullptr, 0};
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
inline auto find_escape(const char* begin, const char* end)
|
1783
|
+
-> find_escape_result<char> {
|
1784
|
+
if (!use_utf8()) return find_escape<char>(begin, end);
|
1785
|
+
auto result = find_escape_result<char>{end, nullptr, 0};
|
1786
|
+
for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
|
1787
|
+
[&](uint32_t cp, string_view sv) {
|
1788
|
+
if (needs_escape(cp)) {
|
1789
|
+
result = {sv.begin(), sv.end(), cp};
|
1790
|
+
return false;
|
1791
|
+
}
|
1792
|
+
return true;
|
1793
|
+
});
|
1794
|
+
return result;
|
1795
|
+
}
|
1796
|
+
|
1797
|
+
#define FMT_STRING_IMPL(s, base, explicit) \
|
1798
|
+
[] { \
|
1799
|
+
/* Use the hidden visibility as a workaround for a GCC bug (#1973). */ \
|
1800
|
+
/* Use a macro-like name to avoid shadowing warnings. */ \
|
1801
|
+
struct FMT_VISIBILITY("hidden") FMT_COMPILE_STRING : base { \
|
1802
|
+
using char_type FMT_MAYBE_UNUSED = fmt::remove_cvref_t<decltype(s[0])>; \
|
1803
|
+
FMT_MAYBE_UNUSED FMT_CONSTEXPR explicit \
|
1804
|
+
operator fmt::basic_string_view<char_type>() const { \
|
1805
|
+
return fmt::detail_exported::compile_string_to_view<char_type>(s); \
|
1806
|
+
} \
|
1807
|
+
}; \
|
1808
|
+
return FMT_COMPILE_STRING(); \
|
1809
|
+
}()
|
1810
|
+
|
1811
|
+
/**
|
1812
|
+
* Constructs a compile-time format string from a string literal `s`.
|
1813
|
+
*
|
1814
|
+
* **Example**:
|
1815
|
+
*
|
1816
|
+
* // A compile-time error because 'd' is an invalid specifier for strings.
|
1817
|
+
* std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
|
1818
|
+
*/
|
1819
|
+
#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string, )
|
1820
|
+
|
1821
|
+
template <size_t width, typename Char, typename OutputIt>
|
1822
|
+
auto write_codepoint(OutputIt out, char prefix, uint32_t cp) -> OutputIt {
|
1823
|
+
*out++ = static_cast<Char>('\\');
|
1824
|
+
*out++ = static_cast<Char>(prefix);
|
1825
|
+
Char buf[width];
|
1826
|
+
fill_n(buf, width, static_cast<Char>('0'));
|
1827
|
+
format_uint<4>(buf, cp, width);
|
1828
|
+
return copy<Char>(buf, buf + width, out);
|
1829
|
+
}
|
1830
|
+
|
1831
|
+
template <typename OutputIt, typename Char>
|
1832
|
+
auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape)
|
1833
|
+
-> OutputIt {
|
1834
|
+
auto c = static_cast<Char>(escape.cp);
|
1835
|
+
switch (escape.cp) {
|
1836
|
+
case '\n':
|
1837
|
+
*out++ = static_cast<Char>('\\');
|
1838
|
+
c = static_cast<Char>('n');
|
1839
|
+
break;
|
1840
|
+
case '\r':
|
1841
|
+
*out++ = static_cast<Char>('\\');
|
1842
|
+
c = static_cast<Char>('r');
|
1843
|
+
break;
|
1844
|
+
case '\t':
|
1845
|
+
*out++ = static_cast<Char>('\\');
|
1846
|
+
c = static_cast<Char>('t');
|
1847
|
+
break;
|
1848
|
+
case '"':
|
1849
|
+
FMT_FALLTHROUGH;
|
1850
|
+
case '\'':
|
1851
|
+
FMT_FALLTHROUGH;
|
1852
|
+
case '\\':
|
1853
|
+
*out++ = static_cast<Char>('\\');
|
1854
|
+
break;
|
1855
|
+
default:
|
1856
|
+
if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp);
|
1857
|
+
if (escape.cp < 0x10000)
|
1858
|
+
return write_codepoint<4, Char>(out, 'u', escape.cp);
|
1859
|
+
if (escape.cp < 0x110000)
|
1860
|
+
return write_codepoint<8, Char>(out, 'U', escape.cp);
|
1861
|
+
for (Char escape_char : basic_string_view<Char>(
|
1862
|
+
escape.begin, to_unsigned(escape.end - escape.begin))) {
|
1863
|
+
out = write_codepoint<2, Char>(out, 'x',
|
1864
|
+
static_cast<uint32_t>(escape_char) & 0xFF);
|
1865
|
+
}
|
1866
|
+
return out;
|
1867
|
+
}
|
1868
|
+
*out++ = c;
|
1869
|
+
return out;
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
template <typename Char, typename OutputIt>
|
1873
|
+
auto write_escaped_string(OutputIt out, basic_string_view<Char> str)
|
1874
|
+
-> OutputIt {
|
1875
|
+
*out++ = static_cast<Char>('"');
|
1876
|
+
auto begin = str.begin(), end = str.end();
|
1877
|
+
do {
|
1878
|
+
auto escape = find_escape(begin, end);
|
1879
|
+
out = copy<Char>(begin, escape.begin, out);
|
1880
|
+
begin = escape.end;
|
1881
|
+
if (!begin) break;
|
1882
|
+
out = write_escaped_cp<OutputIt, Char>(out, escape);
|
1883
|
+
} while (begin != end);
|
1884
|
+
*out++ = static_cast<Char>('"');
|
1885
|
+
return out;
|
1886
|
+
}
|
1887
|
+
|
1888
|
+
template <typename Char, typename OutputIt>
|
1889
|
+
auto write_escaped_char(OutputIt out, Char v) -> OutputIt {
|
1890
|
+
Char v_array[1] = {v};
|
1891
|
+
*out++ = static_cast<Char>('\'');
|
1892
|
+
if ((needs_escape(static_cast<uint32_t>(v)) && v != static_cast<Char>('"')) ||
|
1893
|
+
v == static_cast<Char>('\'')) {
|
1894
|
+
out = write_escaped_cp(out,
|
1895
|
+
find_escape_result<Char>{v_array, v_array + 1,
|
1896
|
+
static_cast<uint32_t>(v)});
|
1897
|
+
} else {
|
1898
|
+
*out++ = v;
|
1899
|
+
}
|
1900
|
+
*out++ = static_cast<Char>('\'');
|
1901
|
+
return out;
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
template <typename Char, typename OutputIt>
|
1905
|
+
FMT_CONSTEXPR auto write_char(OutputIt out, Char value,
|
1906
|
+
const format_specs& specs) -> OutputIt {
|
1907
|
+
bool is_debug = specs.type == presentation_type::debug;
|
1908
|
+
return write_padded<Char>(out, specs, 1, [=](reserve_iterator<OutputIt> it) {
|
1909
|
+
if (is_debug) return write_escaped_char(it, value);
|
1910
|
+
*it++ = value;
|
1911
|
+
return it;
|
1912
|
+
});
|
1913
|
+
}
|
1914
|
+
template <typename Char, typename OutputIt>
|
1915
|
+
FMT_CONSTEXPR auto write(OutputIt out, Char value, const format_specs& specs,
|
1916
|
+
locale_ref loc = {}) -> OutputIt {
|
1917
|
+
// char is formatted as unsigned char for consistency across platforms.
|
1918
|
+
using unsigned_type =
|
1919
|
+
conditional_t<std::is_same<Char, char>::value, unsigned char, unsigned>;
|
1920
|
+
return check_char_specs(specs)
|
1921
|
+
? write_char<Char>(out, value, specs)
|
1922
|
+
: write<Char>(out, static_cast<unsigned_type>(value), specs, loc);
|
1923
|
+
}
|
1924
|
+
|
1925
|
+
// Data for write_int that doesn't depend on output iterator type. It is used to
|
1926
|
+
// avoid template code bloat.
|
1927
|
+
template <typename Char> struct write_int_data {
|
1928
|
+
size_t size;
|
1929
|
+
size_t padding;
|
1930
|
+
|
1931
|
+
FMT_CONSTEXPR write_int_data(int num_digits, unsigned prefix,
|
1932
|
+
const format_specs& specs)
|
1933
|
+
: size((prefix >> 24) + to_unsigned(num_digits)), padding(0) {
|
1934
|
+
if (specs.align == align::numeric) {
|
1935
|
+
auto width = to_unsigned(specs.width);
|
1936
|
+
if (width > size) {
|
1937
|
+
padding = width - size;
|
1938
|
+
size = width;
|
1939
|
+
}
|
1940
|
+
} else if (specs.precision > num_digits) {
|
1941
|
+
size = (prefix >> 24) + to_unsigned(specs.precision);
|
1942
|
+
padding = to_unsigned(specs.precision - num_digits);
|
1943
|
+
}
|
1944
|
+
}
|
1945
|
+
};
|
1946
|
+
|
1947
|
+
// Writes an integer in the format
|
1948
|
+
// <left-padding><prefix><numeric-padding><digits><right-padding>
|
1949
|
+
// where <digits> are written by write_digits(it).
|
1950
|
+
// prefix contains chars in three lower bytes and the size in the fourth byte.
|
1951
|
+
template <typename Char, typename OutputIt, typename W>
|
1952
|
+
FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, int num_digits,
|
1953
|
+
unsigned prefix,
|
1954
|
+
const format_specs& specs,
|
1955
|
+
W write_digits) -> OutputIt {
|
1956
|
+
// Slightly faster check for specs.width == 0 && specs.precision == -1.
|
1957
|
+
if ((specs.width | (specs.precision + 1)) == 0) {
|
1958
|
+
auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24));
|
1959
|
+
if (prefix != 0) {
|
1960
|
+
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
1961
|
+
*it++ = static_cast<Char>(p & 0xff);
|
1962
|
+
}
|
1963
|
+
return base_iterator(out, write_digits(it));
|
1964
|
+
}
|
1965
|
+
auto data = write_int_data<Char>(num_digits, prefix, specs);
|
1966
|
+
return write_padded<Char, align::right>(
|
1967
|
+
out, specs, data.size, [=](reserve_iterator<OutputIt> it) {
|
1968
|
+
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
1969
|
+
*it++ = static_cast<Char>(p & 0xff);
|
1970
|
+
it = detail::fill_n(it, data.padding, static_cast<Char>('0'));
|
1971
|
+
return write_digits(it);
|
1972
|
+
});
|
1973
|
+
}
|
1974
|
+
|
1975
|
+
template <typename Char> class digit_grouping {
|
1976
|
+
private:
|
1977
|
+
std::string grouping_;
|
1978
|
+
std::basic_string<Char> thousands_sep_;
|
1979
|
+
|
1980
|
+
struct next_state {
|
1981
|
+
std::string::const_iterator group;
|
1982
|
+
int pos;
|
1983
|
+
};
|
1984
|
+
auto initial_state() const -> next_state { return {grouping_.begin(), 0}; }
|
1985
|
+
|
1986
|
+
// Returns the next digit group separator position.
|
1987
|
+
auto next(next_state& state) const -> int {
|
1988
|
+
if (thousands_sep_.empty()) return max_value<int>();
|
1989
|
+
if (state.group == grouping_.end()) return state.pos += grouping_.back();
|
1990
|
+
if (*state.group <= 0 || *state.group == max_value<char>())
|
1991
|
+
return max_value<int>();
|
1992
|
+
state.pos += *state.group++;
|
1993
|
+
return state.pos;
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
public:
|
1997
|
+
explicit digit_grouping(locale_ref loc, bool localized = true) {
|
1998
|
+
if (!localized) return;
|
1999
|
+
auto sep = thousands_sep<Char>(loc);
|
2000
|
+
grouping_ = sep.grouping;
|
2001
|
+
if (sep.thousands_sep) thousands_sep_.assign(1, sep.thousands_sep);
|
2002
|
+
}
|
2003
|
+
digit_grouping(std::string grouping, std::basic_string<Char> sep)
|
2004
|
+
: grouping_(std::move(grouping)), thousands_sep_(std::move(sep)) {}
|
2005
|
+
|
2006
|
+
auto has_separator() const -> bool { return !thousands_sep_.empty(); }
|
2007
|
+
|
2008
|
+
auto count_separators(int num_digits) const -> int {
|
2009
|
+
int count = 0;
|
2010
|
+
auto state = initial_state();
|
2011
|
+
while (num_digits > next(state)) ++count;
|
2012
|
+
return count;
|
2013
|
+
}
|
2014
|
+
|
2015
|
+
// Applies grouping to digits and write the output to out.
|
2016
|
+
template <typename Out, typename C>
|
2017
|
+
auto apply(Out out, basic_string_view<C> digits) const -> Out {
|
2018
|
+
auto num_digits = static_cast<int>(digits.size());
|
2019
|
+
auto separators = basic_memory_buffer<int>();
|
2020
|
+
separators.push_back(0);
|
2021
|
+
auto state = initial_state();
|
2022
|
+
while (int i = next(state)) {
|
2023
|
+
if (i >= num_digits) break;
|
2024
|
+
separators.push_back(i);
|
2025
|
+
}
|
2026
|
+
for (int i = 0, sep_index = static_cast<int>(separators.size() - 1);
|
2027
|
+
i < num_digits; ++i) {
|
2028
|
+
if (num_digits - i == separators[sep_index]) {
|
2029
|
+
out = copy<Char>(thousands_sep_.data(),
|
2030
|
+
thousands_sep_.data() + thousands_sep_.size(), out);
|
2031
|
+
--sep_index;
|
2032
|
+
}
|
2033
|
+
*out++ = static_cast<Char>(digits[to_unsigned(i)]);
|
2034
|
+
}
|
2035
|
+
return out;
|
2036
|
+
}
|
2037
|
+
};
|
2038
|
+
|
2039
|
+
FMT_CONSTEXPR inline void prefix_append(unsigned& prefix, unsigned value) {
|
2040
|
+
prefix |= prefix != 0 ? value << 8 : value;
|
2041
|
+
prefix += (1u + (value > 0xff ? 1 : 0)) << 24;
|
2042
|
+
}
|
2043
|
+
|
2044
|
+
// Writes a decimal integer with digit grouping.
|
2045
|
+
template <typename OutputIt, typename UInt, typename Char>
|
2046
|
+
auto write_int(OutputIt out, UInt value, unsigned prefix,
|
2047
|
+
const format_specs& specs, const digit_grouping<Char>& grouping)
|
2048
|
+
-> OutputIt {
|
2049
|
+
static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
|
2050
|
+
int num_digits = 0;
|
2051
|
+
auto buffer = memory_buffer();
|
2052
|
+
switch (specs.type) {
|
2053
|
+
default:
|
2054
|
+
FMT_ASSERT(false, "");
|
2055
|
+
FMT_FALLTHROUGH;
|
2056
|
+
case presentation_type::none:
|
2057
|
+
case presentation_type::dec:
|
2058
|
+
num_digits = count_digits(value);
|
2059
|
+
format_decimal<char>(appender(buffer), value, num_digits);
|
2060
|
+
break;
|
2061
|
+
case presentation_type::hex:
|
2062
|
+
if (specs.alt)
|
2063
|
+
prefix_append(prefix, unsigned(specs.upper ? 'X' : 'x') << 8 | '0');
|
2064
|
+
num_digits = count_digits<4>(value);
|
2065
|
+
format_uint<4, char>(appender(buffer), value, num_digits, specs.upper);
|
2066
|
+
break;
|
2067
|
+
case presentation_type::oct:
|
2068
|
+
num_digits = count_digits<3>(value);
|
2069
|
+
// Octal prefix '0' is counted as a digit, so only add it if precision
|
2070
|
+
// is not greater than the number of digits.
|
2071
|
+
if (specs.alt && specs.precision <= num_digits && value != 0)
|
2072
|
+
prefix_append(prefix, '0');
|
2073
|
+
format_uint<3, char>(appender(buffer), value, num_digits);
|
2074
|
+
break;
|
2075
|
+
case presentation_type::bin:
|
2076
|
+
if (specs.alt)
|
2077
|
+
prefix_append(prefix, unsigned(specs.upper ? 'B' : 'b') << 8 | '0');
|
2078
|
+
num_digits = count_digits<1>(value);
|
2079
|
+
format_uint<1, char>(appender(buffer), value, num_digits);
|
2080
|
+
break;
|
2081
|
+
case presentation_type::chr:
|
2082
|
+
return write_char<Char>(out, static_cast<Char>(value), specs);
|
2083
|
+
}
|
2084
|
+
|
2085
|
+
unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) +
|
2086
|
+
to_unsigned(grouping.count_separators(num_digits));
|
2087
|
+
return write_padded<Char, align::right>(
|
2088
|
+
out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
|
2089
|
+
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
|
2090
|
+
*it++ = static_cast<Char>(p & 0xff);
|
2091
|
+
return grouping.apply(it, string_view(buffer.data(), buffer.size()));
|
2092
|
+
});
|
2093
|
+
}
|
2094
|
+
|
2095
|
+
// Writes a localized value.
|
2096
|
+
FMT_API auto write_loc(appender out, loc_value value, const format_specs& specs,
|
2097
|
+
locale_ref loc) -> bool;
|
2098
|
+
template <typename OutputIt>
|
2099
|
+
inline auto write_loc(OutputIt, loc_value, const format_specs&, locale_ref)
|
2100
|
+
-> bool {
|
2101
|
+
return false;
|
2102
|
+
}
|
2103
|
+
|
2104
|
+
template <typename UInt> struct write_int_arg {
|
2105
|
+
UInt abs_value;
|
2106
|
+
unsigned prefix;
|
2107
|
+
};
|
2108
|
+
|
2109
|
+
template <typename T>
|
2110
|
+
FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign)
|
2111
|
+
-> write_int_arg<uint32_or_64_or_128_t<T>> {
|
2112
|
+
auto prefix = 0u;
|
2113
|
+
auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
|
2114
|
+
if (is_negative(value)) {
|
2115
|
+
prefix = 0x01000000 | '-';
|
2116
|
+
abs_value = 0 - abs_value;
|
2117
|
+
} else {
|
2118
|
+
constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+',
|
2119
|
+
0x1000000u | ' '};
|
2120
|
+
prefix = prefixes[sign];
|
2121
|
+
}
|
2122
|
+
return {abs_value, prefix};
|
2123
|
+
}
|
2124
|
+
|
2125
|
+
template <typename Char = char> struct loc_writer {
|
2126
|
+
basic_appender<Char> out;
|
2127
|
+
const format_specs& specs;
|
2128
|
+
std::basic_string<Char> sep;
|
2129
|
+
std::string grouping;
|
2130
|
+
std::basic_string<Char> decimal_point;
|
2131
|
+
|
2132
|
+
template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
|
2133
|
+
auto operator()(T value) -> bool {
|
2134
|
+
auto arg = make_write_int_arg(value, specs.sign);
|
2135
|
+
write_int(out, static_cast<uint64_or_128_t<T>>(arg.abs_value), arg.prefix,
|
2136
|
+
specs, digit_grouping<Char>(grouping, sep));
|
2137
|
+
return true;
|
2138
|
+
}
|
2139
|
+
|
2140
|
+
template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
|
2141
|
+
auto operator()(T) -> bool {
|
2142
|
+
return false;
|
2143
|
+
}
|
2144
|
+
};
|
2145
|
+
|
2146
|
+
template <typename Char, typename OutputIt, typename T>
|
2147
|
+
FMT_CONSTEXPR FMT_INLINE auto write_int(OutputIt out, write_int_arg<T> arg,
|
2148
|
+
const format_specs& specs, locale_ref)
|
2149
|
+
-> OutputIt {
|
2150
|
+
static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, "");
|
2151
|
+
auto abs_value = arg.abs_value;
|
2152
|
+
auto prefix = arg.prefix;
|
2153
|
+
switch (specs.type) {
|
2154
|
+
default:
|
2155
|
+
FMT_ASSERT(false, "");
|
2156
|
+
FMT_FALLTHROUGH;
|
2157
|
+
case presentation_type::none:
|
2158
|
+
case presentation_type::dec: {
|
2159
|
+
int num_digits = count_digits(abs_value);
|
2160
|
+
return write_int<Char>(
|
2161
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
2162
|
+
return format_decimal<Char>(it, abs_value, num_digits).end;
|
2163
|
+
});
|
2164
|
+
}
|
2165
|
+
case presentation_type::hex: {
|
2166
|
+
if (specs.alt)
|
2167
|
+
prefix_append(prefix, unsigned(specs.upper ? 'X' : 'x') << 8 | '0');
|
2168
|
+
int num_digits = count_digits<4>(abs_value);
|
2169
|
+
return write_int<Char>(
|
2170
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
2171
|
+
return format_uint<4, Char>(it, abs_value, num_digits, specs.upper);
|
2172
|
+
});
|
2173
|
+
}
|
2174
|
+
case presentation_type::oct: {
|
2175
|
+
int num_digits = count_digits<3>(abs_value);
|
2176
|
+
// Octal prefix '0' is counted as a digit, so only add it if precision
|
2177
|
+
// is not greater than the number of digits.
|
2178
|
+
if (specs.alt && specs.precision <= num_digits && abs_value != 0)
|
2179
|
+
prefix_append(prefix, '0');
|
2180
|
+
return write_int<Char>(
|
2181
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
2182
|
+
return format_uint<3, Char>(it, abs_value, num_digits);
|
2183
|
+
});
|
2184
|
+
}
|
2185
|
+
case presentation_type::bin: {
|
2186
|
+
if (specs.alt)
|
2187
|
+
prefix_append(prefix, unsigned(specs.upper ? 'B' : 'b') << 8 | '0');
|
2188
|
+
int num_digits = count_digits<1>(abs_value);
|
2189
|
+
return write_int<Char>(
|
2190
|
+
out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) {
|
2191
|
+
return format_uint<1, Char>(it, abs_value, num_digits);
|
2192
|
+
});
|
2193
|
+
}
|
2194
|
+
case presentation_type::chr:
|
2195
|
+
return write_char<Char>(out, static_cast<Char>(abs_value), specs);
|
2196
|
+
}
|
2197
|
+
}
|
2198
|
+
template <typename Char, typename OutputIt, typename T>
|
2199
|
+
FMT_CONSTEXPR FMT_NOINLINE auto write_int_noinline(OutputIt out,
|
2200
|
+
write_int_arg<T> arg,
|
2201
|
+
const format_specs& specs,
|
2202
|
+
locale_ref loc) -> OutputIt {
|
2203
|
+
return write_int<Char>(out, arg, specs, loc);
|
2204
|
+
}
|
2205
|
+
template <typename Char, typename T,
|
2206
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
2207
|
+
!std::is_same<T, bool>::value &&
|
2208
|
+
!std::is_same<T, Char>::value)>
|
2209
|
+
FMT_CONSTEXPR FMT_INLINE auto write(basic_appender<Char> out, T value,
|
2210
|
+
const format_specs& specs, locale_ref loc)
|
2211
|
+
-> basic_appender<Char> {
|
2212
|
+
if (specs.localized && write_loc(out, value, specs, loc)) return out;
|
2213
|
+
return write_int_noinline<Char>(out, make_write_int_arg(value, specs.sign),
|
2214
|
+
specs, loc);
|
2215
|
+
}
|
2216
|
+
// An inlined version of write used in format string compilation.
|
2217
|
+
template <typename Char, typename OutputIt, typename T,
|
2218
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
2219
|
+
!std::is_same<T, bool>::value &&
|
2220
|
+
!std::is_same<T, Char>::value &&
|
2221
|
+
!std::is_same<OutputIt, basic_appender<Char>>::value)>
|
2222
|
+
FMT_CONSTEXPR FMT_INLINE auto write(OutputIt out, T value,
|
2223
|
+
const format_specs& specs, locale_ref loc)
|
2224
|
+
-> OutputIt {
|
2225
|
+
if (specs.localized && write_loc(out, value, specs, loc)) return out;
|
2226
|
+
return write_int<Char>(out, make_write_int_arg(value, specs.sign), specs,
|
2227
|
+
loc);
|
2228
|
+
}
|
2229
|
+
|
2230
|
+
// An output iterator that counts the number of objects written to it and
|
2231
|
+
// discards them.
|
2232
|
+
class counting_iterator {
|
2233
|
+
private:
|
2234
|
+
size_t count_;
|
2235
|
+
|
2236
|
+
public:
|
2237
|
+
using iterator_category = std::output_iterator_tag;
|
2238
|
+
using difference_type = std::ptrdiff_t;
|
2239
|
+
using pointer = void;
|
2240
|
+
using reference = void;
|
2241
|
+
FMT_UNCHECKED_ITERATOR(counting_iterator);
|
2242
|
+
|
2243
|
+
struct value_type {
|
2244
|
+
template <typename T> FMT_CONSTEXPR void operator=(const T&) {}
|
2245
|
+
};
|
2246
|
+
|
2247
|
+
FMT_CONSTEXPR counting_iterator() : count_(0) {}
|
2248
|
+
|
2249
|
+
FMT_CONSTEXPR auto count() const -> size_t { return count_; }
|
2250
|
+
|
2251
|
+
FMT_CONSTEXPR auto operator++() -> counting_iterator& {
|
2252
|
+
++count_;
|
2253
|
+
return *this;
|
2254
|
+
}
|
2255
|
+
FMT_CONSTEXPR auto operator++(int) -> counting_iterator {
|
2256
|
+
auto it = *this;
|
2257
|
+
++*this;
|
2258
|
+
return it;
|
2259
|
+
}
|
2260
|
+
|
2261
|
+
FMT_CONSTEXPR friend auto operator+(counting_iterator it, difference_type n)
|
2262
|
+
-> counting_iterator {
|
2263
|
+
it.count_ += static_cast<size_t>(n);
|
2264
|
+
return it;
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
FMT_CONSTEXPR auto operator*() const -> value_type { return {}; }
|
2268
|
+
};
|
2269
|
+
|
2270
|
+
template <typename Char, typename OutputIt>
|
2271
|
+
FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
|
2272
|
+
const format_specs& specs) -> OutputIt {
|
2273
|
+
auto data = s.data();
|
2274
|
+
auto size = s.size();
|
2275
|
+
if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
|
2276
|
+
size = code_point_index(s, to_unsigned(specs.precision));
|
2277
|
+
bool is_debug = specs.type == presentation_type::debug;
|
2278
|
+
size_t width = 0;
|
2279
|
+
|
2280
|
+
if (is_debug) size = write_escaped_string(counting_iterator{}, s).count();
|
2281
|
+
|
2282
|
+
if (specs.width != 0) {
|
2283
|
+
if (is_debug)
|
2284
|
+
width = size;
|
2285
|
+
else
|
2286
|
+
width = compute_width(basic_string_view<Char>(data, size));
|
2287
|
+
}
|
2288
|
+
return write_padded<Char>(out, specs, size, width,
|
2289
|
+
[=](reserve_iterator<OutputIt> it) {
|
2290
|
+
if (is_debug) return write_escaped_string(it, s);
|
2291
|
+
return copy<Char>(data, data + size, it);
|
2292
|
+
});
|
2293
|
+
}
|
2294
|
+
template <typename Char, typename OutputIt>
|
2295
|
+
FMT_CONSTEXPR auto write(OutputIt out,
|
2296
|
+
basic_string_view<type_identity_t<Char>> s,
|
2297
|
+
const format_specs& specs, locale_ref) -> OutputIt {
|
2298
|
+
return write<Char>(out, s, specs);
|
2299
|
+
}
|
2300
|
+
template <typename Char, typename OutputIt>
|
2301
|
+
FMT_CONSTEXPR auto write(OutputIt out, const Char* s, const format_specs& specs,
|
2302
|
+
locale_ref) -> OutputIt {
|
2303
|
+
if (specs.type == presentation_type::pointer)
|
2304
|
+
return write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs);
|
2305
|
+
if (!s) report_error("string pointer is null");
|
2306
|
+
return write<Char>(out, basic_string_view<Char>(s), specs, {});
|
2307
|
+
}
|
2308
|
+
|
2309
|
+
template <typename Char, typename OutputIt, typename T,
|
2310
|
+
FMT_ENABLE_IF(is_integral<T>::value &&
|
2311
|
+
!std::is_same<T, bool>::value &&
|
2312
|
+
!std::is_same<T, Char>::value)>
|
2313
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
|
2314
|
+
auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
|
2315
|
+
bool negative = is_negative(value);
|
2316
|
+
// Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
|
2317
|
+
if (negative) abs_value = ~abs_value + 1;
|
2318
|
+
int num_digits = count_digits(abs_value);
|
2319
|
+
auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
|
2320
|
+
auto it = reserve(out, size);
|
2321
|
+
if (auto ptr = to_pointer<Char>(it, size)) {
|
2322
|
+
if (negative) *ptr++ = static_cast<Char>('-');
|
2323
|
+
format_decimal<Char>(ptr, abs_value, num_digits);
|
2324
|
+
return out;
|
2325
|
+
}
|
2326
|
+
if (negative) *it++ = static_cast<Char>('-');
|
2327
|
+
it = format_decimal<Char>(it, abs_value, num_digits).end;
|
2328
|
+
return base_iterator(out, it);
|
2329
|
+
}
|
2330
|
+
|
2331
|
+
// DEPRECATED!
|
2332
|
+
template <typename Char>
|
2333
|
+
FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
|
2334
|
+
format_specs& specs) -> const Char* {
|
2335
|
+
FMT_ASSERT(begin != end, "");
|
2336
|
+
auto align = align::none;
|
2337
|
+
auto p = begin + code_point_length(begin);
|
2338
|
+
if (end - p <= 0) p = begin;
|
2339
|
+
for (;;) {
|
2340
|
+
switch (to_ascii(*p)) {
|
2341
|
+
case '<':
|
2342
|
+
align = align::left;
|
2343
|
+
break;
|
2344
|
+
case '>':
|
2345
|
+
align = align::right;
|
2346
|
+
break;
|
2347
|
+
case '^':
|
2348
|
+
align = align::center;
|
2349
|
+
break;
|
2350
|
+
}
|
2351
|
+
if (align != align::none) {
|
2352
|
+
if (p != begin) {
|
2353
|
+
auto c = *begin;
|
2354
|
+
if (c == '}') return begin;
|
2355
|
+
if (c == '{') {
|
2356
|
+
report_error("invalid fill character '{'");
|
2357
|
+
return begin;
|
2358
|
+
}
|
2359
|
+
specs.fill = basic_string_view<Char>(begin, to_unsigned(p - begin));
|
2360
|
+
begin = p + 1;
|
2361
|
+
} else {
|
2362
|
+
++begin;
|
2363
|
+
}
|
2364
|
+
break;
|
2365
|
+
} else if (p == begin) {
|
2366
|
+
break;
|
2367
|
+
}
|
2368
|
+
p = begin;
|
2369
|
+
}
|
2370
|
+
specs.align = align;
|
2371
|
+
return begin;
|
2372
|
+
}
|
2373
|
+
|
2374
|
+
// A floating-point presentation format.
|
2375
|
+
enum class float_format : unsigned char {
|
2376
|
+
general, // General: exponent notation or fixed point based on magnitude.
|
2377
|
+
exp, // Exponent notation with the default precision of 6, e.g. 1.2e-3.
|
2378
|
+
fixed // Fixed point with the default precision of 6, e.g. 0.0012.
|
2379
|
+
};
|
2380
|
+
|
2381
|
+
struct float_specs {
|
2382
|
+
int precision;
|
2383
|
+
float_format format : 8;
|
2384
|
+
sign_t sign : 8;
|
2385
|
+
bool locale : 1;
|
2386
|
+
bool binary32 : 1;
|
2387
|
+
bool showpoint : 1;
|
2388
|
+
};
|
2389
|
+
|
2390
|
+
// DEPRECATED!
|
2391
|
+
FMT_CONSTEXPR inline auto parse_float_type_spec(const format_specs& specs)
|
2392
|
+
-> float_specs {
|
2393
|
+
auto result = float_specs();
|
2394
|
+
result.showpoint = specs.alt;
|
2395
|
+
result.locale = specs.localized;
|
2396
|
+
switch (specs.type) {
|
2397
|
+
default:
|
2398
|
+
FMT_FALLTHROUGH;
|
2399
|
+
case presentation_type::none:
|
2400
|
+
result.format = float_format::general;
|
2401
|
+
break;
|
2402
|
+
case presentation_type::exp:
|
2403
|
+
result.format = float_format::exp;
|
2404
|
+
result.showpoint |= specs.precision != 0;
|
2405
|
+
break;
|
2406
|
+
case presentation_type::fixed:
|
2407
|
+
result.format = float_format::fixed;
|
2408
|
+
result.showpoint |= specs.precision != 0;
|
2409
|
+
break;
|
2410
|
+
case presentation_type::general:
|
2411
|
+
result.format = float_format::general;
|
2412
|
+
break;
|
2413
|
+
}
|
2414
|
+
return result;
|
2415
|
+
}
|
2416
|
+
|
2417
|
+
template <typename Char, typename OutputIt>
|
2418
|
+
FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan,
|
2419
|
+
format_specs specs, sign_t sign)
|
2420
|
+
-> OutputIt {
|
2421
|
+
auto str =
|
2422
|
+
isnan ? (specs.upper ? "NAN" : "nan") : (specs.upper ? "INF" : "inf");
|
2423
|
+
constexpr size_t str_size = 3;
|
2424
|
+
auto size = str_size + (sign ? 1 : 0);
|
2425
|
+
// Replace '0'-padding with space for non-finite values.
|
2426
|
+
const bool is_zero_fill =
|
2427
|
+
specs.fill.size() == 1 && specs.fill.template get<Char>() == '0';
|
2428
|
+
if (is_zero_fill) specs.fill = ' ';
|
2429
|
+
return write_padded<Char>(out, specs, size,
|
2430
|
+
[=](reserve_iterator<OutputIt> it) {
|
2431
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
2432
|
+
return copy<Char>(str, str + str_size, it);
|
2433
|
+
});
|
2434
|
+
}
|
2435
|
+
|
2436
|
+
// A decimal floating-point number significand * pow(10, exp).
|
2437
|
+
struct big_decimal_fp {
|
2438
|
+
const char* significand;
|
2439
|
+
int significand_size;
|
2440
|
+
int exponent;
|
2441
|
+
};
|
2442
|
+
|
2443
|
+
constexpr auto get_significand_size(const big_decimal_fp& f) -> int {
|
2444
|
+
return f.significand_size;
|
2445
|
+
}
|
2446
|
+
template <typename T>
|
2447
|
+
inline auto get_significand_size(const dragonbox::decimal_fp<T>& f) -> int {
|
2448
|
+
return count_digits(f.significand);
|
2449
|
+
}
|
2450
|
+
|
2451
|
+
template <typename Char, typename OutputIt>
|
2452
|
+
constexpr auto write_significand(OutputIt out, const char* significand,
|
2453
|
+
int significand_size) -> OutputIt {
|
2454
|
+
return copy<Char>(significand, significand + significand_size, out);
|
2455
|
+
}
|
2456
|
+
template <typename Char, typename OutputIt, typename UInt>
|
2457
|
+
inline auto write_significand(OutputIt out, UInt significand,
|
2458
|
+
int significand_size) -> OutputIt {
|
2459
|
+
return format_decimal<Char>(out, significand, significand_size).end;
|
2460
|
+
}
|
2461
|
+
template <typename Char, typename OutputIt, typename T, typename Grouping>
|
2462
|
+
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
|
2463
|
+
int significand_size, int exponent,
|
2464
|
+
const Grouping& grouping) -> OutputIt {
|
2465
|
+
if (!grouping.has_separator()) {
|
2466
|
+
out = write_significand<Char>(out, significand, significand_size);
|
2467
|
+
return detail::fill_n(out, exponent, static_cast<Char>('0'));
|
2468
|
+
}
|
2469
|
+
auto buffer = memory_buffer();
|
2470
|
+
write_significand<char>(appender(buffer), significand, significand_size);
|
2471
|
+
detail::fill_n(appender(buffer), exponent, '0');
|
2472
|
+
return grouping.apply(out, string_view(buffer.data(), buffer.size()));
|
2473
|
+
}
|
2474
|
+
|
2475
|
+
template <typename Char, typename UInt,
|
2476
|
+
FMT_ENABLE_IF(std::is_integral<UInt>::value)>
|
2477
|
+
inline auto write_significand(Char* out, UInt significand, int significand_size,
|
2478
|
+
int integral_size, Char decimal_point) -> Char* {
|
2479
|
+
if (!decimal_point)
|
2480
|
+
return format_decimal(out, significand, significand_size).end;
|
2481
|
+
out += significand_size + 1;
|
2482
|
+
Char* end = out;
|
2483
|
+
int floating_size = significand_size - integral_size;
|
2484
|
+
for (int i = floating_size / 2; i > 0; --i) {
|
2485
|
+
out -= 2;
|
2486
|
+
copy2(out, digits2(static_cast<std::size_t>(significand % 100)));
|
2487
|
+
significand /= 100;
|
2488
|
+
}
|
2489
|
+
if (floating_size % 2 != 0) {
|
2490
|
+
*--out = static_cast<Char>('0' + significand % 10);
|
2491
|
+
significand /= 10;
|
2492
|
+
}
|
2493
|
+
*--out = decimal_point;
|
2494
|
+
format_decimal(out - integral_size, significand, integral_size);
|
2495
|
+
return end;
|
2496
|
+
}
|
2497
|
+
|
2498
|
+
template <typename OutputIt, typename UInt, typename Char,
|
2499
|
+
FMT_ENABLE_IF(!std::is_pointer<remove_cvref_t<OutputIt>>::value)>
|
2500
|
+
inline auto write_significand(OutputIt out, UInt significand,
|
2501
|
+
int significand_size, int integral_size,
|
2502
|
+
Char decimal_point) -> OutputIt {
|
2503
|
+
// Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
|
2504
|
+
Char buffer[digits10<UInt>() + 2];
|
2505
|
+
auto end = write_significand(buffer, significand, significand_size,
|
2506
|
+
integral_size, decimal_point);
|
2507
|
+
return detail::copy_noinline<Char>(buffer, end, out);
|
2508
|
+
}
|
2509
|
+
|
2510
|
+
template <typename OutputIt, typename Char>
|
2511
|
+
FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
|
2512
|
+
int significand_size, int integral_size,
|
2513
|
+
Char decimal_point) -> OutputIt {
|
2514
|
+
out = detail::copy_noinline<Char>(significand, significand + integral_size,
|
2515
|
+
out);
|
2516
|
+
if (!decimal_point) return out;
|
2517
|
+
*out++ = decimal_point;
|
2518
|
+
return detail::copy_noinline<Char>(significand + integral_size,
|
2519
|
+
significand + significand_size, out);
|
2520
|
+
}
|
2521
|
+
|
2522
|
+
template <typename OutputIt, typename Char, typename T, typename Grouping>
|
2523
|
+
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
|
2524
|
+
int significand_size, int integral_size,
|
2525
|
+
Char decimal_point,
|
2526
|
+
const Grouping& grouping) -> OutputIt {
|
2527
|
+
if (!grouping.has_separator()) {
|
2528
|
+
return write_significand(out, significand, significand_size, integral_size,
|
2529
|
+
decimal_point);
|
2530
|
+
}
|
2531
|
+
auto buffer = basic_memory_buffer<Char>();
|
2532
|
+
write_significand(basic_appender<Char>(buffer), significand, significand_size,
|
2533
|
+
integral_size, decimal_point);
|
2534
|
+
grouping.apply(
|
2535
|
+
out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size)));
|
2536
|
+
return detail::copy_noinline<Char>(buffer.data() + integral_size,
|
2537
|
+
buffer.end(), out);
|
2538
|
+
}
|
2539
|
+
|
2540
|
+
template <typename Char, typename OutputIt, typename DecimalFP,
|
2541
|
+
typename Grouping = digit_grouping<Char>>
|
2542
|
+
FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& f,
|
2543
|
+
const format_specs& specs,
|
2544
|
+
float_specs fspecs, locale_ref loc)
|
2545
|
+
-> OutputIt {
|
2546
|
+
auto significand = f.significand;
|
2547
|
+
int significand_size = get_significand_size(f);
|
2548
|
+
const Char zero = static_cast<Char>('0');
|
2549
|
+
auto sign = fspecs.sign;
|
2550
|
+
size_t size = to_unsigned(significand_size) + (sign ? 1 : 0);
|
2551
|
+
using iterator = reserve_iterator<OutputIt>;
|
2552
|
+
|
2553
|
+
Char decimal_point =
|
2554
|
+
fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.');
|
2555
|
+
|
2556
|
+
int output_exp = f.exponent + significand_size - 1;
|
2557
|
+
auto use_exp_format = [=]() {
|
2558
|
+
if (fspecs.format == float_format::exp) return true;
|
2559
|
+
if (fspecs.format != float_format::general) return false;
|
2560
|
+
// Use the fixed notation if the exponent is in [exp_lower, exp_upper),
|
2561
|
+
// e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.
|
2562
|
+
const int exp_lower = -4, exp_upper = 16;
|
2563
|
+
return output_exp < exp_lower ||
|
2564
|
+
output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper);
|
2565
|
+
};
|
2566
|
+
if (use_exp_format()) {
|
2567
|
+
int num_zeros = 0;
|
2568
|
+
if (fspecs.showpoint) {
|
2569
|
+
num_zeros = fspecs.precision - significand_size;
|
2570
|
+
if (num_zeros < 0) num_zeros = 0;
|
2571
|
+
size += to_unsigned(num_zeros);
|
2572
|
+
} else if (significand_size == 1) {
|
2573
|
+
decimal_point = Char();
|
2574
|
+
}
|
2575
|
+
auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp;
|
2576
|
+
int exp_digits = 2;
|
2577
|
+
if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3;
|
2578
|
+
|
2579
|
+
size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits);
|
2580
|
+
char exp_char = specs.upper ? 'E' : 'e';
|
2581
|
+
auto write = [=](iterator it) {
|
2582
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
2583
|
+
// Insert a decimal point after the first digit and add an exponent.
|
2584
|
+
it = write_significand(it, significand, significand_size, 1,
|
2585
|
+
decimal_point);
|
2586
|
+
if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero);
|
2587
|
+
*it++ = static_cast<Char>(exp_char);
|
2588
|
+
return write_exponent<Char>(output_exp, it);
|
2589
|
+
};
|
2590
|
+
return specs.width > 0
|
2591
|
+
? write_padded<Char, align::right>(out, specs, size, write)
|
2592
|
+
: base_iterator(out, write(reserve(out, size)));
|
2593
|
+
}
|
2594
|
+
|
2595
|
+
int exp = f.exponent + significand_size;
|
2596
|
+
if (f.exponent >= 0) {
|
2597
|
+
// 1234e5 -> 123400000[.0+]
|
2598
|
+
size += to_unsigned(f.exponent);
|
2599
|
+
int num_zeros = fspecs.precision - exp;
|
2600
|
+
abort_fuzzing_if(num_zeros > 5000);
|
2601
|
+
if (fspecs.showpoint) {
|
2602
|
+
++size;
|
2603
|
+
if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 0;
|
2604
|
+
if (num_zeros > 0) size += to_unsigned(num_zeros);
|
2605
|
+
}
|
2606
|
+
auto grouping = Grouping(loc, fspecs.locale);
|
2607
|
+
size += to_unsigned(grouping.count_separators(exp));
|
2608
|
+
return write_padded<Char, align::right>(out, specs, size, [&](iterator it) {
|
2609
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
2610
|
+
it = write_significand<Char>(it, significand, significand_size,
|
2611
|
+
f.exponent, grouping);
|
2612
|
+
if (!fspecs.showpoint) return it;
|
2613
|
+
*it++ = decimal_point;
|
2614
|
+
return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
|
2615
|
+
});
|
2616
|
+
} else if (exp > 0) {
|
2617
|
+
// 1234e-2 -> 12.34[0+]
|
2618
|
+
int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
|
2619
|
+
size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0);
|
2620
|
+
auto grouping = Grouping(loc, fspecs.locale);
|
2621
|
+
size += to_unsigned(grouping.count_separators(exp));
|
2622
|
+
return write_padded<Char, align::right>(out, specs, size, [&](iterator it) {
|
2623
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
2624
|
+
it = write_significand(it, significand, significand_size, exp,
|
2625
|
+
decimal_point, grouping);
|
2626
|
+
return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it;
|
2627
|
+
});
|
2628
|
+
}
|
2629
|
+
// 1234e-6 -> 0.001234
|
2630
|
+
int num_zeros = -exp;
|
2631
|
+
if (significand_size == 0 && fspecs.precision >= 0 &&
|
2632
|
+
fspecs.precision < num_zeros) {
|
2633
|
+
num_zeros = fspecs.precision;
|
2634
|
+
}
|
2635
|
+
bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint;
|
2636
|
+
size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros);
|
2637
|
+
return write_padded<Char, align::right>(out, specs, size, [&](iterator it) {
|
2638
|
+
if (sign) *it++ = detail::sign<Char>(sign);
|
2639
|
+
*it++ = zero;
|
2640
|
+
if (!pointy) return it;
|
2641
|
+
*it++ = decimal_point;
|
2642
|
+
it = detail::fill_n(it, num_zeros, zero);
|
2643
|
+
return write_significand<Char>(it, significand, significand_size);
|
2644
|
+
});
|
2645
|
+
}
|
2646
|
+
|
2647
|
+
template <typename Char> class fallback_digit_grouping {
|
2648
|
+
public:
|
2649
|
+
constexpr fallback_digit_grouping(locale_ref, bool) {}
|
2650
|
+
|
2651
|
+
constexpr auto has_separator() const -> bool { return false; }
|
2652
|
+
|
2653
|
+
constexpr auto count_separators(int) const -> int { return 0; }
|
2654
|
+
|
2655
|
+
template <typename Out, typename C>
|
2656
|
+
constexpr auto apply(Out out, basic_string_view<C>) const -> Out {
|
2657
|
+
return out;
|
2658
|
+
}
|
2659
|
+
};
|
2660
|
+
|
2661
|
+
template <typename Char, typename OutputIt, typename DecimalFP>
|
2662
|
+
FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& f,
|
2663
|
+
const format_specs& specs, float_specs fspecs,
|
2664
|
+
locale_ref loc) -> OutputIt {
|
2665
|
+
if (is_constant_evaluated()) {
|
2666
|
+
return do_write_float<Char, OutputIt, DecimalFP,
|
2667
|
+
fallback_digit_grouping<Char>>(out, f, specs, fspecs,
|
2668
|
+
loc);
|
2669
|
+
} else {
|
2670
|
+
return do_write_float<Char>(out, f, specs, fspecs, loc);
|
2671
|
+
}
|
2672
|
+
}
|
2673
|
+
|
2674
|
+
template <typename T> constexpr auto isnan(T value) -> bool {
|
2675
|
+
return value != value; // std::isnan doesn't support __float128.
|
2676
|
+
}
|
2677
|
+
|
2678
|
+
template <typename T, typename Enable = void>
|
2679
|
+
struct has_isfinite : std::false_type {};
|
2680
|
+
|
2681
|
+
template <typename T>
|
2682
|
+
struct has_isfinite<T, enable_if_t<sizeof(std::isfinite(T())) != 0>>
|
2683
|
+
: std::true_type {};
|
2684
|
+
|
2685
|
+
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value&&
|
2686
|
+
has_isfinite<T>::value)>
|
2687
|
+
FMT_CONSTEXPR20 auto isfinite(T value) -> bool {
|
2688
|
+
constexpr T inf = T(std::numeric_limits<double>::infinity());
|
2689
|
+
if (is_constant_evaluated())
|
2690
|
+
return !detail::isnan(value) && value < inf && value > -inf;
|
2691
|
+
return std::isfinite(value);
|
2692
|
+
}
|
2693
|
+
template <typename T, FMT_ENABLE_IF(!has_isfinite<T>::value)>
|
2694
|
+
FMT_CONSTEXPR auto isfinite(T value) -> bool {
|
2695
|
+
T inf = T(std::numeric_limits<double>::infinity());
|
2696
|
+
// std::isfinite doesn't support __float128.
|
2697
|
+
return !detail::isnan(value) && value < inf && value > -inf;
|
2698
|
+
}
|
2699
|
+
|
2700
|
+
template <typename T, FMT_ENABLE_IF(is_floating_point<T>::value)>
|
2701
|
+
FMT_INLINE FMT_CONSTEXPR bool signbit(T value) {
|
2702
|
+
if (is_constant_evaluated()) {
|
2703
|
+
#ifdef __cpp_if_constexpr
|
2704
|
+
if constexpr (std::numeric_limits<double>::is_iec559) {
|
2705
|
+
auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value));
|
2706
|
+
return (bits >> (num_bits<uint64_t>() - 1)) != 0;
|
2707
|
+
}
|
2708
|
+
#endif
|
2709
|
+
}
|
2710
|
+
return std::signbit(static_cast<double>(value));
|
2711
|
+
}
|
2712
|
+
|
2713
|
+
inline FMT_CONSTEXPR20 void adjust_precision(int& precision, int exp10) {
|
2714
|
+
// Adjust fixed precision by exponent because it is relative to decimal
|
2715
|
+
// point.
|
2716
|
+
if (exp10 > 0 && precision > max_value<int>() - exp10)
|
2717
|
+
FMT_THROW(format_error("number is too big"));
|
2718
|
+
precision += exp10;
|
2719
|
+
}
|
2720
|
+
|
2721
|
+
class bigint {
|
2722
|
+
private:
|
2723
|
+
// A bigint is stored as an array of bigits (big digits), with bigit at index
|
2724
|
+
// 0 being the least significant one.
|
2725
|
+
using bigit = uint32_t;
|
2726
|
+
using double_bigit = uint64_t;
|
2727
|
+
enum { bigits_capacity = 32 };
|
2728
|
+
basic_memory_buffer<bigit, bigits_capacity> bigits_;
|
2729
|
+
int exp_;
|
2730
|
+
|
2731
|
+
FMT_CONSTEXPR20 auto operator[](int index) const -> bigit {
|
2732
|
+
return bigits_[to_unsigned(index)];
|
2733
|
+
}
|
2734
|
+
FMT_CONSTEXPR20 auto operator[](int index) -> bigit& {
|
2735
|
+
return bigits_[to_unsigned(index)];
|
2736
|
+
}
|
2737
|
+
|
2738
|
+
static constexpr const int bigit_bits = num_bits<bigit>();
|
2739
|
+
|
2740
|
+
friend struct formatter<bigint>;
|
2741
|
+
|
2742
|
+
FMT_CONSTEXPR20 void subtract_bigits(int index, bigit other, bigit& borrow) {
|
2743
|
+
auto result = static_cast<double_bigit>((*this)[index]) - other - borrow;
|
2744
|
+
(*this)[index] = static_cast<bigit>(result);
|
2745
|
+
borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1));
|
2746
|
+
}
|
2747
|
+
|
2748
|
+
FMT_CONSTEXPR20 void remove_leading_zeros() {
|
2749
|
+
int num_bigits = static_cast<int>(bigits_.size()) - 1;
|
2750
|
+
while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
|
2751
|
+
bigits_.resize(to_unsigned(num_bigits + 1));
|
2752
|
+
}
|
2753
|
+
|
2754
|
+
// Computes *this -= other assuming aligned bigints and *this >= other.
|
2755
|
+
FMT_CONSTEXPR20 void subtract_aligned(const bigint& other) {
|
2756
|
+
FMT_ASSERT(other.exp_ >= exp_, "unaligned bigints");
|
2757
|
+
FMT_ASSERT(compare(*this, other) >= 0, "");
|
2758
|
+
bigit borrow = 0;
|
2759
|
+
int i = other.exp_ - exp_;
|
2760
|
+
for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j)
|
2761
|
+
subtract_bigits(i, other.bigits_[j], borrow);
|
2762
|
+
while (borrow > 0) subtract_bigits(i, 0, borrow);
|
2763
|
+
remove_leading_zeros();
|
2764
|
+
}
|
2765
|
+
|
2766
|
+
FMT_CONSTEXPR20 void multiply(uint32_t value) {
|
2767
|
+
const double_bigit wide_value = value;
|
2768
|
+
bigit carry = 0;
|
2769
|
+
for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
|
2770
|
+
double_bigit result = bigits_[i] * wide_value + carry;
|
2771
|
+
bigits_[i] = static_cast<bigit>(result);
|
2772
|
+
carry = static_cast<bigit>(result >> bigit_bits);
|
2773
|
+
}
|
2774
|
+
if (carry != 0) bigits_.push_back(carry);
|
2775
|
+
}
|
2776
|
+
|
2777
|
+
template <typename UInt, FMT_ENABLE_IF(std::is_same<UInt, uint64_t>::value ||
|
2778
|
+
std::is_same<UInt, uint128_t>::value)>
|
2779
|
+
FMT_CONSTEXPR20 void multiply(UInt value) {
|
2780
|
+
using half_uint =
|
2781
|
+
conditional_t<std::is_same<UInt, uint128_t>::value, uint64_t, uint32_t>;
|
2782
|
+
const int shift = num_bits<half_uint>() - bigit_bits;
|
2783
|
+
const UInt lower = static_cast<half_uint>(value);
|
2784
|
+
const UInt upper = value >> num_bits<half_uint>();
|
2785
|
+
UInt carry = 0;
|
2786
|
+
for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
|
2787
|
+
UInt result = lower * bigits_[i] + static_cast<bigit>(carry);
|
2788
|
+
carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) +
|
2789
|
+
(carry >> bigit_bits);
|
2790
|
+
bigits_[i] = static_cast<bigit>(result);
|
2791
|
+
}
|
2792
|
+
while (carry != 0) {
|
2793
|
+
bigits_.push_back(static_cast<bigit>(carry));
|
2794
|
+
carry >>= bigit_bits;
|
2795
|
+
}
|
2796
|
+
}
|
2797
|
+
|
2798
|
+
template <typename UInt, FMT_ENABLE_IF(std::is_same<UInt, uint64_t>::value ||
|
2799
|
+
std::is_same<UInt, uint128_t>::value)>
|
2800
|
+
FMT_CONSTEXPR20 void assign(UInt n) {
|
2801
|
+
size_t num_bigits = 0;
|
2802
|
+
do {
|
2803
|
+
bigits_[num_bigits++] = static_cast<bigit>(n);
|
2804
|
+
n >>= bigit_bits;
|
2805
|
+
} while (n != 0);
|
2806
|
+
bigits_.resize(num_bigits);
|
2807
|
+
exp_ = 0;
|
2808
|
+
}
|
2809
|
+
|
2810
|
+
public:
|
2811
|
+
FMT_CONSTEXPR20 bigint() : exp_(0) {}
|
2812
|
+
explicit bigint(uint64_t n) { assign(n); }
|
2813
|
+
|
2814
|
+
bigint(const bigint&) = delete;
|
2815
|
+
void operator=(const bigint&) = delete;
|
2816
|
+
|
2817
|
+
FMT_CONSTEXPR20 void assign(const bigint& other) {
|
2818
|
+
auto size = other.bigits_.size();
|
2819
|
+
bigits_.resize(size);
|
2820
|
+
auto data = other.bigits_.data();
|
2821
|
+
copy<bigit>(data, data + size, bigits_.data());
|
2822
|
+
exp_ = other.exp_;
|
2823
|
+
}
|
2824
|
+
|
2825
|
+
template <typename Int> FMT_CONSTEXPR20 void operator=(Int n) {
|
2826
|
+
FMT_ASSERT(n > 0, "");
|
2827
|
+
assign(uint64_or_128_t<Int>(n));
|
2828
|
+
}
|
2829
|
+
|
2830
|
+
FMT_CONSTEXPR20 auto num_bigits() const -> int {
|
2831
|
+
return static_cast<int>(bigits_.size()) + exp_;
|
2832
|
+
}
|
2833
|
+
|
2834
|
+
FMT_NOINLINE FMT_CONSTEXPR20 auto operator<<=(int shift) -> bigint& {
|
2835
|
+
FMT_ASSERT(shift >= 0, "");
|
2836
|
+
exp_ += shift / bigit_bits;
|
2837
|
+
shift %= bigit_bits;
|
2838
|
+
if (shift == 0) return *this;
|
2839
|
+
bigit carry = 0;
|
2840
|
+
for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
|
2841
|
+
bigit c = bigits_[i] >> (bigit_bits - shift);
|
2842
|
+
bigits_[i] = (bigits_[i] << shift) + carry;
|
2843
|
+
carry = c;
|
2844
|
+
}
|
2845
|
+
if (carry != 0) bigits_.push_back(carry);
|
2846
|
+
return *this;
|
2847
|
+
}
|
2848
|
+
|
2849
|
+
template <typename Int>
|
2850
|
+
FMT_CONSTEXPR20 auto operator*=(Int value) -> bigint& {
|
2851
|
+
FMT_ASSERT(value > 0, "");
|
2852
|
+
multiply(uint32_or_64_or_128_t<Int>(value));
|
2853
|
+
return *this;
|
2854
|
+
}
|
2855
|
+
|
2856
|
+
friend FMT_CONSTEXPR20 auto compare(const bigint& lhs, const bigint& rhs)
|
2857
|
+
-> int {
|
2858
|
+
int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits();
|
2859
|
+
if (num_lhs_bigits != num_rhs_bigits)
|
2860
|
+
return num_lhs_bigits > num_rhs_bigits ? 1 : -1;
|
2861
|
+
int i = static_cast<int>(lhs.bigits_.size()) - 1;
|
2862
|
+
int j = static_cast<int>(rhs.bigits_.size()) - 1;
|
2863
|
+
int end = i - j;
|
2864
|
+
if (end < 0) end = 0;
|
2865
|
+
for (; i >= end; --i, --j) {
|
2866
|
+
bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j];
|
2867
|
+
if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1;
|
2868
|
+
}
|
2869
|
+
if (i != j) return i > j ? 1 : -1;
|
2870
|
+
return 0;
|
2871
|
+
}
|
2872
|
+
|
2873
|
+
// Returns compare(lhs1 + lhs2, rhs).
|
2874
|
+
friend FMT_CONSTEXPR20 auto add_compare(const bigint& lhs1,
|
2875
|
+
const bigint& lhs2, const bigint& rhs)
|
2876
|
+
-> int {
|
2877
|
+
auto minimum = [](int a, int b) { return a < b ? a : b; };
|
2878
|
+
auto maximum = [](int a, int b) { return a > b ? a : b; };
|
2879
|
+
int max_lhs_bigits = maximum(lhs1.num_bigits(), lhs2.num_bigits());
|
2880
|
+
int num_rhs_bigits = rhs.num_bigits();
|
2881
|
+
if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
|
2882
|
+
if (max_lhs_bigits > num_rhs_bigits) return 1;
|
2883
|
+
auto get_bigit = [](const bigint& n, int i) -> bigit {
|
2884
|
+
return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0;
|
2885
|
+
};
|
2886
|
+
double_bigit borrow = 0;
|
2887
|
+
int min_exp = minimum(minimum(lhs1.exp_, lhs2.exp_), rhs.exp_);
|
2888
|
+
for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
|
2889
|
+
double_bigit sum =
|
2890
|
+
static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i);
|
2891
|
+
bigit rhs_bigit = get_bigit(rhs, i);
|
2892
|
+
if (sum > rhs_bigit + borrow) return 1;
|
2893
|
+
borrow = rhs_bigit + borrow - sum;
|
2894
|
+
if (borrow > 1) return -1;
|
2895
|
+
borrow <<= bigit_bits;
|
2896
|
+
}
|
2897
|
+
return borrow != 0 ? -1 : 0;
|
2898
|
+
}
|
2899
|
+
|
2900
|
+
// Assigns pow(10, exp) to this bigint.
|
2901
|
+
FMT_CONSTEXPR20 void assign_pow10(int exp) {
|
2902
|
+
FMT_ASSERT(exp >= 0, "");
|
2903
|
+
if (exp == 0) return *this = 1;
|
2904
|
+
// Find the top bit.
|
2905
|
+
int bitmask = 1;
|
2906
|
+
while (exp >= bitmask) bitmask <<= 1;
|
2907
|
+
bitmask >>= 1;
|
2908
|
+
// pow(10, exp) = pow(5, exp) * pow(2, exp). First compute pow(5, exp) by
|
2909
|
+
// repeated squaring and multiplication.
|
2910
|
+
*this = 5;
|
2911
|
+
bitmask >>= 1;
|
2912
|
+
while (bitmask != 0) {
|
2913
|
+
square();
|
2914
|
+
if ((exp & bitmask) != 0) *this *= 5;
|
2915
|
+
bitmask >>= 1;
|
2916
|
+
}
|
2917
|
+
*this <<= exp; // Multiply by pow(2, exp) by shifting.
|
2918
|
+
}
|
2919
|
+
|
2920
|
+
FMT_CONSTEXPR20 void square() {
|
2921
|
+
int num_bigits = static_cast<int>(bigits_.size());
|
2922
|
+
int num_result_bigits = 2 * num_bigits;
|
2923
|
+
basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
|
2924
|
+
bigits_.resize(to_unsigned(num_result_bigits));
|
2925
|
+
auto sum = uint128_t();
|
2926
|
+
for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
|
2927
|
+
// Compute bigit at position bigit_index of the result by adding
|
2928
|
+
// cross-product terms n[i] * n[j] such that i + j == bigit_index.
|
2929
|
+
for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
|
2930
|
+
// Most terms are multiplied twice which can be optimized in the future.
|
2931
|
+
sum += static_cast<double_bigit>(n[i]) * n[j];
|
2932
|
+
}
|
2933
|
+
(*this)[bigit_index] = static_cast<bigit>(sum);
|
2934
|
+
sum >>= num_bits<bigit>(); // Compute the carry.
|
2935
|
+
}
|
2936
|
+
// Do the same for the top half.
|
2937
|
+
for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
|
2938
|
+
++bigit_index) {
|
2939
|
+
for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
|
2940
|
+
sum += static_cast<double_bigit>(n[i++]) * n[j--];
|
2941
|
+
(*this)[bigit_index] = static_cast<bigit>(sum);
|
2942
|
+
sum >>= num_bits<bigit>();
|
2943
|
+
}
|
2944
|
+
remove_leading_zeros();
|
2945
|
+
exp_ *= 2;
|
2946
|
+
}
|
2947
|
+
|
2948
|
+
// If this bigint has a bigger exponent than other, adds trailing zero to make
|
2949
|
+
// exponents equal. This simplifies some operations such as subtraction.
|
2950
|
+
FMT_CONSTEXPR20 void align(const bigint& other) {
|
2951
|
+
int exp_difference = exp_ - other.exp_;
|
2952
|
+
if (exp_difference <= 0) return;
|
2953
|
+
int num_bigits = static_cast<int>(bigits_.size());
|
2954
|
+
bigits_.resize(to_unsigned(num_bigits + exp_difference));
|
2955
|
+
for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
|
2956
|
+
bigits_[j] = bigits_[i];
|
2957
|
+
memset(bigits_.data(), 0, to_unsigned(exp_difference) * sizeof(bigit));
|
2958
|
+
exp_ -= exp_difference;
|
2959
|
+
}
|
2960
|
+
|
2961
|
+
// Divides this bignum by divisor, assigning the remainder to this and
|
2962
|
+
// returning the quotient.
|
2963
|
+
FMT_CONSTEXPR20 auto divmod_assign(const bigint& divisor) -> int {
|
2964
|
+
FMT_ASSERT(this != &divisor, "");
|
2965
|
+
if (compare(*this, divisor) < 0) return 0;
|
2966
|
+
FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
|
2967
|
+
align(divisor);
|
2968
|
+
int quotient = 0;
|
2969
|
+
do {
|
2970
|
+
subtract_aligned(divisor);
|
2971
|
+
++quotient;
|
2972
|
+
} while (compare(*this, divisor) >= 0);
|
2973
|
+
return quotient;
|
2974
|
+
}
|
2975
|
+
};
|
2976
|
+
|
2977
|
+
// format_dragon flags.
|
2978
|
+
enum dragon {
|
2979
|
+
predecessor_closer = 1,
|
2980
|
+
fixup = 2, // Run fixup to correct exp10 which can be off by one.
|
2981
|
+
fixed = 4,
|
2982
|
+
};
|
2983
|
+
|
2984
|
+
// Formats a floating-point number using a variation of the Fixed-Precision
|
2985
|
+
// Positive Floating-Point Printout ((FPP)^2) algorithm by Steele & White:
|
2986
|
+
// https://fmt.dev/papers/p372-steele.pdf.
|
2987
|
+
FMT_CONSTEXPR20 inline void format_dragon(basic_fp<uint128_t> value,
|
2988
|
+
unsigned flags, int num_digits,
|
2989
|
+
buffer<char>& buf, int& exp10) {
|
2990
|
+
bigint numerator; // 2 * R in (FPP)^2.
|
2991
|
+
bigint denominator; // 2 * S in (FPP)^2.
|
2992
|
+
// lower and upper are differences between value and corresponding boundaries.
|
2993
|
+
bigint lower; // (M^- in (FPP)^2).
|
2994
|
+
bigint upper_store; // upper's value if different from lower.
|
2995
|
+
bigint* upper = nullptr; // (M^+ in (FPP)^2).
|
2996
|
+
// Shift numerator and denominator by an extra bit or two (if lower boundary
|
2997
|
+
// is closer) to make lower and upper integers. This eliminates multiplication
|
2998
|
+
// by 2 during later computations.
|
2999
|
+
bool is_predecessor_closer = (flags & dragon::predecessor_closer) != 0;
|
3000
|
+
int shift = is_predecessor_closer ? 2 : 1;
|
3001
|
+
if (value.e >= 0) {
|
3002
|
+
numerator = value.f;
|
3003
|
+
numerator <<= value.e + shift;
|
3004
|
+
lower = 1;
|
3005
|
+
lower <<= value.e;
|
3006
|
+
if (is_predecessor_closer) {
|
3007
|
+
upper_store = 1;
|
3008
|
+
upper_store <<= value.e + 1;
|
3009
|
+
upper = &upper_store;
|
3010
|
+
}
|
3011
|
+
denominator.assign_pow10(exp10);
|
3012
|
+
denominator <<= shift;
|
3013
|
+
} else if (exp10 < 0) {
|
3014
|
+
numerator.assign_pow10(-exp10);
|
3015
|
+
lower.assign(numerator);
|
3016
|
+
if (is_predecessor_closer) {
|
3017
|
+
upper_store.assign(numerator);
|
3018
|
+
upper_store <<= 1;
|
3019
|
+
upper = &upper_store;
|
3020
|
+
}
|
3021
|
+
numerator *= value.f;
|
3022
|
+
numerator <<= shift;
|
3023
|
+
denominator = 1;
|
3024
|
+
denominator <<= shift - value.e;
|
3025
|
+
} else {
|
3026
|
+
numerator = value.f;
|
3027
|
+
numerator <<= shift;
|
3028
|
+
denominator.assign_pow10(exp10);
|
3029
|
+
denominator <<= shift - value.e;
|
3030
|
+
lower = 1;
|
3031
|
+
if (is_predecessor_closer) {
|
3032
|
+
upper_store = 1ULL << 1;
|
3033
|
+
upper = &upper_store;
|
3034
|
+
}
|
3035
|
+
}
|
3036
|
+
int even = static_cast<int>((value.f & 1) == 0);
|
3037
|
+
if (!upper) upper = &lower;
|
3038
|
+
bool shortest = num_digits < 0;
|
3039
|
+
if ((flags & dragon::fixup) != 0) {
|
3040
|
+
if (add_compare(numerator, *upper, denominator) + even <= 0) {
|
3041
|
+
--exp10;
|
3042
|
+
numerator *= 10;
|
3043
|
+
if (num_digits < 0) {
|
3044
|
+
lower *= 10;
|
3045
|
+
if (upper != &lower) *upper *= 10;
|
3046
|
+
}
|
3047
|
+
}
|
3048
|
+
if ((flags & dragon::fixed) != 0) adjust_precision(num_digits, exp10 + 1);
|
3049
|
+
}
|
3050
|
+
// Invariant: value == (numerator / denominator) * pow(10, exp10).
|
3051
|
+
if (shortest) {
|
3052
|
+
// Generate the shortest representation.
|
3053
|
+
num_digits = 0;
|
3054
|
+
char* data = buf.data();
|
3055
|
+
for (;;) {
|
3056
|
+
int digit = numerator.divmod_assign(denominator);
|
3057
|
+
bool low = compare(numerator, lower) - even < 0; // numerator <[=] lower.
|
3058
|
+
// numerator + upper >[=] pow10:
|
3059
|
+
bool high = add_compare(numerator, *upper, denominator) + even > 0;
|
3060
|
+
data[num_digits++] = static_cast<char>('0' + digit);
|
3061
|
+
if (low || high) {
|
3062
|
+
if (!low) {
|
3063
|
+
++data[num_digits - 1];
|
3064
|
+
} else if (high) {
|
3065
|
+
int result = add_compare(numerator, numerator, denominator);
|
3066
|
+
// Round half to even.
|
3067
|
+
if (result > 0 || (result == 0 && (digit % 2) != 0))
|
3068
|
+
++data[num_digits - 1];
|
3069
|
+
}
|
3070
|
+
buf.try_resize(to_unsigned(num_digits));
|
3071
|
+
exp10 -= num_digits - 1;
|
3072
|
+
return;
|
3073
|
+
}
|
3074
|
+
numerator *= 10;
|
3075
|
+
lower *= 10;
|
3076
|
+
if (upper != &lower) *upper *= 10;
|
3077
|
+
}
|
3078
|
+
}
|
3079
|
+
// Generate the given number of digits.
|
3080
|
+
exp10 -= num_digits - 1;
|
3081
|
+
if (num_digits <= 0) {
|
3082
|
+
auto digit = '0';
|
3083
|
+
if (num_digits == 0) {
|
3084
|
+
denominator *= 10;
|
3085
|
+
digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0';
|
3086
|
+
}
|
3087
|
+
buf.push_back(digit);
|
3088
|
+
return;
|
3089
|
+
}
|
3090
|
+
buf.try_resize(to_unsigned(num_digits));
|
3091
|
+
for (int i = 0; i < num_digits - 1; ++i) {
|
3092
|
+
int digit = numerator.divmod_assign(denominator);
|
3093
|
+
buf[i] = static_cast<char>('0' + digit);
|
3094
|
+
numerator *= 10;
|
3095
|
+
}
|
3096
|
+
int digit = numerator.divmod_assign(denominator);
|
3097
|
+
auto result = add_compare(numerator, numerator, denominator);
|
3098
|
+
if (result > 0 || (result == 0 && (digit % 2) != 0)) {
|
3099
|
+
if (digit == 9) {
|
3100
|
+
const auto overflow = '0' + 10;
|
3101
|
+
buf[num_digits - 1] = overflow;
|
3102
|
+
// Propagate the carry.
|
3103
|
+
for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) {
|
3104
|
+
buf[i] = '0';
|
3105
|
+
++buf[i - 1];
|
3106
|
+
}
|
3107
|
+
if (buf[0] == overflow) {
|
3108
|
+
buf[0] = '1';
|
3109
|
+
if ((flags & dragon::fixed) != 0)
|
3110
|
+
buf.push_back('0');
|
3111
|
+
else
|
3112
|
+
++exp10;
|
3113
|
+
}
|
3114
|
+
return;
|
3115
|
+
}
|
3116
|
+
++digit;
|
3117
|
+
}
|
3118
|
+
buf[num_digits - 1] = static_cast<char>('0' + digit);
|
3119
|
+
}
|
3120
|
+
|
3121
|
+
// Formats a floating-point number using the hexfloat format.
|
3122
|
+
template <typename Float, FMT_ENABLE_IF(!is_double_double<Float>::value)>
|
3123
|
+
FMT_CONSTEXPR20 void format_hexfloat(Float value, format_specs specs,
|
3124
|
+
buffer<char>& buf) {
|
3125
|
+
// float is passed as double to reduce the number of instantiations and to
|
3126
|
+
// simplify implementation.
|
3127
|
+
static_assert(!std::is_same<Float, float>::value, "");
|
3128
|
+
|
3129
|
+
using info = dragonbox::float_info<Float>;
|
3130
|
+
|
3131
|
+
// Assume Float is in the format [sign][exponent][significand].
|
3132
|
+
using carrier_uint = typename info::carrier_uint;
|
3133
|
+
|
3134
|
+
constexpr auto num_float_significand_bits =
|
3135
|
+
detail::num_significand_bits<Float>();
|
3136
|
+
|
3137
|
+
basic_fp<carrier_uint> f(value);
|
3138
|
+
f.e += num_float_significand_bits;
|
3139
|
+
if (!has_implicit_bit<Float>()) --f.e;
|
3140
|
+
|
3141
|
+
constexpr auto num_fraction_bits =
|
3142
|
+
num_float_significand_bits + (has_implicit_bit<Float>() ? 1 : 0);
|
3143
|
+
constexpr auto num_xdigits = (num_fraction_bits + 3) / 4;
|
3144
|
+
|
3145
|
+
constexpr auto leading_shift = ((num_xdigits - 1) * 4);
|
3146
|
+
const auto leading_mask = carrier_uint(0xF) << leading_shift;
|
3147
|
+
const auto leading_xdigit =
|
3148
|
+
static_cast<uint32_t>((f.f & leading_mask) >> leading_shift);
|
3149
|
+
if (leading_xdigit > 1) f.e -= (32 - countl_zero(leading_xdigit) - 1);
|
3150
|
+
|
3151
|
+
int print_xdigits = num_xdigits - 1;
|
3152
|
+
if (specs.precision >= 0 && print_xdigits > specs.precision) {
|
3153
|
+
const int shift = ((print_xdigits - specs.precision - 1) * 4);
|
3154
|
+
const auto mask = carrier_uint(0xF) << shift;
|
3155
|
+
const auto v = static_cast<uint32_t>((f.f & mask) >> shift);
|
3156
|
+
|
3157
|
+
if (v >= 8) {
|
3158
|
+
const auto inc = carrier_uint(1) << (shift + 4);
|
3159
|
+
f.f += inc;
|
3160
|
+
f.f &= ~(inc - 1);
|
3161
|
+
}
|
3162
|
+
|
3163
|
+
// Check long double overflow
|
3164
|
+
if (!has_implicit_bit<Float>()) {
|
3165
|
+
const auto implicit_bit = carrier_uint(1) << num_float_significand_bits;
|
3166
|
+
if ((f.f & implicit_bit) == implicit_bit) {
|
3167
|
+
f.f >>= 4;
|
3168
|
+
f.e += 4;
|
3169
|
+
}
|
3170
|
+
}
|
3171
|
+
|
3172
|
+
print_xdigits = specs.precision;
|
3173
|
+
}
|
3174
|
+
|
3175
|
+
char xdigits[num_bits<carrier_uint>() / 4];
|
3176
|
+
detail::fill_n(xdigits, sizeof(xdigits), '0');
|
3177
|
+
format_uint<4>(xdigits, f.f, num_xdigits, specs.upper);
|
3178
|
+
|
3179
|
+
// Remove zero tail
|
3180
|
+
while (print_xdigits > 0 && xdigits[print_xdigits] == '0') --print_xdigits;
|
3181
|
+
|
3182
|
+
buf.push_back('0');
|
3183
|
+
buf.push_back(specs.upper ? 'X' : 'x');
|
3184
|
+
buf.push_back(xdigits[0]);
|
3185
|
+
if (specs.alt || print_xdigits > 0 || print_xdigits < specs.precision)
|
3186
|
+
buf.push_back('.');
|
3187
|
+
buf.append(xdigits + 1, xdigits + 1 + print_xdigits);
|
3188
|
+
for (; print_xdigits < specs.precision; ++print_xdigits) buf.push_back('0');
|
3189
|
+
|
3190
|
+
buf.push_back(specs.upper ? 'P' : 'p');
|
3191
|
+
|
3192
|
+
uint32_t abs_e;
|
3193
|
+
if (f.e < 0) {
|
3194
|
+
buf.push_back('-');
|
3195
|
+
abs_e = static_cast<uint32_t>(-f.e);
|
3196
|
+
} else {
|
3197
|
+
buf.push_back('+');
|
3198
|
+
abs_e = static_cast<uint32_t>(f.e);
|
3199
|
+
}
|
3200
|
+
format_decimal<char>(appender(buf), abs_e, detail::count_digits(abs_e));
|
3201
|
+
}
|
3202
|
+
|
3203
|
+
template <typename Float, FMT_ENABLE_IF(is_double_double<Float>::value)>
|
3204
|
+
FMT_CONSTEXPR20 void format_hexfloat(Float value, format_specs specs,
|
3205
|
+
buffer<char>& buf) {
|
3206
|
+
format_hexfloat(static_cast<double>(value), specs, buf);
|
3207
|
+
}
|
3208
|
+
|
3209
|
+
constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t {
|
3210
|
+
// For checking rounding thresholds.
|
3211
|
+
// The kth entry is chosen to be the smallest integer such that the
|
3212
|
+
// upper 32-bits of 10^(k+1) times it is strictly bigger than 5 * 10^k.
|
3213
|
+
// It is equal to ceil(2^31 + 2^32/10^(k + 1)).
|
3214
|
+
// These are stored in a string literal because we cannot have static arrays
|
3215
|
+
// in constexpr functions and non-static ones are poorly optimized.
|
3216
|
+
return U"\x9999999a\x828f5c29\x80418938\x80068db9\x8000a7c6\x800010c7"
|
3217
|
+
U"\x800001ae\x8000002b"[index];
|
3218
|
+
}
|
3219
|
+
|
3220
|
+
template <typename Float>
|
3221
|
+
FMT_CONSTEXPR20 auto format_float(Float value, int precision, float_specs specs,
|
3222
|
+
buffer<char>& buf) -> int {
|
3223
|
+
// float is passed as double to reduce the number of instantiations.
|
3224
|
+
static_assert(!std::is_same<Float, float>::value, "");
|
3225
|
+
FMT_ASSERT(value >= 0, "value is negative");
|
3226
|
+
auto converted_value = convert_float(value);
|
3227
|
+
|
3228
|
+
const bool fixed = specs.format == float_format::fixed;
|
3229
|
+
if (value <= 0) { // <= instead of == to silence a warning.
|
3230
|
+
if (precision <= 0 || !fixed) {
|
3231
|
+
buf.push_back('0');
|
3232
|
+
return 0;
|
3233
|
+
}
|
3234
|
+
buf.try_resize(to_unsigned(precision));
|
3235
|
+
fill_n(buf.data(), precision, '0');
|
3236
|
+
return -precision;
|
3237
|
+
}
|
3238
|
+
|
3239
|
+
int exp = 0;
|
3240
|
+
bool use_dragon = true;
|
3241
|
+
unsigned dragon_flags = 0;
|
3242
|
+
if (!is_fast_float<Float>() || is_constant_evaluated()) {
|
3243
|
+
const auto inv_log2_10 = 0.3010299956639812; // 1 / log2(10)
|
3244
|
+
using info = dragonbox::float_info<decltype(converted_value)>;
|
3245
|
+
const auto f = basic_fp<typename info::carrier_uint>(converted_value);
|
3246
|
+
// Compute exp, an approximate power of 10, such that
|
3247
|
+
// 10^(exp - 1) <= value < 10^exp or 10^exp <= value < 10^(exp + 1).
|
3248
|
+
// This is based on log10(value) == log2(value) / log2(10) and approximation
|
3249
|
+
// of log2(value) by e + num_fraction_bits idea from double-conversion.
|
3250
|
+
auto e = (f.e + count_digits<1>(f.f) - 1) * inv_log2_10 - 1e-10;
|
3251
|
+
exp = static_cast<int>(e);
|
3252
|
+
if (e > exp) ++exp; // Compute ceil.
|
3253
|
+
dragon_flags = dragon::fixup;
|
3254
|
+
} else if (precision < 0) {
|
3255
|
+
// Use Dragonbox for the shortest format.
|
3256
|
+
if (specs.binary32) {
|
3257
|
+
auto dec = dragonbox::to_decimal(static_cast<float>(value));
|
3258
|
+
write<char>(appender(buf), dec.significand);
|
3259
|
+
return dec.exponent;
|
3260
|
+
}
|
3261
|
+
auto dec = dragonbox::to_decimal(static_cast<double>(value));
|
3262
|
+
write<char>(appender(buf), dec.significand);
|
3263
|
+
return dec.exponent;
|
3264
|
+
} else {
|
3265
|
+
// Extract significand bits and exponent bits.
|
3266
|
+
using info = dragonbox::float_info<double>;
|
3267
|
+
auto br = bit_cast<uint64_t>(static_cast<double>(value));
|
3268
|
+
|
3269
|
+
const uint64_t significand_mask =
|
3270
|
+
(static_cast<uint64_t>(1) << num_significand_bits<double>()) - 1;
|
3271
|
+
uint64_t significand = (br & significand_mask);
|
3272
|
+
int exponent = static_cast<int>((br & exponent_mask<double>()) >>
|
3273
|
+
num_significand_bits<double>());
|
3274
|
+
|
3275
|
+
if (exponent != 0) { // Check if normal.
|
3276
|
+
exponent -= exponent_bias<double>() + num_significand_bits<double>();
|
3277
|
+
significand |=
|
3278
|
+
(static_cast<uint64_t>(1) << num_significand_bits<double>());
|
3279
|
+
significand <<= 1;
|
3280
|
+
} else {
|
3281
|
+
// Normalize subnormal inputs.
|
3282
|
+
FMT_ASSERT(significand != 0, "zeros should not appear here");
|
3283
|
+
int shift = countl_zero(significand);
|
3284
|
+
FMT_ASSERT(shift >= num_bits<uint64_t>() - num_significand_bits<double>(),
|
3285
|
+
"");
|
3286
|
+
shift -= (num_bits<uint64_t>() - num_significand_bits<double>() - 2);
|
3287
|
+
exponent = (std::numeric_limits<double>::min_exponent -
|
3288
|
+
num_significand_bits<double>()) -
|
3289
|
+
shift;
|
3290
|
+
significand <<= shift;
|
3291
|
+
}
|
3292
|
+
|
3293
|
+
// Compute the first several nonzero decimal significand digits.
|
3294
|
+
// We call the number we get the first segment.
|
3295
|
+
const int k = info::kappa - dragonbox::floor_log10_pow2(exponent);
|
3296
|
+
exp = -k;
|
3297
|
+
const int beta = exponent + dragonbox::floor_log2_pow10(k);
|
3298
|
+
uint64_t first_segment;
|
3299
|
+
bool has_more_segments;
|
3300
|
+
int digits_in_the_first_segment;
|
3301
|
+
{
|
3302
|
+
const auto r = dragonbox::umul192_upper128(
|
3303
|
+
significand << beta, dragonbox::get_cached_power(k));
|
3304
|
+
first_segment = r.high();
|
3305
|
+
has_more_segments = r.low() != 0;
|
3306
|
+
|
3307
|
+
// The first segment can have 18 ~ 19 digits.
|
3308
|
+
if (first_segment >= 1000000000000000000ULL) {
|
3309
|
+
digits_in_the_first_segment = 19;
|
3310
|
+
} else {
|
3311
|
+
// When it is of 18-digits, we align it to 19-digits by adding a bogus
|
3312
|
+
// zero at the end.
|
3313
|
+
digits_in_the_first_segment = 18;
|
3314
|
+
first_segment *= 10;
|
3315
|
+
}
|
3316
|
+
}
|
3317
|
+
|
3318
|
+
// Compute the actual number of decimal digits to print.
|
3319
|
+
if (fixed) adjust_precision(precision, exp + digits_in_the_first_segment);
|
3320
|
+
|
3321
|
+
// Use Dragon4 only when there might be not enough digits in the first
|
3322
|
+
// segment.
|
3323
|
+
if (digits_in_the_first_segment > precision) {
|
3324
|
+
use_dragon = false;
|
3325
|
+
|
3326
|
+
if (precision <= 0) {
|
3327
|
+
exp += digits_in_the_first_segment;
|
3328
|
+
|
3329
|
+
if (precision < 0) {
|
3330
|
+
// Nothing to do, since all we have are just leading zeros.
|
3331
|
+
buf.try_resize(0);
|
3332
|
+
} else {
|
3333
|
+
// We may need to round-up.
|
3334
|
+
buf.try_resize(1);
|
3335
|
+
if ((first_segment | static_cast<uint64_t>(has_more_segments)) >
|
3336
|
+
5000000000000000000ULL) {
|
3337
|
+
buf[0] = '1';
|
3338
|
+
} else {
|
3339
|
+
buf[0] = '0';
|
3340
|
+
}
|
3341
|
+
}
|
3342
|
+
} // precision <= 0
|
3343
|
+
else {
|
3344
|
+
exp += digits_in_the_first_segment - precision;
|
3345
|
+
|
3346
|
+
// When precision > 0, we divide the first segment into three
|
3347
|
+
// subsegments, each with 9, 9, and 0 ~ 1 digits so that each fits
|
3348
|
+
// in 32-bits which usually allows faster calculation than in
|
3349
|
+
// 64-bits. Since some compiler (e.g. MSVC) doesn't know how to optimize
|
3350
|
+
// division-by-constant for large 64-bit divisors, we do it here
|
3351
|
+
// manually. The magic number 7922816251426433760 below is equal to
|
3352
|
+
// ceil(2^(64+32) / 10^10).
|
3353
|
+
const uint32_t first_subsegment = static_cast<uint32_t>(
|
3354
|
+
dragonbox::umul128_upper64(first_segment, 7922816251426433760ULL) >>
|
3355
|
+
32);
|
3356
|
+
const uint64_t second_third_subsegments =
|
3357
|
+
first_segment - first_subsegment * 10000000000ULL;
|
3358
|
+
|
3359
|
+
uint64_t prod;
|
3360
|
+
uint32_t digits;
|
3361
|
+
bool should_round_up;
|
3362
|
+
int number_of_digits_to_print = precision > 9 ? 9 : precision;
|
3363
|
+
|
3364
|
+
// Print a 9-digits subsegment, either the first or the second.
|
3365
|
+
auto print_subsegment = [&](uint32_t subsegment, char* buffer) {
|
3366
|
+
int number_of_digits_printed = 0;
|
3367
|
+
|
3368
|
+
// If we want to print an odd number of digits from the subsegment,
|
3369
|
+
if ((number_of_digits_to_print & 1) != 0) {
|
3370
|
+
// Convert to 64-bit fixed-point fractional form with 1-digit
|
3371
|
+
// integer part. The magic number 720575941 is a good enough
|
3372
|
+
// approximation of 2^(32 + 24) / 10^8; see
|
3373
|
+
// https://jk-jeon.github.io/posts/2022/12/fixed-precision-formatting/#fixed-length-case
|
3374
|
+
// for details.
|
3375
|
+
prod = ((subsegment * static_cast<uint64_t>(720575941)) >> 24) + 1;
|
3376
|
+
digits = static_cast<uint32_t>(prod >> 32);
|
3377
|
+
*buffer = static_cast<char>('0' + digits);
|
3378
|
+
number_of_digits_printed++;
|
3379
|
+
}
|
3380
|
+
// If we want to print an even number of digits from the
|
3381
|
+
// first_subsegment,
|
3382
|
+
else {
|
3383
|
+
// Convert to 64-bit fixed-point fractional form with 2-digits
|
3384
|
+
// integer part. The magic number 450359963 is a good enough
|
3385
|
+
// approximation of 2^(32 + 20) / 10^7; see
|
3386
|
+
// https://jk-jeon.github.io/posts/2022/12/fixed-precision-formatting/#fixed-length-case
|
3387
|
+
// for details.
|
3388
|
+
prod = ((subsegment * static_cast<uint64_t>(450359963)) >> 20) + 1;
|
3389
|
+
digits = static_cast<uint32_t>(prod >> 32);
|
3390
|
+
copy2(buffer, digits2(digits));
|
3391
|
+
number_of_digits_printed += 2;
|
3392
|
+
}
|
3393
|
+
|
3394
|
+
// Print all digit pairs.
|
3395
|
+
while (number_of_digits_printed < number_of_digits_to_print) {
|
3396
|
+
prod = static_cast<uint32_t>(prod) * static_cast<uint64_t>(100);
|
3397
|
+
digits = static_cast<uint32_t>(prod >> 32);
|
3398
|
+
copy2(buffer + number_of_digits_printed, digits2(digits));
|
3399
|
+
number_of_digits_printed += 2;
|
3400
|
+
}
|
3401
|
+
};
|
3402
|
+
|
3403
|
+
// Print first subsegment.
|
3404
|
+
print_subsegment(first_subsegment, buf.data());
|
3405
|
+
|
3406
|
+
// Perform rounding if the first subsegment is the last subsegment to
|
3407
|
+
// print.
|
3408
|
+
if (precision <= 9) {
|
3409
|
+
// Rounding inside the subsegment.
|
3410
|
+
// We round-up if:
|
3411
|
+
// - either the fractional part is strictly larger than 1/2, or
|
3412
|
+
// - the fractional part is exactly 1/2 and the last digit is odd.
|
3413
|
+
// We rely on the following observations:
|
3414
|
+
// - If fractional_part >= threshold, then the fractional part is
|
3415
|
+
// strictly larger than 1/2.
|
3416
|
+
// - If the MSB of fractional_part is set, then the fractional part
|
3417
|
+
// must be at least 1/2.
|
3418
|
+
// - When the MSB of fractional_part is set, either
|
3419
|
+
// second_third_subsegments being nonzero or has_more_segments
|
3420
|
+
// being true means there are further digits not printed, so the
|
3421
|
+
// fractional part is strictly larger than 1/2.
|
3422
|
+
if (precision < 9) {
|
3423
|
+
uint32_t fractional_part = static_cast<uint32_t>(prod);
|
3424
|
+
should_round_up =
|
3425
|
+
fractional_part >= fractional_part_rounding_thresholds(
|
3426
|
+
8 - number_of_digits_to_print) ||
|
3427
|
+
((fractional_part >> 31) &
|
3428
|
+
((digits & 1) | (second_third_subsegments != 0) |
|
3429
|
+
has_more_segments)) != 0;
|
3430
|
+
}
|
3431
|
+
// Rounding at the subsegment boundary.
|
3432
|
+
// In this case, the fractional part is at least 1/2 if and only if
|
3433
|
+
// second_third_subsegments >= 5000000000ULL, and is strictly larger
|
3434
|
+
// than 1/2 if we further have either second_third_subsegments >
|
3435
|
+
// 5000000000ULL or has_more_segments == true.
|
3436
|
+
else {
|
3437
|
+
should_round_up = second_third_subsegments > 5000000000ULL ||
|
3438
|
+
(second_third_subsegments == 5000000000ULL &&
|
3439
|
+
((digits & 1) != 0 || has_more_segments));
|
3440
|
+
}
|
3441
|
+
}
|
3442
|
+
// Otherwise, print the second subsegment.
|
3443
|
+
else {
|
3444
|
+
// Compilers are not aware of how to leverage the maximum value of
|
3445
|
+
// second_third_subsegments to find out a better magic number which
|
3446
|
+
// allows us to eliminate an additional shift. 1844674407370955162 =
|
3447
|
+
// ceil(2^64/10) < ceil(2^64*(10^9/(10^10 - 1))).
|
3448
|
+
const uint32_t second_subsegment =
|
3449
|
+
static_cast<uint32_t>(dragonbox::umul128_upper64(
|
3450
|
+
second_third_subsegments, 1844674407370955162ULL));
|
3451
|
+
const uint32_t third_subsegment =
|
3452
|
+
static_cast<uint32_t>(second_third_subsegments) -
|
3453
|
+
second_subsegment * 10;
|
3454
|
+
|
3455
|
+
number_of_digits_to_print = precision - 9;
|
3456
|
+
print_subsegment(second_subsegment, buf.data() + 9);
|
3457
|
+
|
3458
|
+
// Rounding inside the subsegment.
|
3459
|
+
if (precision < 18) {
|
3460
|
+
// The condition third_subsegment != 0 implies that the segment was
|
3461
|
+
// of 19 digits, so in this case the third segment should be
|
3462
|
+
// consisting of a genuine digit from the input.
|
3463
|
+
uint32_t fractional_part = static_cast<uint32_t>(prod);
|
3464
|
+
should_round_up =
|
3465
|
+
fractional_part >= fractional_part_rounding_thresholds(
|
3466
|
+
8 - number_of_digits_to_print) ||
|
3467
|
+
((fractional_part >> 31) &
|
3468
|
+
((digits & 1) | (third_subsegment != 0) |
|
3469
|
+
has_more_segments)) != 0;
|
3470
|
+
}
|
3471
|
+
// Rounding at the subsegment boundary.
|
3472
|
+
else {
|
3473
|
+
// In this case, the segment must be of 19 digits, thus
|
3474
|
+
// the third subsegment should be consisting of a genuine digit from
|
3475
|
+
// the input.
|
3476
|
+
should_round_up = third_subsegment > 5 ||
|
3477
|
+
(third_subsegment == 5 &&
|
3478
|
+
((digits & 1) != 0 || has_more_segments));
|
3479
|
+
}
|
3480
|
+
}
|
3481
|
+
|
3482
|
+
// Round-up if necessary.
|
3483
|
+
if (should_round_up) {
|
3484
|
+
++buf[precision - 1];
|
3485
|
+
for (int i = precision - 1; i > 0 && buf[i] > '9'; --i) {
|
3486
|
+
buf[i] = '0';
|
3487
|
+
++buf[i - 1];
|
3488
|
+
}
|
3489
|
+
if (buf[0] > '9') {
|
3490
|
+
buf[0] = '1';
|
3491
|
+
if (fixed)
|
3492
|
+
buf[precision++] = '0';
|
3493
|
+
else
|
3494
|
+
++exp;
|
3495
|
+
}
|
3496
|
+
}
|
3497
|
+
buf.try_resize(to_unsigned(precision));
|
3498
|
+
}
|
3499
|
+
} // if (digits_in_the_first_segment > precision)
|
3500
|
+
else {
|
3501
|
+
// Adjust the exponent for its use in Dragon4.
|
3502
|
+
exp += digits_in_the_first_segment - 1;
|
3503
|
+
}
|
3504
|
+
}
|
3505
|
+
if (use_dragon) {
|
3506
|
+
auto f = basic_fp<uint128_t>();
|
3507
|
+
bool is_predecessor_closer = specs.binary32
|
3508
|
+
? f.assign(static_cast<float>(value))
|
3509
|
+
: f.assign(converted_value);
|
3510
|
+
if (is_predecessor_closer) dragon_flags |= dragon::predecessor_closer;
|
3511
|
+
if (fixed) dragon_flags |= dragon::fixed;
|
3512
|
+
// Limit precision to the maximum possible number of significant digits in
|
3513
|
+
// an IEEE754 double because we don't need to generate zeros.
|
3514
|
+
const int max_double_digits = 767;
|
3515
|
+
if (precision > max_double_digits) precision = max_double_digits;
|
3516
|
+
format_dragon(f, dragon_flags, precision, buf, exp);
|
3517
|
+
}
|
3518
|
+
if (!fixed && !specs.showpoint) {
|
3519
|
+
// Remove trailing zeros.
|
3520
|
+
auto num_digits = buf.size();
|
3521
|
+
while (num_digits > 0 && buf[num_digits - 1] == '0') {
|
3522
|
+
--num_digits;
|
3523
|
+
++exp;
|
3524
|
+
}
|
3525
|
+
buf.try_resize(num_digits);
|
3526
|
+
}
|
3527
|
+
return exp;
|
3528
|
+
}
|
3529
|
+
|
3530
|
+
template <typename Char, typename OutputIt, typename T>
|
3531
|
+
FMT_CONSTEXPR20 auto write_float(OutputIt out, T value, format_specs specs,
|
3532
|
+
locale_ref loc) -> OutputIt {
|
3533
|
+
sign_t sign = specs.sign;
|
3534
|
+
if (detail::signbit(value)) { // value < 0 is false for NaN so use signbit.
|
3535
|
+
sign = sign::minus;
|
3536
|
+
value = -value;
|
3537
|
+
} else if (sign == sign::minus) {
|
3538
|
+
sign = sign::none;
|
3539
|
+
}
|
3540
|
+
|
3541
|
+
if (!detail::isfinite(value))
|
3542
|
+
return write_nonfinite<Char>(out, detail::isnan(value), specs, sign);
|
3543
|
+
|
3544
|
+
if (specs.align == align::numeric && sign) {
|
3545
|
+
auto it = reserve(out, 1);
|
3546
|
+
*it++ = detail::sign<Char>(sign);
|
3547
|
+
out = base_iterator(out, it);
|
3548
|
+
sign = sign::none;
|
3549
|
+
if (specs.width != 0) --specs.width;
|
3550
|
+
}
|
3551
|
+
|
3552
|
+
memory_buffer buffer;
|
3553
|
+
if (specs.type == presentation_type::hexfloat) {
|
3554
|
+
if (sign) buffer.push_back(detail::sign<char>(sign));
|
3555
|
+
format_hexfloat(convert_float(value), specs, buffer);
|
3556
|
+
return write_bytes<Char, align::right>(out, {buffer.data(), buffer.size()},
|
3557
|
+
specs);
|
3558
|
+
}
|
3559
|
+
|
3560
|
+
int precision = specs.precision >= 0 || specs.type == presentation_type::none
|
3561
|
+
? specs.precision
|
3562
|
+
: 6;
|
3563
|
+
if (specs.type == presentation_type::exp) {
|
3564
|
+
if (precision == max_value<int>())
|
3565
|
+
report_error("number is too big");
|
3566
|
+
else
|
3567
|
+
++precision;
|
3568
|
+
} else if (specs.type != presentation_type::fixed && precision == 0) {
|
3569
|
+
precision = 1;
|
3570
|
+
}
|
3571
|
+
float_specs fspecs = parse_float_type_spec(specs);
|
3572
|
+
fspecs.sign = sign;
|
3573
|
+
if (const_check(std::is_same<T, float>())) fspecs.binary32 = true;
|
3574
|
+
int exp = format_float(convert_float(value), precision, fspecs, buffer);
|
3575
|
+
fspecs.precision = precision;
|
3576
|
+
auto f = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp};
|
3577
|
+
return write_float<Char>(out, f, specs, fspecs, loc);
|
3578
|
+
}
|
3579
|
+
|
3580
|
+
template <typename Char, typename OutputIt, typename T,
|
3581
|
+
FMT_ENABLE_IF(is_floating_point<T>::value)>
|
3582
|
+
FMT_CONSTEXPR20 auto write(OutputIt out, T value, format_specs specs,
|
3583
|
+
locale_ref loc = {}) -> OutputIt {
|
3584
|
+
if (const_check(!is_supported_floating_point(value))) return out;
|
3585
|
+
return specs.localized && write_loc(out, value, specs, loc)
|
3586
|
+
? out
|
3587
|
+
: write_float<Char>(out, value, specs, loc);
|
3588
|
+
}
|
3589
|
+
|
3590
|
+
template <typename Char, typename OutputIt, typename T,
|
3591
|
+
FMT_ENABLE_IF(is_fast_float<T>::value)>
|
3592
|
+
FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
|
3593
|
+
if (is_constant_evaluated()) return write<Char>(out, value, format_specs());
|
3594
|
+
if (const_check(!is_supported_floating_point(value))) return out;
|
3595
|
+
|
3596
|
+
auto sign = sign_t::none;
|
3597
|
+
if (detail::signbit(value)) {
|
3598
|
+
sign = sign::minus;
|
3599
|
+
value = -value;
|
3600
|
+
}
|
3601
|
+
|
3602
|
+
constexpr auto specs = format_specs();
|
3603
|
+
using floaty = conditional_t<std::is_same<T, long double>::value, double, T>;
|
3604
|
+
using floaty_uint = typename dragonbox::float_info<floaty>::carrier_uint;
|
3605
|
+
floaty_uint mask = exponent_mask<floaty>();
|
3606
|
+
if ((bit_cast<floaty_uint>(value) & mask) == mask)
|
3607
|
+
return write_nonfinite<Char>(out, std::isnan(value), specs, sign);
|
3608
|
+
|
3609
|
+
auto fspecs = float_specs();
|
3610
|
+
fspecs.sign = sign;
|
3611
|
+
auto dec = dragonbox::to_decimal(static_cast<floaty>(value));
|
3612
|
+
return write_float<Char>(out, dec, specs, fspecs, {});
|
3613
|
+
}
|
3614
|
+
|
3615
|
+
template <typename Char, typename OutputIt, typename T,
|
3616
|
+
FMT_ENABLE_IF(is_floating_point<T>::value &&
|
3617
|
+
!is_fast_float<T>::value)>
|
3618
|
+
inline auto write(OutputIt out, T value) -> OutputIt {
|
3619
|
+
return write<Char>(out, value, format_specs());
|
3620
|
+
}
|
3621
|
+
|
3622
|
+
template <typename Char, typename OutputIt>
|
3623
|
+
auto write(OutputIt out, monostate, format_specs = {}, locale_ref = {})
|
3624
|
+
-> OutputIt {
|
3625
|
+
FMT_ASSERT(false, "");
|
3626
|
+
return out;
|
3627
|
+
}
|
3628
|
+
|
3629
|
+
template <typename Char, typename OutputIt>
|
3630
|
+
FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> value)
|
3631
|
+
-> OutputIt {
|
3632
|
+
auto it = reserve(out, value.size());
|
3633
|
+
it = copy_noinline<Char>(value.begin(), value.end(), it);
|
3634
|
+
return base_iterator(out, it);
|
3635
|
+
}
|
3636
|
+
|
3637
|
+
template <typename Char, typename OutputIt, typename T,
|
3638
|
+
FMT_ENABLE_IF(has_to_string_view<T>::value)>
|
3639
|
+
constexpr auto write(OutputIt out, const T& value) -> OutputIt {
|
3640
|
+
return write<Char>(out, to_string_view(value));
|
3641
|
+
}
|
3642
|
+
|
3643
|
+
// FMT_ENABLE_IF() condition separated to workaround an MSVC bug.
|
3644
|
+
template <
|
3645
|
+
typename Char, typename OutputIt, typename T,
|
3646
|
+
bool check =
|
3647
|
+
std::is_enum<T>::value && !std::is_same<T, Char>::value &&
|
3648
|
+
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
|
3649
|
+
type::custom_type,
|
3650
|
+
FMT_ENABLE_IF(check)>
|
3651
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
|
3652
|
+
return write<Char>(out, static_cast<underlying_t<T>>(value));
|
3653
|
+
}
|
3654
|
+
|
3655
|
+
template <typename Char, typename OutputIt, typename T,
|
3656
|
+
FMT_ENABLE_IF(std::is_same<T, bool>::value)>
|
3657
|
+
FMT_CONSTEXPR auto write(OutputIt out, T value, const format_specs& specs = {},
|
3658
|
+
locale_ref = {}) -> OutputIt {
|
3659
|
+
return specs.type != presentation_type::none &&
|
3660
|
+
specs.type != presentation_type::string
|
3661
|
+
? write<Char>(out, value ? 1 : 0, specs, {})
|
3662
|
+
: write_bytes<Char>(out, value ? "true" : "false", specs);
|
3663
|
+
}
|
3664
|
+
|
3665
|
+
template <typename Char, typename OutputIt>
|
3666
|
+
FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
|
3667
|
+
auto it = reserve(out, 1);
|
3668
|
+
*it++ = value;
|
3669
|
+
return base_iterator(out, it);
|
3670
|
+
}
|
3671
|
+
|
3672
|
+
template <typename Char, typename OutputIt>
|
3673
|
+
FMT_CONSTEXPR20 auto write(OutputIt out, const Char* value) -> OutputIt {
|
3674
|
+
if (value) return write(out, basic_string_view<Char>(value));
|
3675
|
+
report_error("string pointer is null");
|
3676
|
+
return out;
|
3677
|
+
}
|
3678
|
+
|
3679
|
+
template <typename Char, typename OutputIt, typename T,
|
3680
|
+
FMT_ENABLE_IF(std::is_same<T, void>::value)>
|
3681
|
+
auto write(OutputIt out, const T* value, const format_specs& specs = {},
|
3682
|
+
locale_ref = {}) -> OutputIt {
|
3683
|
+
return write_ptr<Char>(out, bit_cast<uintptr_t>(value), &specs);
|
3684
|
+
}
|
3685
|
+
|
3686
|
+
// A write overload that handles implicit conversions.
|
3687
|
+
template <typename Char, typename OutputIt, typename T,
|
3688
|
+
typename Context = basic_format_context<OutputIt, Char>>
|
3689
|
+
FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
|
3690
|
+
std::is_class<T>::value && !has_to_string_view<T>::value &&
|
3691
|
+
!is_floating_point<T>::value && !std::is_same<T, Char>::value &&
|
3692
|
+
!std::is_same<T, remove_cvref_t<decltype(arg_mapper<Context>().map(
|
3693
|
+
value))>>::value,
|
3694
|
+
OutputIt> {
|
3695
|
+
return write<Char>(out, arg_mapper<Context>().map(value));
|
3696
|
+
}
|
3697
|
+
|
3698
|
+
template <typename Char, typename OutputIt, typename T,
|
3699
|
+
typename Context = basic_format_context<OutputIt, Char>>
|
3700
|
+
FMT_CONSTEXPR auto write(OutputIt out, const T& value)
|
3701
|
+
-> enable_if_t<mapped_type_constant<T, Context>::value ==
|
3702
|
+
type::custom_type &&
|
3703
|
+
!std::is_fundamental<T>::value,
|
3704
|
+
OutputIt> {
|
3705
|
+
auto formatter = typename Context::template formatter_type<T>();
|
3706
|
+
auto parse_ctx = typename Context::parse_context_type({});
|
3707
|
+
formatter.parse(parse_ctx);
|
3708
|
+
auto ctx = Context(out, {}, {});
|
3709
|
+
return formatter.format(value, ctx);
|
3710
|
+
}
|
3711
|
+
|
3712
|
+
// An argument visitor that formats the argument and writes it via the output
|
3713
|
+
// iterator. It's a class and not a generic lambda for compatibility with C++11.
|
3714
|
+
template <typename Char> struct default_arg_formatter {
|
3715
|
+
using iterator = basic_appender<Char>;
|
3716
|
+
using context = buffered_context<Char>;
|
3717
|
+
|
3718
|
+
iterator out;
|
3719
|
+
basic_format_args<context> args;
|
3720
|
+
locale_ref loc;
|
3721
|
+
|
3722
|
+
template <typename T> auto operator()(T value) -> iterator {
|
3723
|
+
return write<Char>(out, value);
|
3724
|
+
}
|
3725
|
+
auto operator()(typename basic_format_arg<context>::handle h) -> iterator {
|
3726
|
+
basic_format_parse_context<Char> parse_ctx({});
|
3727
|
+
context format_ctx(out, args, loc);
|
3728
|
+
h.format(parse_ctx, format_ctx);
|
3729
|
+
return format_ctx.out();
|
3730
|
+
}
|
3731
|
+
};
|
3732
|
+
|
3733
|
+
template <typename Char> struct arg_formatter {
|
3734
|
+
using iterator = basic_appender<Char>;
|
3735
|
+
using context = buffered_context<Char>;
|
3736
|
+
|
3737
|
+
iterator out;
|
3738
|
+
const format_specs& specs;
|
3739
|
+
locale_ref locale;
|
3740
|
+
|
3741
|
+
template <typename T>
|
3742
|
+
FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
|
3743
|
+
return detail::write<Char>(out, value, specs, locale);
|
3744
|
+
}
|
3745
|
+
auto operator()(typename basic_format_arg<context>::handle) -> iterator {
|
3746
|
+
// User-defined types are handled separately because they require access
|
3747
|
+
// to the parse context.
|
3748
|
+
return out;
|
3749
|
+
}
|
3750
|
+
};
|
3751
|
+
|
3752
|
+
struct width_checker {
|
3753
|
+
template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
|
3754
|
+
FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
|
3755
|
+
if (is_negative(value)) report_error("negative width");
|
3756
|
+
return static_cast<unsigned long long>(value);
|
3757
|
+
}
|
3758
|
+
|
3759
|
+
template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
|
3760
|
+
FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
|
3761
|
+
report_error("width is not integer");
|
3762
|
+
return 0;
|
3763
|
+
}
|
3764
|
+
};
|
3765
|
+
|
3766
|
+
struct precision_checker {
|
3767
|
+
template <typename T, FMT_ENABLE_IF(is_integer<T>::value)>
|
3768
|
+
FMT_CONSTEXPR auto operator()(T value) -> unsigned long long {
|
3769
|
+
if (is_negative(value)) report_error("negative precision");
|
3770
|
+
return static_cast<unsigned long long>(value);
|
3771
|
+
}
|
3772
|
+
|
3773
|
+
template <typename T, FMT_ENABLE_IF(!is_integer<T>::value)>
|
3774
|
+
FMT_CONSTEXPR auto operator()(T) -> unsigned long long {
|
3775
|
+
report_error("precision is not integer");
|
3776
|
+
return 0;
|
3777
|
+
}
|
3778
|
+
};
|
3779
|
+
|
3780
|
+
template <typename Handler, typename FormatArg>
|
3781
|
+
FMT_CONSTEXPR auto get_dynamic_spec(FormatArg arg) -> int {
|
3782
|
+
unsigned long long value = arg.visit(Handler());
|
3783
|
+
if (value > to_unsigned(max_value<int>())) report_error("number is too big");
|
3784
|
+
return static_cast<int>(value);
|
3785
|
+
}
|
3786
|
+
|
3787
|
+
template <typename Context, typename ID>
|
3788
|
+
FMT_CONSTEXPR auto get_arg(Context& ctx, ID id) -> decltype(ctx.arg(id)) {
|
3789
|
+
auto arg = ctx.arg(id);
|
3790
|
+
if (!arg) report_error("argument not found");
|
3791
|
+
return arg;
|
3792
|
+
}
|
3793
|
+
|
3794
|
+
template <typename Handler, typename Context>
|
3795
|
+
FMT_CONSTEXPR void handle_dynamic_spec(int& value,
|
3796
|
+
arg_ref<typename Context::char_type> ref,
|
3797
|
+
Context& ctx) {
|
3798
|
+
switch (ref.kind) {
|
3799
|
+
case arg_id_kind::none:
|
3800
|
+
break;
|
3801
|
+
case arg_id_kind::index:
|
3802
|
+
value = detail::get_dynamic_spec<Handler>(get_arg(ctx, ref.val.index));
|
3803
|
+
break;
|
3804
|
+
case arg_id_kind::name:
|
3805
|
+
value = detail::get_dynamic_spec<Handler>(get_arg(ctx, ref.val.name));
|
3806
|
+
break;
|
3807
|
+
}
|
3808
|
+
}
|
3809
|
+
|
3810
|
+
#if FMT_USE_USER_DEFINED_LITERALS
|
3811
|
+
# if FMT_USE_NONTYPE_TEMPLATE_ARGS
|
3812
|
+
template <typename T, typename Char, size_t N,
|
3813
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
3814
|
+
struct statically_named_arg : view {
|
3815
|
+
static constexpr auto name = Str.data;
|
3816
|
+
|
3817
|
+
const T& value;
|
3818
|
+
statically_named_arg(const T& v) : value(v) {}
|
3819
|
+
};
|
3820
|
+
|
3821
|
+
template <typename T, typename Char, size_t N,
|
3822
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
3823
|
+
struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {};
|
3824
|
+
|
3825
|
+
template <typename T, typename Char, size_t N,
|
3826
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
3827
|
+
struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>>
|
3828
|
+
: std::true_type {};
|
3829
|
+
|
3830
|
+
template <typename Char, size_t N,
|
3831
|
+
fmt::detail_exported::fixed_string<Char, N> Str>
|
3832
|
+
struct udl_arg {
|
3833
|
+
template <typename T> auto operator=(T&& value) const {
|
3834
|
+
return statically_named_arg<T, Char, N, Str>(std::forward<T>(value));
|
3835
|
+
}
|
3836
|
+
};
|
3837
|
+
# else
|
3838
|
+
template <typename Char> struct udl_arg {
|
3839
|
+
const Char* str;
|
3840
|
+
|
3841
|
+
template <typename T> auto operator=(T&& value) const -> named_arg<Char, T> {
|
3842
|
+
return {str, std::forward<T>(value)};
|
3843
|
+
}
|
3844
|
+
};
|
3845
|
+
# endif
|
3846
|
+
#endif // FMT_USE_USER_DEFINED_LITERALS
|
3847
|
+
|
3848
|
+
template <typename Locale, typename Char>
|
3849
|
+
auto vformat(const Locale& loc, basic_string_view<Char> fmt,
|
3850
|
+
typename detail::vformat_args<Char>::type args)
|
3851
|
+
-> std::basic_string<Char> {
|
3852
|
+
auto buf = basic_memory_buffer<Char>();
|
3853
|
+
detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
|
3854
|
+
return {buf.data(), buf.size()};
|
3855
|
+
}
|
3856
|
+
|
3857
|
+
using format_func = void (*)(detail::buffer<char>&, int, const char*);
|
3858
|
+
|
3859
|
+
FMT_API void format_error_code(buffer<char>& out, int error_code,
|
3860
|
+
string_view message) noexcept;
|
3861
|
+
|
3862
|
+
using fmt::report_error;
|
3863
|
+
FMT_API void report_error(format_func func, int error_code,
|
3864
|
+
const char* message) noexcept;
|
3865
|
+
} // namespace detail
|
3866
|
+
|
3867
|
+
FMT_BEGIN_EXPORT
|
3868
|
+
FMT_API auto vsystem_error(int error_code, string_view format_str,
|
3869
|
+
format_args args) -> std::system_error;
|
3870
|
+
|
3871
|
+
/**
|
3872
|
+
* Constructs `std::system_error` with a message formatted with
|
3873
|
+
* `fmt::format(fmt, args...)`.
|
3874
|
+
* `error_code` is a system error code as given by `errno`.
|
3875
|
+
*
|
3876
|
+
* **Example**:
|
3877
|
+
*
|
3878
|
+
* // This throws std::system_error with the description
|
3879
|
+
* // cannot open file 'madeup': No such file or directory
|
3880
|
+
* // or similar (system message may vary).
|
3881
|
+
* const char* filename = "madeup";
|
3882
|
+
* std::FILE* file = std::fopen(filename, "r");
|
3883
|
+
* if (!file)
|
3884
|
+
* throw fmt::system_error(errno, "cannot open file '{}'", filename);
|
3885
|
+
*/
|
3886
|
+
template <typename... T>
|
3887
|
+
auto system_error(int error_code, format_string<T...> fmt, T&&... args)
|
3888
|
+
-> std::system_error {
|
3889
|
+
return vsystem_error(error_code, fmt, fmt::make_format_args(args...));
|
3890
|
+
}
|
3891
|
+
|
3892
|
+
/**
|
3893
|
+
* Formats an error message for an error returned by an operating system or a
|
3894
|
+
* language runtime, for example a file opening error, and writes it to `out`.
|
3895
|
+
* The format is the same as the one used by `std::system_error(ec, message)`
|
3896
|
+
* where `ec` is `std::error_code(error_code, std::generic_category())`.
|
3897
|
+
* It is implementation-defined but normally looks like:
|
3898
|
+
*
|
3899
|
+
* <message>: <system-message>
|
3900
|
+
*
|
3901
|
+
* where `<message>` is the passed message and `<system-message>` is the system
|
3902
|
+
* message corresponding to the error code.
|
3903
|
+
* `error_code` is a system error code as given by `errno`.
|
3904
|
+
*/
|
3905
|
+
FMT_API void format_system_error(detail::buffer<char>& out, int error_code,
|
3906
|
+
const char* message) noexcept;
|
3907
|
+
|
3908
|
+
// Reports a system error without throwing an exception.
|
3909
|
+
// Can be used to report errors from destructors.
|
3910
|
+
FMT_API void report_system_error(int error_code, const char* message) noexcept;
|
3911
|
+
|
3912
|
+
/// A fast integer formatter.
|
3913
|
+
class format_int {
|
3914
|
+
private:
|
3915
|
+
// Buffer should be large enough to hold all digits (digits10 + 1),
|
3916
|
+
// a sign and a null character.
|
3917
|
+
enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 };
|
3918
|
+
mutable char buffer_[buffer_size];
|
3919
|
+
char* str_;
|
3920
|
+
|
3921
|
+
template <typename UInt>
|
3922
|
+
FMT_CONSTEXPR20 auto format_unsigned(UInt value) -> char* {
|
3923
|
+
auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value);
|
3924
|
+
return detail::format_decimal(buffer_, n, buffer_size - 1).begin;
|
3925
|
+
}
|
3926
|
+
|
3927
|
+
template <typename Int>
|
3928
|
+
FMT_CONSTEXPR20 auto format_signed(Int value) -> char* {
|
3929
|
+
auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value);
|
3930
|
+
bool negative = value < 0;
|
3931
|
+
if (negative) abs_value = 0 - abs_value;
|
3932
|
+
auto begin = format_unsigned(abs_value);
|
3933
|
+
if (negative) *--begin = '-';
|
3934
|
+
return begin;
|
3935
|
+
}
|
3936
|
+
|
3937
|
+
public:
|
3938
|
+
explicit FMT_CONSTEXPR20 format_int(int value) : str_(format_signed(value)) {}
|
3939
|
+
explicit FMT_CONSTEXPR20 format_int(long value)
|
3940
|
+
: str_(format_signed(value)) {}
|
3941
|
+
explicit FMT_CONSTEXPR20 format_int(long long value)
|
3942
|
+
: str_(format_signed(value)) {}
|
3943
|
+
explicit FMT_CONSTEXPR20 format_int(unsigned value)
|
3944
|
+
: str_(format_unsigned(value)) {}
|
3945
|
+
explicit FMT_CONSTEXPR20 format_int(unsigned long value)
|
3946
|
+
: str_(format_unsigned(value)) {}
|
3947
|
+
explicit FMT_CONSTEXPR20 format_int(unsigned long long value)
|
3948
|
+
: str_(format_unsigned(value)) {}
|
3949
|
+
|
3950
|
+
/// Returns the number of characters written to the output buffer.
|
3951
|
+
FMT_CONSTEXPR20 auto size() const -> size_t {
|
3952
|
+
return detail::to_unsigned(buffer_ - str_ + buffer_size - 1);
|
3953
|
+
}
|
3954
|
+
|
3955
|
+
/// Returns a pointer to the output buffer content. No terminating null
|
3956
|
+
/// character is appended.
|
3957
|
+
FMT_CONSTEXPR20 auto data() const -> const char* { return str_; }
|
3958
|
+
|
3959
|
+
/// Returns a pointer to the output buffer content with terminating null
|
3960
|
+
/// character appended.
|
3961
|
+
FMT_CONSTEXPR20 auto c_str() const -> const char* {
|
3962
|
+
buffer_[buffer_size - 1] = '\0';
|
3963
|
+
return str_;
|
3964
|
+
}
|
3965
|
+
|
3966
|
+
/// Returns the content of the output buffer as an `std::string`.
|
3967
|
+
auto str() const -> std::string { return std::string(str_, size()); }
|
3968
|
+
};
|
3969
|
+
|
3970
|
+
template <typename T, typename Char>
|
3971
|
+
struct formatter<T, Char, enable_if_t<detail::has_format_as<T>::value>>
|
3972
|
+
: formatter<detail::format_as_t<T>, Char> {
|
3973
|
+
template <typename FormatContext>
|
3974
|
+
auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) {
|
3975
|
+
using base = formatter<detail::format_as_t<T>, Char>;
|
3976
|
+
auto&& val = format_as(value); // Make an lvalue reference for format.
|
3977
|
+
return base::format(val, ctx);
|
3978
|
+
}
|
3979
|
+
};
|
3980
|
+
|
3981
|
+
#define FMT_FORMAT_AS(Type, Base) \
|
3982
|
+
template <typename Char> \
|
3983
|
+
struct formatter<Type, Char> : formatter<Base, Char> {}
|
3984
|
+
|
3985
|
+
FMT_FORMAT_AS(signed char, int);
|
3986
|
+
FMT_FORMAT_AS(unsigned char, unsigned);
|
3987
|
+
FMT_FORMAT_AS(short, int);
|
3988
|
+
FMT_FORMAT_AS(unsigned short, unsigned);
|
3989
|
+
FMT_FORMAT_AS(long, detail::long_type);
|
3990
|
+
FMT_FORMAT_AS(unsigned long, detail::ulong_type);
|
3991
|
+
FMT_FORMAT_AS(Char*, const Char*);
|
3992
|
+
FMT_FORMAT_AS(std::nullptr_t, const void*);
|
3993
|
+
FMT_FORMAT_AS(detail::std_string_view<Char>, basic_string_view<Char>);
|
3994
|
+
FMT_FORMAT_AS(void*, const void*);
|
3995
|
+
|
3996
|
+
template <typename Char, typename Traits, typename Allocator>
|
3997
|
+
class formatter<std::basic_string<Char, Traits, Allocator>, Char>
|
3998
|
+
: public formatter<basic_string_view<Char>, Char> {};
|
3999
|
+
|
4000
|
+
template <typename Char, size_t N>
|
4001
|
+
struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {};
|
4002
|
+
|
4003
|
+
/**
|
4004
|
+
* Converts `p` to `const void*` for pointer formatting.
|
4005
|
+
*
|
4006
|
+
* **Example**:
|
4007
|
+
*
|
4008
|
+
* auto s = fmt::format("{}", fmt::ptr(p));
|
4009
|
+
*/
|
4010
|
+
template <typename T> auto ptr(T p) -> const void* {
|
4011
|
+
static_assert(std::is_pointer<T>::value, "");
|
4012
|
+
return detail::bit_cast<const void*>(p);
|
4013
|
+
}
|
4014
|
+
|
4015
|
+
/**
|
4016
|
+
* Converts `e` to the underlying type.
|
4017
|
+
*
|
4018
|
+
* **Example**:
|
4019
|
+
*
|
4020
|
+
* enum class color { red, green, blue };
|
4021
|
+
* auto s = fmt::format("{}", fmt::underlying(color::red));
|
4022
|
+
*/
|
4023
|
+
template <typename Enum>
|
4024
|
+
constexpr auto underlying(Enum e) noexcept -> underlying_t<Enum> {
|
4025
|
+
return static_cast<underlying_t<Enum>>(e);
|
4026
|
+
}
|
4027
|
+
|
4028
|
+
namespace enums {
|
4029
|
+
template <typename Enum, FMT_ENABLE_IF(std::is_enum<Enum>::value)>
|
4030
|
+
constexpr auto format_as(Enum e) noexcept -> underlying_t<Enum> {
|
4031
|
+
return static_cast<underlying_t<Enum>>(e);
|
4032
|
+
}
|
4033
|
+
} // namespace enums
|
4034
|
+
|
4035
|
+
class bytes {
|
4036
|
+
private:
|
4037
|
+
string_view data_;
|
4038
|
+
friend struct formatter<bytes>;
|
4039
|
+
|
4040
|
+
public:
|
4041
|
+
explicit bytes(string_view data) : data_(data) {}
|
4042
|
+
};
|
4043
|
+
|
4044
|
+
template <> struct formatter<bytes> {
|
4045
|
+
private:
|
4046
|
+
detail::dynamic_format_specs<> specs_;
|
4047
|
+
|
4048
|
+
public:
|
4049
|
+
template <typename ParseContext>
|
4050
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> const char* {
|
4051
|
+
return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx,
|
4052
|
+
detail::type::string_type);
|
4053
|
+
}
|
4054
|
+
|
4055
|
+
template <typename FormatContext>
|
4056
|
+
auto format(bytes b, FormatContext& ctx) const -> decltype(ctx.out()) {
|
4057
|
+
auto specs = specs_;
|
4058
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs.width,
|
4059
|
+
specs.width_ref, ctx);
|
4060
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
4061
|
+
specs.precision, specs.precision_ref, ctx);
|
4062
|
+
return detail::write_bytes<char>(ctx.out(), b.data_, specs);
|
4063
|
+
}
|
4064
|
+
};
|
4065
|
+
|
4066
|
+
// group_digits_view is not derived from view because it copies the argument.
|
4067
|
+
template <typename T> struct group_digits_view {
|
4068
|
+
T value;
|
4069
|
+
};
|
4070
|
+
|
4071
|
+
/**
|
4072
|
+
* Returns a view that formats an integer value using ',' as a
|
4073
|
+
* locale-independent thousands separator.
|
4074
|
+
*
|
4075
|
+
* **Example**:
|
4076
|
+
*
|
4077
|
+
* fmt::print("{}", fmt::group_digits(12345));
|
4078
|
+
* // Output: "12,345"
|
4079
|
+
*/
|
4080
|
+
template <typename T> auto group_digits(T value) -> group_digits_view<T> {
|
4081
|
+
return {value};
|
4082
|
+
}
|
4083
|
+
|
4084
|
+
template <typename T> struct formatter<group_digits_view<T>> : formatter<T> {
|
4085
|
+
private:
|
4086
|
+
detail::dynamic_format_specs<> specs_;
|
4087
|
+
|
4088
|
+
public:
|
4089
|
+
template <typename ParseContext>
|
4090
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> const char* {
|
4091
|
+
return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx,
|
4092
|
+
detail::type::int_type);
|
4093
|
+
}
|
4094
|
+
|
4095
|
+
template <typename FormatContext>
|
4096
|
+
auto format(group_digits_view<T> t, FormatContext& ctx) const
|
4097
|
+
-> decltype(ctx.out()) {
|
4098
|
+
auto specs = specs_;
|
4099
|
+
detail::handle_dynamic_spec<detail::width_checker>(specs.width,
|
4100
|
+
specs.width_ref, ctx);
|
4101
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
4102
|
+
specs.precision, specs.precision_ref, ctx);
|
4103
|
+
auto arg = detail::make_write_int_arg(t.value, specs.sign);
|
4104
|
+
return detail::write_int(
|
4105
|
+
ctx.out(), static_cast<detail::uint64_or_128_t<T>>(arg.abs_value),
|
4106
|
+
arg.prefix, specs, detail::digit_grouping<char>("\3", ","));
|
4107
|
+
}
|
4108
|
+
};
|
4109
|
+
|
4110
|
+
template <typename T, typename Char> struct nested_view {
|
4111
|
+
const formatter<T, Char>* fmt;
|
4112
|
+
const T* value;
|
4113
|
+
};
|
4114
|
+
|
4115
|
+
template <typename T, typename Char>
|
4116
|
+
struct formatter<nested_view<T, Char>, Char> {
|
4117
|
+
template <typename ParseContext>
|
4118
|
+
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
|
4119
|
+
return ctx.begin();
|
4120
|
+
}
|
4121
|
+
template <typename FormatContext>
|
4122
|
+
auto format(nested_view<T, Char> view, FormatContext& ctx) const
|
4123
|
+
-> decltype(ctx.out()) {
|
4124
|
+
return view.fmt->format(*view.value, ctx);
|
4125
|
+
}
|
4126
|
+
};
|
4127
|
+
|
4128
|
+
template <typename T, typename Char = char> struct nested_formatter {
|
4129
|
+
private:
|
4130
|
+
int width_;
|
4131
|
+
detail::fill_t fill_;
|
4132
|
+
align_t align_ : 4;
|
4133
|
+
formatter<T, Char> formatter_;
|
4134
|
+
|
4135
|
+
public:
|
4136
|
+
constexpr nested_formatter() : width_(0), align_(align_t::none) {}
|
4137
|
+
|
4138
|
+
FMT_CONSTEXPR auto parse(basic_format_parse_context<Char>& ctx)
|
4139
|
+
-> decltype(ctx.begin()) {
|
4140
|
+
auto specs = detail::dynamic_format_specs<Char>();
|
4141
|
+
auto it = parse_format_specs(ctx.begin(), ctx.end(), specs, ctx,
|
4142
|
+
detail::type::none_type);
|
4143
|
+
width_ = specs.width;
|
4144
|
+
fill_ = specs.fill;
|
4145
|
+
align_ = specs.align;
|
4146
|
+
ctx.advance_to(it);
|
4147
|
+
return formatter_.parse(ctx);
|
4148
|
+
}
|
4149
|
+
|
4150
|
+
template <typename FormatContext, typename F>
|
4151
|
+
auto write_padded(FormatContext& ctx, F write) const -> decltype(ctx.out()) {
|
4152
|
+
if (width_ == 0) return write(ctx.out());
|
4153
|
+
auto buf = basic_memory_buffer<Char>();
|
4154
|
+
write(basic_appender<Char>(buf));
|
4155
|
+
auto specs = format_specs();
|
4156
|
+
specs.width = width_;
|
4157
|
+
specs.fill = fill_;
|
4158
|
+
specs.align = align_;
|
4159
|
+
return detail::write<Char>(
|
4160
|
+
ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs);
|
4161
|
+
}
|
4162
|
+
|
4163
|
+
auto nested(const T& value) const -> nested_view<T, Char> {
|
4164
|
+
return nested_view<T, Char>{&formatter_, &value};
|
4165
|
+
}
|
4166
|
+
};
|
4167
|
+
|
4168
|
+
/**
|
4169
|
+
* Converts `value` to `std::string` using the default format for type `T`.
|
4170
|
+
*
|
4171
|
+
* **Example**:
|
4172
|
+
*
|
4173
|
+
* std::string answer = fmt::to_string(42);
|
4174
|
+
*/
|
4175
|
+
template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value &&
|
4176
|
+
!detail::has_format_as<T>::value)>
|
4177
|
+
inline auto to_string(const T& value) -> std::string {
|
4178
|
+
auto buffer = memory_buffer();
|
4179
|
+
detail::write<char>(appender(buffer), value);
|
4180
|
+
return {buffer.data(), buffer.size()};
|
4181
|
+
}
|
4182
|
+
|
4183
|
+
template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
|
4184
|
+
FMT_NODISCARD inline auto to_string(T value) -> std::string {
|
4185
|
+
// The buffer should be large enough to store the number including the sign
|
4186
|
+
// or "false" for bool.
|
4187
|
+
constexpr int max_size = detail::digits10<T>() + 2;
|
4188
|
+
char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5];
|
4189
|
+
char* begin = buffer;
|
4190
|
+
return std::string(begin, detail::write<char>(begin, value));
|
4191
|
+
}
|
4192
|
+
|
4193
|
+
template <typename Char, size_t SIZE>
|
4194
|
+
FMT_NODISCARD auto to_string(const basic_memory_buffer<Char, SIZE>& buf)
|
4195
|
+
-> std::basic_string<Char> {
|
4196
|
+
auto size = buf.size();
|
4197
|
+
detail::assume(size < std::basic_string<Char>().max_size());
|
4198
|
+
return std::basic_string<Char>(buf.data(), size);
|
4199
|
+
}
|
4200
|
+
|
4201
|
+
template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value &&
|
4202
|
+
detail::has_format_as<T>::value)>
|
4203
|
+
inline auto to_string(const T& value) -> std::string {
|
4204
|
+
return to_string(format_as(value));
|
4205
|
+
}
|
4206
|
+
|
4207
|
+
FMT_END_EXPORT
|
4208
|
+
|
4209
|
+
namespace detail {
|
4210
|
+
|
4211
|
+
template <typename Char>
|
4212
|
+
void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
|
4213
|
+
typename vformat_args<Char>::type args, locale_ref loc) {
|
4214
|
+
auto out = basic_appender<Char>(buf);
|
4215
|
+
if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
|
4216
|
+
auto arg = args.get(0);
|
4217
|
+
if (!arg) report_error("argument not found");
|
4218
|
+
arg.visit(default_arg_formatter<Char>{out, args, loc});
|
4219
|
+
return;
|
4220
|
+
}
|
4221
|
+
|
4222
|
+
struct format_handler {
|
4223
|
+
basic_format_parse_context<Char> parse_context;
|
4224
|
+
buffered_context<Char> context;
|
4225
|
+
|
4226
|
+
format_handler(basic_appender<Char> p_out, basic_string_view<Char> str,
|
4227
|
+
basic_format_args<buffered_context<Char>> p_args,
|
4228
|
+
locale_ref p_loc)
|
4229
|
+
: parse_context(str), context(p_out, p_args, p_loc) {}
|
4230
|
+
|
4231
|
+
void on_text(const Char* begin, const Char* end) {
|
4232
|
+
auto text = basic_string_view<Char>(begin, to_unsigned(end - begin));
|
4233
|
+
context.advance_to(write<Char>(context.out(), text));
|
4234
|
+
}
|
4235
|
+
|
4236
|
+
FMT_CONSTEXPR auto on_arg_id() -> int {
|
4237
|
+
return parse_context.next_arg_id();
|
4238
|
+
}
|
4239
|
+
FMT_CONSTEXPR auto on_arg_id(int id) -> int {
|
4240
|
+
parse_context.check_arg_id(id);
|
4241
|
+
return id;
|
4242
|
+
}
|
4243
|
+
FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int {
|
4244
|
+
parse_context.check_arg_id(id);
|
4245
|
+
int arg_id = context.arg_id(id);
|
4246
|
+
if (arg_id < 0) report_error("argument not found");
|
4247
|
+
return arg_id;
|
4248
|
+
}
|
4249
|
+
|
4250
|
+
FMT_INLINE void on_replacement_field(int id, const Char*) {
|
4251
|
+
auto arg = get_arg(context, id);
|
4252
|
+
context.advance_to(arg.visit(default_arg_formatter<Char>{
|
4253
|
+
context.out(), context.args(), context.locale()}));
|
4254
|
+
}
|
4255
|
+
|
4256
|
+
auto on_format_specs(int id, const Char* begin, const Char* end)
|
4257
|
+
-> const Char* {
|
4258
|
+
auto arg = get_arg(context, id);
|
4259
|
+
// Not using a visitor for custom types gives better codegen.
|
4260
|
+
if (arg.format_custom(begin, parse_context, context))
|
4261
|
+
return parse_context.begin();
|
4262
|
+
auto specs = detail::dynamic_format_specs<Char>();
|
4263
|
+
begin = parse_format_specs(begin, end, specs, parse_context, arg.type());
|
4264
|
+
detail::handle_dynamic_spec<detail::width_checker>(
|
4265
|
+
specs.width, specs.width_ref, context);
|
4266
|
+
detail::handle_dynamic_spec<detail::precision_checker>(
|
4267
|
+
specs.precision, specs.precision_ref, context);
|
4268
|
+
if (begin == end || *begin != '}')
|
4269
|
+
report_error("missing '}' in format string");
|
4270
|
+
context.advance_to(arg.visit(
|
4271
|
+
arg_formatter<Char>{context.out(), specs, context.locale()}));
|
4272
|
+
return begin;
|
4273
|
+
}
|
4274
|
+
|
4275
|
+
FMT_NORETURN void on_error(const char* message) { report_error(message); }
|
4276
|
+
};
|
4277
|
+
detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc));
|
4278
|
+
}
|
4279
|
+
|
4280
|
+
FMT_BEGIN_EXPORT
|
4281
|
+
|
4282
|
+
#ifndef FMT_HEADER_ONLY
|
4283
|
+
extern template FMT_API void vformat_to(buffer<char>&, string_view,
|
4284
|
+
typename vformat_args<>::type,
|
4285
|
+
locale_ref);
|
4286
|
+
extern template FMT_API auto thousands_sep_impl<char>(locale_ref)
|
4287
|
+
-> thousands_sep_result<char>;
|
4288
|
+
extern template FMT_API auto thousands_sep_impl<wchar_t>(locale_ref)
|
4289
|
+
-> thousands_sep_result<wchar_t>;
|
4290
|
+
extern template FMT_API auto decimal_point_impl(locale_ref) -> char;
|
4291
|
+
extern template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
|
4292
|
+
#endif // FMT_HEADER_ONLY
|
4293
|
+
|
4294
|
+
FMT_END_EXPORT
|
4295
|
+
|
4296
|
+
template <typename T, typename Char, type TYPE>
|
4297
|
+
template <typename FormatContext>
|
4298
|
+
FMT_CONSTEXPR FMT_INLINE auto native_formatter<T, Char, TYPE>::format(
|
4299
|
+
const T& val, FormatContext& ctx) const -> decltype(ctx.out()) {
|
4300
|
+
if (specs_.width_ref.kind == arg_id_kind::none &&
|
4301
|
+
specs_.precision_ref.kind == arg_id_kind::none) {
|
4302
|
+
return write<Char>(ctx.out(), val, specs_, ctx.locale());
|
4303
|
+
}
|
4304
|
+
auto specs = specs_;
|
4305
|
+
handle_dynamic_spec<width_checker>(specs.width, specs.width_ref, ctx);
|
4306
|
+
handle_dynamic_spec<precision_checker>(specs.precision, specs.precision_ref,
|
4307
|
+
ctx);
|
4308
|
+
return write<Char>(ctx.out(), val, specs, ctx.locale());
|
4309
|
+
}
|
4310
|
+
|
4311
|
+
} // namespace detail
|
4312
|
+
|
4313
|
+
FMT_BEGIN_EXPORT
|
4314
|
+
|
4315
|
+
template <typename Char>
|
4316
|
+
struct formatter<detail::float128, Char>
|
4317
|
+
: detail::native_formatter<detail::float128, Char,
|
4318
|
+
detail::type::float_type> {};
|
4319
|
+
|
4320
|
+
#if FMT_USE_USER_DEFINED_LITERALS
|
4321
|
+
inline namespace literals {
|
4322
|
+
/**
|
4323
|
+
* User-defined literal equivalent of `fmt::arg`.
|
4324
|
+
*
|
4325
|
+
* **Example**:
|
4326
|
+
*
|
4327
|
+
* using namespace fmt::literals;
|
4328
|
+
* fmt::print("The answer is {answer}.", "answer"_a=42);
|
4329
|
+
*/
|
4330
|
+
# if FMT_USE_NONTYPE_TEMPLATE_ARGS
|
4331
|
+
template <detail_exported::fixed_string Str> constexpr auto operator""_a() {
|
4332
|
+
using char_t = remove_cvref_t<decltype(Str.data[0])>;
|
4333
|
+
return detail::udl_arg<char_t, sizeof(Str.data) / sizeof(char_t), Str>();
|
4334
|
+
}
|
4335
|
+
# else
|
4336
|
+
constexpr auto operator""_a(const char* s, size_t) -> detail::udl_arg<char> {
|
4337
|
+
return {s};
|
4338
|
+
}
|
4339
|
+
# endif
|
4340
|
+
} // namespace literals
|
4341
|
+
#endif // FMT_USE_USER_DEFINED_LITERALS
|
4342
|
+
|
4343
|
+
FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
|
4344
|
+
|
4345
|
+
/**
|
4346
|
+
* Formats `args` according to specifications in `fmt` and returns the result
|
4347
|
+
* as a string.
|
4348
|
+
*
|
4349
|
+
* **Example**:
|
4350
|
+
*
|
4351
|
+
* #include <fmt/format.h>
|
4352
|
+
* std::string message = fmt::format("The answer is {}.", 42);
|
4353
|
+
*/
|
4354
|
+
template <typename... T>
|
4355
|
+
FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
|
4356
|
+
-> std::string {
|
4357
|
+
return vformat(fmt, fmt::make_format_args(args...));
|
4358
|
+
}
|
4359
|
+
|
4360
|
+
template <typename Locale, FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
|
4361
|
+
inline auto vformat(const Locale& loc, string_view fmt, format_args args)
|
4362
|
+
-> std::string {
|
4363
|
+
return detail::vformat(loc, fmt, args);
|
4364
|
+
}
|
4365
|
+
|
4366
|
+
template <typename Locale, typename... T,
|
4367
|
+
FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
|
4368
|
+
inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
|
4369
|
+
-> std::string {
|
4370
|
+
return fmt::vformat(loc, string_view(fmt), fmt::make_format_args(args...));
|
4371
|
+
}
|
4372
|
+
|
4373
|
+
template <typename OutputIt, typename Locale,
|
4374
|
+
FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
|
4375
|
+
detail::is_locale<Locale>::value)>
|
4376
|
+
auto vformat_to(OutputIt out, const Locale& loc, string_view fmt,
|
4377
|
+
format_args args) -> OutputIt {
|
4378
|
+
using detail::get_buffer;
|
4379
|
+
auto&& buf = get_buffer<char>(out);
|
4380
|
+
detail::vformat_to(buf, fmt, args, detail::locale_ref(loc));
|
4381
|
+
return detail::get_iterator(buf, out);
|
4382
|
+
}
|
4383
|
+
|
4384
|
+
template <typename OutputIt, typename Locale, typename... T,
|
4385
|
+
FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, char>::value&&
|
4386
|
+
detail::is_locale<Locale>::value)>
|
4387
|
+
FMT_INLINE auto format_to(OutputIt out, const Locale& loc,
|
4388
|
+
format_string<T...> fmt, T&&... args) -> OutputIt {
|
4389
|
+
return vformat_to(out, loc, fmt, fmt::make_format_args(args...));
|
4390
|
+
}
|
4391
|
+
|
4392
|
+
template <typename Locale, typename... T,
|
4393
|
+
FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
|
4394
|
+
FMT_NODISCARD FMT_INLINE auto formatted_size(const Locale& loc,
|
4395
|
+
format_string<T...> fmt,
|
4396
|
+
T&&... args) -> size_t {
|
4397
|
+
auto buf = detail::counting_buffer<>();
|
4398
|
+
detail::vformat_to<char>(buf, fmt, fmt::make_format_args(args...),
|
4399
|
+
detail::locale_ref(loc));
|
4400
|
+
return buf.count();
|
4401
|
+
}
|
4402
|
+
|
4403
|
+
FMT_END_EXPORT
|
4404
|
+
|
4405
|
+
FMT_END_NAMESPACE
|
4406
|
+
|
4407
|
+
#ifdef FMT_HEADER_ONLY
|
4408
|
+
# define FMT_FUNC inline
|
4409
|
+
# include "format-inl.h"
|
4410
|
+
#else
|
4411
|
+
# define FMT_FUNC
|
4412
|
+
#endif
|
4413
|
+
|
4414
|
+
// Restore _LIBCPP_REMOVE_TRANSITIVE_INCLUDES.
|
4415
|
+
#ifdef FMT_REMOVE_TRANSITIVE_INCLUDES
|
4416
|
+
# undef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
|
4417
|
+
#endif
|
4418
|
+
|
4419
|
+
#endif // FMT_FORMAT_H_
|