passenger 6.0.8 → 6.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1364) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +89 -0
  3. data/CONTRIBUTORS +9 -0
  4. data/bin/passenger-install-nginx-module +1 -0
  5. data/build/common_library.rb +1 -1
  6. data/dev/copy_boost_headers +19 -2
  7. data/dev/index_cxx_dependencies.rb +1 -1
  8. data/dev/webpacketpp.patch +39 -0
  9. data/package.json +1 -1
  10. data/src/agent/Core/Config.h +1 -1
  11. data/src/agent/Core/Controller/CheckoutSession.cpp +24 -13
  12. data/src/agent/Core/Controller/Config.h +1 -1
  13. data/src/agent/Core/Controller/InternalUtils.cpp +32 -6
  14. data/src/agent/Core/Controller.h +4 -1
  15. data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
  16. data/src/agent/Watchdog/Config.h +1 -1
  17. data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +27 -27
  18. data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +1 -1
  19. data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +2 -2
  20. data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +19 -19
  21. data/src/cxx_supportlib/Constants.h +1 -1
  22. data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
  23. data/src/cxx_supportlib/FileDescriptor.h +8 -0
  24. data/src/cxx_supportlib/IOTools/IOUtils.cpp +4 -4
  25. data/src/cxx_supportlib/StaticString.h +2 -0
  26. data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
  27. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +3 -0
  28. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +2 -0
  29. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
  30. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +47 -0
  31. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_posix.hpp +41 -0
  32. data/src/cxx_supportlib/vendor-modified/boost/align/detail/is_alignment.hpp +28 -0
  33. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +240 -11
  34. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +54 -2
  35. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +179 -0
  36. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +62 -6
  37. data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +37 -0
  38. data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +798 -115
  39. data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +2 -2
  40. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +101 -13
  41. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +23 -13
  42. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +1 -1
  43. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +101 -13
  44. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +50 -13
  45. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +18 -18
  46. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +29 -21
  47. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +42 -21
  48. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +148 -51
  49. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +1 -1
  50. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +1 -1
  51. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +80 -13
  52. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +1 -1
  53. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +1 -1
  54. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +26 -16
  55. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +723 -0
  56. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +196 -17
  57. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +25 -25
  58. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +1 -1
  59. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
  60. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +1 -1
  61. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
  62. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +1 -1
  63. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
  64. data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +1 -1
  65. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +361 -0
  66. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +237 -0
  67. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +176 -0
  68. data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +43 -15
  69. data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
  70. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +1 -1
  71. data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +79 -19
  72. data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +1 -1
  73. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
  74. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +5 -5
  75. data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +3 -3
  76. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +1 -1
  77. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +1 -1
  78. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
  79. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +1 -1
  80. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +165 -0
  81. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +1 -1
  82. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +210 -73
  83. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +1 -1
  84. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
  85. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +1 -1
  86. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
  87. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +1 -1
  88. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
  89. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +1 -1
  90. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
  91. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +1 -1
  92. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
  93. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +1 -1
  94. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  95. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +201 -69
  96. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +1 -1
  97. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -1
  98. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +1 -1
  99. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
  100. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +41 -1
  101. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
  102. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +1 -1
  103. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +1 -1
  104. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +1 -1
  105. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +9 -5
  106. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +15 -5
  107. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +1 -1
  108. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +1 -1
  109. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +3 -2
  110. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +1 -1
  111. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
  112. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +1 -1
  113. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +7 -1
  114. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +1 -1
  115. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  116. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  117. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  118. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +1 -1
  119. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +1 -1
  120. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +16 -12
  121. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
  122. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +1 -1
  123. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +1 -1
  124. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +22 -19
  125. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +112 -25
  126. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
  127. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  128. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +1 -1
  129. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +9 -1
  130. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +15 -1
  131. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +21 -1
  132. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +31 -1
  133. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +10 -8
  134. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +1 -1
  135. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +21 -1
  136. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +30 -1
  137. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
  138. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
  139. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
  140. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
  141. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
  142. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  143. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +1 -1
  144. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_serial_port_service.ipp +1 -1
  145. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +1 -1
  146. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +1 -1
  147. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +6 -1
  148. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +25 -1
  149. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +20 -1
  150. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +1 -1
  151. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
  152. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +1 -1
  153. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +13 -11
  154. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +1 -1
  155. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +10 -41
  156. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
  157. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +3 -33
  158. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +29 -5
  159. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
  160. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +1 -1
  161. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +7 -1
  162. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
  163. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
  164. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +4 -7
  165. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +1 -1
  166. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
  167. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
  168. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +16 -6
  169. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
  170. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +1 -1
  171. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +61 -1
  172. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +1 -1
  173. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +1 -1
  174. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
  175. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +1 -1
  176. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
  177. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
  178. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -1
  179. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +1 -1
  180. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
  181. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +1 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
  183. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
  184. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
  185. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
  186. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +1 -1
  187. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
  188. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
  189. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +1 -1
  190. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +9 -1
  191. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +1 -1
  192. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
  193. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
  194. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
  195. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
  196. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
  197. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
  198. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
  199. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +34 -1
  200. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +94 -1
  201. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +1 -1
  202. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_serial_port_service.hpp +1 -1
  203. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +1 -1
  204. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +1 -1
  205. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +1 -1
  206. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +1 -1
  207. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +1 -1
  208. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +1 -1
  209. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +1 -1
  210. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +78 -1
  211. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +112 -1
  212. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +1 -1
  213. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +1 -1
  214. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +1 -1
  215. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +5 -1
  216. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +45 -1
  217. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +4 -5
  218. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +11 -2
  219. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +3 -3
  220. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +3 -3
  222. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +7 -7
  223. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +16 -1
  224. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +2 -5
  225. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
  226. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
  227. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
  228. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
  229. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
  230. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +15 -5
  231. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +1 -1
  232. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
  233. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +1 -1
  234. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
  235. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +1 -1
  236. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +1 -1
  237. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
  238. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +1 -1
  239. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
  240. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +1 -1
  241. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +2 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +1 -1
  243. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +1 -1
  244. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +1 -1
  245. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +2 -2
  246. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -1
  247. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -1
  249. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -1
  250. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -1
  251. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +8 -1
  252. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +4 -5
  253. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
  254. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +5 -5
  255. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
  256. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +5 -1
  257. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +98 -25
  258. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +1 -1
  259. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +1 -1
  260. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +31 -2
  261. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
  262. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +5 -1
  263. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
  264. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +1 -1
  265. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +1 -1
  266. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
  267. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +9 -1
  268. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +1 -1
  269. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +1 -1
  270. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +6 -2
  271. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +1 -1
  272. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +6 -3
  273. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +1 -1
  274. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +5 -5
  275. data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +1 -1
  276. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +107 -19
  277. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +194 -112
  278. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +1 -1
  279. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +283 -83
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +218 -70
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +57 -50
  282. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +287 -90
  283. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +47 -44
  284. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +62 -14
  285. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +29 -9
  286. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +1 -1
  287. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +1 -1
  288. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +1 -1
  289. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +1 -1
  290. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +1 -1
  291. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +1 -1
  292. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +71 -52
  293. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +39 -25
  294. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +1 -1
  295. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +1 -1
  296. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +1 -1
  297. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +281 -82
  298. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +62 -14
  299. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +1 -1
  300. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +216 -70
  301. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +7 -3
  302. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +1 -1
  303. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +1 -1
  304. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +215 -70
  305. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +21 -24
  306. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +1 -1
  307. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +1 -1
  308. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +14 -17
  309. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +14 -17
  310. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +20 -23
  311. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +14 -17
  312. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +29 -29
  313. data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +1 -1
  314. data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +1 -1
  315. data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +1 -1
  316. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +34 -19
  317. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +73 -0
  318. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +137 -0
  319. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +133 -0
  320. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +538 -0
  321. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +157 -0
  322. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +1057 -0
  323. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +607 -0
  324. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +160 -0
  325. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +120 -0
  326. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_traits.hpp +185 -0
  327. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +181 -0
  328. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/append.hpp +219 -0
  329. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +231 -0
  330. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_tuple.hpp +248 -0
  331. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/deferred.hpp +106 -0
  332. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +434 -0
  333. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/prepend.hpp +219 -0
  334. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +100 -0
  335. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +217 -0
  336. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +73 -0
  337. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +608 -0
  338. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +284 -0
  339. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +1 -1
  340. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +1 -1
  341. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
  342. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
  343. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +1 -1
  344. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +1 -1
  345. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +1 -1
  346. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +1 -1
  347. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
  348. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +1 -1
  349. data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -1
  350. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +348 -24
  351. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +24 -53
  352. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +24 -53
  353. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +79 -31
  354. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +59 -7
  355. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +87 -99
  356. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +21 -13
  357. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +1 -1
  358. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -13
  359. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +1 -1
  360. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +1 -1
  361. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
  362. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +1 -2
  363. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +1 -1
  364. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +6 -5
  365. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +6 -2
  366. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +1 -1
  367. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +1 -1
  368. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +21 -13
  369. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +154 -157
  370. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +73 -84
  371. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +316 -336
  372. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +249 -30
  373. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
  374. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
  375. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +18 -27
  376. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +2 -1
  377. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +1 -1
  378. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +1 -1
  379. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +1 -2
  380. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +6 -2
  381. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +1 -1
  382. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +29 -17
  383. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +1 -1
  384. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +127 -131
  385. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +48 -70
  386. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +21 -1
  387. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +1 -1
  388. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
  389. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
  390. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +23 -1
  391. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +21 -1
  392. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +1 -1
  393. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +1 -1
  394. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +47 -6
  395. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +1 -1
  396. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +1 -1
  397. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +1 -1
  398. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +32 -5
  399. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +51 -5
  400. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
  401. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +1 -1
  402. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +1 -1
  403. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +1 -1
  404. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +1 -1
  405. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +1 -1
  406. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
  407. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
  408. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +1 -1
  409. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
  410. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +1 -1
  411. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
  412. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +1 -1
  413. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
  414. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +2 -2
  415. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
  416. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
  417. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
  418. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +1 -1
  419. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
  420. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +1 -1
  421. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +1 -1
  422. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +1 -1
  423. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +1 -1
  424. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
  425. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
  426. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +1 -1
  427. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +1 -1
  428. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +1 -1
  429. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +1 -1
  430. data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +1 -1
  431. data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
  432. data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
  433. data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
  434. data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +1 -1
  435. data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +1 -1
  436. data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +1 -1
  437. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +1 -1
  438. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +3 -8
  439. data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +1 -1
  440. data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +1 -1
  441. data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -1
  442. data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +1 -1
  443. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +21 -10
  444. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +40 -9
  445. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +1 -1
  446. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +1 -1
  447. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +1 -1
  448. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +5 -5
  449. data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +243 -165
  450. data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +85 -57
  451. data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +143 -43
  452. data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +45 -1
  453. data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +238 -70
  454. data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +1 -1
  455. data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +147 -100
  456. data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +105 -63
  457. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +1 -1
  458. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
  459. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +1 -1
  460. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +1 -1
  461. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +7 -7
  462. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +1 -1
  463. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +1 -1
  464. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +2 -2
  465. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +6 -1
  466. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +2 -2
  467. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +15 -1
  468. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +1 -1
  469. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +37 -27
  470. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
  471. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +1 -1
  472. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
  473. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +2 -2
  474. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +3 -3
  475. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +38 -1
  476. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +1 -1
  477. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +2 -2
  478. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +1 -1
  479. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +1 -1
  480. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
  481. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +15 -8
  482. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +1 -1
  483. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +1 -1
  484. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +1 -1
  485. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +1 -1
  486. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +1 -1
  487. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +74 -2
  488. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
  489. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
  490. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
  491. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +1 -1
  492. data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +1 -1
  493. data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -1
  494. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +55 -23
  495. data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
  496. data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +1 -1
  497. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +23 -1
  498. data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -1
  499. data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +236 -1
  500. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +21 -1
  501. data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
  502. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +1 -1
  503. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +1 -1
  504. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +1 -1
  505. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +1 -1
  506. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +7 -3
  507. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +1 -1
  508. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +1 -1
  509. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +1 -1
  510. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +1 -1
  511. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +1 -1
  512. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +1 -1
  513. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +1 -1
  514. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +1 -1
  515. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +1 -1
  516. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +1 -1
  517. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +1 -1
  518. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +1 -1
  519. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +1 -1
  520. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +1 -1
  521. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +1 -1
  522. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +1 -1
  523. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +1 -1
  524. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +1 -1
  525. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +1 -1
  526. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +1 -1
  527. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +1 -1
  528. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +1 -1
  529. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +1 -1
  530. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +3 -2
  531. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +1 -1
  532. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +1 -1
  533. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
  534. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +1 -1
  535. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
  536. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
  537. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
  538. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +3 -11
  539. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
  540. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
  541. data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
  542. data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +10 -13
  543. data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +1 -1
  544. data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +1 -1
  545. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
  546. data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
  547. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +10 -10
  548. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +10 -10
  549. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +26 -6
  550. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +26 -6
  551. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +1 -1
  552. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +1 -1
  553. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +9 -9
  554. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +1 -1
  555. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +1 -1
  556. data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +143 -43
  557. data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +45 -1
  558. data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
  559. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +7 -1
  560. data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +6 -0
  561. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +14 -1
  562. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/config.hpp +17 -13
  563. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +6 -6
  564. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_arm.hpp +4 -4
  565. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +32 -32
  566. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +15 -15
  567. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
  568. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +14 -1
  569. data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +13 -0
  570. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +3 -23
  571. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +18 -18
  572. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +154 -0
  573. data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +12 -0
  574. data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +52 -8
  575. data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +39 -0
  576. data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
  577. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +6 -6
  578. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +2 -2
  579. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +1 -1
  580. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +21 -0
  581. data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +7 -0
  582. data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +1 -1
  583. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +211 -0
  584. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +212 -0
  585. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
  586. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +59 -0
  587. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +56 -0
  588. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
  589. data/src/cxx_supportlib/vendor-modified/boost/config/auto_link.hpp +1 -5
  590. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +31 -11
  591. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +1 -1
  592. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +11 -0
  593. data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +202 -0
  594. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_platform_config.hpp +5 -0
  595. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +118 -2
  596. data/src/cxx_supportlib/vendor-modified/boost/config/platform/bsd.hpp +5 -8
  597. data/src/cxx_supportlib/vendor-modified/boost/config/platform/wasm.hpp +17 -0
  598. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +37 -4
  599. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +70 -1
  600. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +91 -5
  601. data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +10 -2
  602. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +11 -8
  603. data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +9 -0
  604. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +6 -0
  605. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +123 -71
  606. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool.hpp +2 -2
  607. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +4 -3
  608. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +117 -45
  609. data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
  610. data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +1 -0
  611. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +0 -3
  612. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +3 -3
  613. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +142 -36
  614. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +100 -31
  615. data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +24 -24
  616. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +141 -90
  617. data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
  618. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +10 -0
  619. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
  620. data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +12 -8
  621. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +4 -15
  622. data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +22 -1
  623. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool.hpp +2 -2
  624. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
  625. data/src/cxx_supportlib/vendor-modified/boost/container/detail/std_fwd.hpp +3 -0
  626. data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +126 -92
  627. data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +2 -0
  628. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +4 -14
  629. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +30 -0
  630. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +3000 -0
  631. data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +237 -169
  632. data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +10 -28
  633. data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +58 -29
  634. data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +84 -80
  635. data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +1 -1
  636. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
  637. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +41 -0
  638. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
  639. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +1 -1
  640. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +8 -9
  641. data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +21 -35
  642. data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +51 -26
  643. data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +1 -1
  644. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +109 -57
  645. data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +8 -5
  646. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +184 -105
  647. data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +141 -26
  648. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +392 -384
  649. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +1 -3
  650. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +1 -1
  651. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +1 -1
  652. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +102 -134
  653. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +581 -0
  654. data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +199 -0
  655. data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
  656. data/src/cxx_supportlib/vendor-modified/boost/core/ignore_unused.hpp +32 -2
  657. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +42 -0
  658. data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +36 -0
  659. data/src/cxx_supportlib/vendor-modified/boost/core/uncaught_exceptions.hpp +7 -7
  660. data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
  661. data/src/cxx_supportlib/vendor-modified/boost/date_time/compiler_config.hpp +0 -24
  662. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
  663. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_parsers.hpp +4 -0
  664. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
  665. data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +21 -0
  666. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +55 -37
  667. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +2 -1
  668. data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +0 -3
  669. data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +3 -3
  670. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
  671. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +2 -2
  672. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +1 -1
  673. data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +1 -1
  674. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +1 -1
  675. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
  676. data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +1 -1
  677. data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +2 -2
  678. data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +2 -2
  679. data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +2 -2
  680. data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
  681. data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +2 -2
  682. data/src/cxx_supportlib/vendor-modified/boost/intrusive/any_hook.hpp +4 -4
  683. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +83 -83
  684. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +43 -43
  685. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +31 -31
  686. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +85 -85
  687. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +76 -84
  688. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +76 -67
  689. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +19 -20
  690. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +19 -19
  691. data/src/cxx_supportlib/vendor-modified/boost/intrusive/derivation_value_traits.hpp +4 -4
  692. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +2 -2
  693. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +2 -1
  694. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +4 -5
  695. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +5 -5
  696. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/config_begin.hpp +1 -0
  697. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +8 -8
  698. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +92 -0
  699. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +1 -1
  700. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +4 -52
  701. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +1 -1
  702. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +2 -0
  703. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
  704. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +42 -0
  705. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +72 -71
  706. data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +24 -17
  707. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +95 -93
  708. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list_hook.hpp +10 -10
  709. data/src/cxx_supportlib/vendor-modified/boost/intrusive/member_value_traits.hpp +4 -4
  710. data/src/cxx_supportlib/vendor-modified/boost/intrusive/parent_from_member.hpp +2 -2
  711. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_plus_bits.hpp +4 -4
  712. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +18 -18
  713. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +43 -43
  714. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +26 -26
  715. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +85 -85
  716. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set_hook.hpp +12 -12
  717. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +93 -93
  718. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +58 -66
  719. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +24 -24
  720. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +122 -126
  721. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist_hook.hpp +8 -6
  722. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +91 -91
  723. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +46 -46
  724. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +31 -31
  725. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +51 -51
  726. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +20 -22
  727. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +97 -97
  728. data/src/cxx_supportlib/vendor-modified/boost/intrusive/trivial_value_traits.hpp +6 -4
  729. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +63 -63
  730. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +15 -15
  731. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +7 -7
  732. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +1 -1
  733. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +38 -38
  734. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +5 -2
  735. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +13 -16
  736. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +1 -1
  737. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
  738. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +10 -10
  739. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +1 -1
  740. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +5 -5
  741. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +2 -2
  742. data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
  743. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +3 -7
  744. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +10 -121
  745. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +5 -1
  746. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +4 -8
  747. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +2 -4
  748. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +3 -2
  749. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +31 -14
  750. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +4 -48
  751. data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +30 -3
  752. data/src/cxx_supportlib/vendor-modified/boost/move/detail/config_begin.hpp +1 -0
  753. data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
  754. data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_traits.hpp +1 -0
  755. data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +224 -0
  756. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +253 -43
  757. data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +0 -26
  758. data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +5 -5
  759. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
  760. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
  761. data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +2 -2
  762. data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
  763. data/src/cxx_supportlib/vendor-modified/boost/none.hpp +3 -4
  764. data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +3 -1
  765. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
  766. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +4 -5
  767. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
  768. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
  769. data/src/cxx_supportlib/vendor-modified/boost/operators.hpp +2 -0
  770. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +2 -2
  771. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +1 -1
  772. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +8 -1
  773. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +5 -5
  774. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +11 -0
  775. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +2 -2
  776. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +1 -1
  777. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +2 -2
  778. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +4 -4
  779. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +2 -2
  780. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +1 -1
  781. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +1 -1
  782. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +2 -2
  783. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +1 -1
  784. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +1 -1
  785. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +1 -1
  786. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +2 -2
  787. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +12 -3
  788. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +3 -3
  789. data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +1 -1
  790. data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +1 -1
  791. data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +1 -1
  792. data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +6 -6
  793. data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
  794. data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
  795. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +5 -0
  796. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +10 -0
  797. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +5 -0
  798. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +5 -0
  799. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
  800. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +5 -0
  801. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +5 -0
  802. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +10 -0
  803. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +5 -0
  804. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +55 -4
  805. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +5 -0
  806. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +5 -0
  807. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +5 -0
  808. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +10 -0
  809. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +14 -2
  810. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +13 -0
  811. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +5 -0
  812. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +5 -0
  813. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +5 -0
  814. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +7 -2
  815. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +5 -0
  816. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +1 -1
  817. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +1 -1
  818. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +1 -1
  819. data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +4 -0
  820. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +1 -0
  821. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +1 -0
  822. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +1 -0
  823. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +1 -0
  824. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +1 -0
  825. data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +7 -10
  826. data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
  827. data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
  828. data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +0 -1
  829. data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
  830. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
  831. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
  832. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
  833. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
  834. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
  835. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
  836. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
  837. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
  838. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
  839. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
  840. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
  841. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
  842. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
  843. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
  844. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
  845. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
  846. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
  847. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +1 -1
  848. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
  849. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
  850. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
  851. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
  852. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
  853. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
  854. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
  855. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
  856. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +16 -33
  857. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
  858. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
  859. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
  860. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
  861. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
  862. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
  863. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
  864. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
  865. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
  866. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
  867. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
  868. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
  869. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
  870. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
  871. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
  872. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
  873. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
  874. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
  875. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
  876. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
  877. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
  878. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
  879. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +0 -4
  880. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
  881. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
  882. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
  883. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
  884. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
  885. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
  886. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
  887. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
  888. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
  889. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
  890. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
  891. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
  892. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
  893. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
  894. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
  895. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
  896. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
  897. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
  898. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
  899. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
  900. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
  901. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
  902. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
  903. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
  904. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
  905. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
  906. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
  907. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
  908. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
  909. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
  910. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
  911. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
  912. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
  913. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
  914. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
  915. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
  916. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
  917. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
  918. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
  919. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
  920. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
  921. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
  922. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
  923. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
  924. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
  925. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
  926. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
  927. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
  928. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
  929. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
  930. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
  931. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
  932. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
  933. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
  934. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
  935. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
  936. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
  937. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
  938. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
  939. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
  940. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
  941. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
  942. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
  943. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
  944. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
  945. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
  946. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
  947. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
  948. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
  949. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
  950. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
  951. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
  952. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
  953. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
  954. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
  955. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
  956. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
  957. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
  958. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +5 -72
  959. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
  960. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
  961. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
  962. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
  963. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
  964. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
  965. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
  966. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
  967. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
  968. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
  969. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
  970. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
  971. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
  972. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
  973. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
  974. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
  975. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
  976. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +114 -0
  977. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
  978. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
  979. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
  980. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
  981. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
  982. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
  983. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
  984. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
  985. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
  986. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
  987. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
  988. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
  989. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
  990. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
  991. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
  992. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
  993. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
  994. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
  995. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
  996. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
  997. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
  998. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
  999. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
  1000. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
  1001. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
  1002. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
  1003. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
  1004. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
  1005. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
  1006. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
  1007. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
  1008. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
  1009. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +9 -3
  1010. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
  1011. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
  1012. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +0 -4
  1013. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +2 -2
  1014. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
  1015. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
  1016. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +0 -5
  1017. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
  1018. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
  1019. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
  1020. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
  1021. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
  1022. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
  1023. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
  1024. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
  1025. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
  1026. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +0 -5
  1027. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +0 -5
  1028. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +0 -5
  1029. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +0 -6
  1030. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +17 -39
  1031. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +0 -5
  1032. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +0 -5
  1033. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
  1034. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
  1035. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
  1036. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
  1037. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
  1038. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +1 -1
  1039. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +2 -2
  1040. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
  1041. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +1 -1
  1042. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
  1043. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
  1044. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
  1045. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
  1046. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
  1047. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
  1048. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
  1049. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
  1050. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
  1051. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
  1052. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
  1053. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +0 -4
  1054. data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
  1055. data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +29 -5
  1056. data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
  1057. data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
  1058. data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +1 -0
  1059. data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
  1060. data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +5 -5
  1061. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
  1062. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
  1063. data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +1 -0
  1064. data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
  1065. data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
  1066. data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
  1067. data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
  1068. data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +2 -3
  1069. data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
  1070. data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
  1071. data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
  1072. data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
  1073. data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
  1074. data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +2 -2
  1075. data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
  1076. data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
  1077. data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +3 -2
  1078. data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +4 -4
  1079. data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
  1080. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
  1081. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -3
  1082. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
  1083. data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
  1084. data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
  1085. data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +7 -7
  1086. data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +79 -74
  1087. data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +97 -113
  1088. data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -75
  1089. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -147
  1090. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
  1091. data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
  1092. data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
  1093. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +8 -9
  1094. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +20 -19
  1095. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +16 -13
  1096. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
  1097. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +107 -24
  1098. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
  1099. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
  1100. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +5 -5
  1101. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +8 -8
  1102. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
  1103. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
  1104. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +127 -0
  1105. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +13 -4
  1106. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +1 -1
  1107. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +39 -41
  1108. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +6 -6
  1109. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
  1110. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
  1111. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
  1112. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +3 -3
  1113. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +35 -4
  1114. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +2 -0
  1115. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +638 -22
  1116. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
  1117. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +871 -0
  1118. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +521 -37
  1119. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
  1120. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1575 -0
  1121. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3120 -0
  1122. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
  1123. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
  1124. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
  1125. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
  1126. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
  1127. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
  1128. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/indexed_bit_flag.hpp +54 -0
  1129. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
  1130. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
  1131. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
  1132. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
  1133. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +171 -0
  1134. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
  1135. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +105 -0
  1136. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
  1137. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +915 -0
  1138. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1872 -0
  1139. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
  1140. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
  1141. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
  1142. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
  1143. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
  1144. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
  1145. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
  1146. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
  1147. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
  1148. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
  1149. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
  1150. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
  1151. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
  1152. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
  1153. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
  1154. data/src/cxx_supportlib/vendor-modified/boost/{libs/regex/src/regex_traits_defaults.cpp → regex/v5/regex_traits_defaults.hpp} +719 -415
  1155. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
  1156. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
  1157. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
  1158. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
  1159. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
  1160. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
  1161. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +862 -0
  1162. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1180 -0
  1163. data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
  1164. data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
  1165. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +1 -1
  1166. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +22 -2
  1167. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_obsolete.hpp +32 -0
  1168. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +59 -1
  1169. data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +1 -1
  1170. data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
  1171. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +25 -11
  1172. data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +32 -0
  1173. data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
  1174. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +195 -0
  1175. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +139 -0
  1176. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +557 -0
  1177. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +239 -0
  1178. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +80 -58
  1179. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
  1180. data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +107 -0
  1181. data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +33 -0
  1182. data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +70 -0
  1183. data/src/cxx_supportlib/vendor-modified/boost/system/detail/{std_interoperability.hpp → std_category.hpp} +11 -52
  1184. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
  1185. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +73 -0
  1186. data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
  1187. data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +50 -0
  1188. data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
  1189. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +7 -958
  1190. data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
  1191. data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
  1192. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
  1193. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
  1194. data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
  1195. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +1 -1
  1196. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +26 -0
  1197. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +37 -39
  1198. data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +1 -1
  1199. data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +1 -1
  1200. data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +1 -1
  1201. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +247 -168
  1202. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +27 -27
  1203. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +1 -1
  1204. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +27 -27
  1205. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +242 -217
  1206. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +1 -1
  1207. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +1 -1
  1208. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +4 -0
  1209. data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +1 -1
  1210. data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +3 -3
  1211. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +2 -2
  1212. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +1 -1
  1213. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +1 -1
  1214. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +1 -1
  1215. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +4 -4
  1216. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +1 -1
  1217. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +8 -8
  1218. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +8 -8
  1219. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_variadic.hpp +190 -0
  1220. data/src/cxx_supportlib/vendor-modified/boost/utility/result_of.hpp +20 -9
  1221. data/src/cxx_supportlib/vendor-modified/boost/utility/string_view.hpp +3 -1
  1222. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  1223. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/COPYING +0 -0
  1224. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/changelog.md +0 -0
  1225. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/readme.md +0 -0
  1226. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/base64/base64.hpp +0 -0
  1227. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/client.hpp +0 -0
  1228. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/close.hpp +0 -0
  1229. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio.hpp +0 -0
  1230. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio_ssl.hpp +0 -0
  1231. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/chrono.hpp +0 -0
  1232. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/connection_hdl.hpp +0 -0
  1233. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/cpp11.hpp +0 -0
  1234. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/functional.hpp +2 -7
  1235. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/md5.hpp +0 -0
  1236. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/memory.hpp +0 -0
  1237. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/network.hpp +0 -0
  1238. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/platforms.hpp +0 -0
  1239. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/random.hpp +0 -0
  1240. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/regex.hpp +0 -0
  1241. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/stdint.hpp +0 -0
  1242. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/system_error.hpp +0 -0
  1243. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/thread.hpp +0 -0
  1244. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/time.hpp +0 -0
  1245. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/type_traits.hpp +0 -0
  1246. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/basic.hpp +0 -0
  1247. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/none.hpp +0 -0
  1248. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio.hpp +0 -0
  1249. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_client.hpp +0 -0
  1250. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -0
  1251. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -0
  1252. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/boost_config.hpp +0 -0
  1253. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core.hpp +0 -0
  1254. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core_client.hpp +0 -0
  1255. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug.hpp +0 -0
  1256. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio.hpp +0 -0
  1257. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -0
  1258. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_client.hpp +0 -0
  1259. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_server.hpp +0 -0
  1260. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection.hpp +0 -0
  1261. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection_base.hpp +0 -0
  1262. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint.hpp +0 -0
  1263. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint_base.hpp +0 -0
  1264. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/error.hpp +0 -0
  1265. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/extension.hpp +0 -0
  1266. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -0
  1267. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -0
  1268. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/frame.hpp +0 -0
  1269. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/constants.hpp +0 -0
  1270. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/parser.hpp +0 -0
  1271. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/request.hpp +0 -0
  1272. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/response.hpp +0 -0
  1273. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/parser.hpp +0 -0
  1274. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/request.hpp +0 -0
  1275. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/response.hpp +0 -0
  1276. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/connection_impl.hpp +0 -0
  1277. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -0
  1278. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -0
  1279. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/basic.hpp +0 -0
  1280. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/levels.hpp +0 -0
  1281. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/stub.hpp +0 -0
  1282. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/syslog.hpp +0 -0
  1283. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -0
  1284. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/message.hpp +0 -0
  1285. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/pool.hpp +0 -0
  1286. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/base.hpp +0 -0
  1287. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi00.hpp +0 -0
  1288. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi07.hpp +0 -0
  1289. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi08.hpp +0 -0
  1290. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi13.hpp +0 -0
  1291. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/processor.hpp +0 -0
  1292. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/none.hpp +0 -0
  1293. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/random_device.hpp +0 -0
  1294. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -0
  1295. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -0
  1296. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/server.hpp +0 -0
  1297. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/sha1/sha1.hpp +0 -0
  1298. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/base.hpp +0 -0
  1299. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/connection.hpp +0 -0
  1300. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -0
  1301. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -0
  1302. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -0
  1303. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -0
  1304. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/connection.hpp +0 -0
  1305. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -0
  1306. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/base.hpp +0 -0
  1307. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/connection.hpp +0 -0
  1308. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -0
  1309. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/base.hpp +0 -0
  1310. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -0
  1311. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -0
  1312. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/base.hpp +0 -0
  1313. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/connection.hpp +0 -0
  1314. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -0
  1315. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/uri.hpp +0 -0
  1316. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utf8_validator.hpp +0 -0
  1317. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utilities.hpp +0 -0
  1318. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/version.hpp +0 -0
  1319. data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +8 -0
  1320. data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +6 -0
  1321. data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +12 -0
  1322. data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +5 -0
  1323. data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +21 -0
  1324. data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +13 -0
  1325. data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +3 -0
  1326. data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +4 -0
  1327. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +3 -2
  1328. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
  1329. data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +8 -1
  1330. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +6 -0
  1331. data/src/ruby_supportlib/phusion_passenger/packaging.rb +1 -0
  1332. data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +23 -19
  1333. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
  1334. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +6 -2
  1335. data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
  1336. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +46 -27
  1337. data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +65 -0
  1338. data/src/ruby_supportlib/phusion_passenger/request_handler.rb +4 -1
  1339. data/src/ruby_supportlib/phusion_passenger.rb +7 -7
  1340. metadata +357 -124
  1341. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
  1342. data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -60
  1343. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
  1344. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
  1345. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -667
  1346. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
  1347. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
  1348. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
  1349. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
  1350. data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1038
  1351. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
  1352. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
  1353. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
  1354. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1712
  1355. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
  1356. data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -489
  1357. data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
  1358. data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
  1359. data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
  1360. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -557
  1361. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -236
  1362. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_posix.hpp +0 -132
  1363. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp.orig +0 -841
  1364. data/src/cxx_supportlib/vendor-modified/boost/thread/once.hpp.orig +0 -54
@@ -0,0 +1,3120 @@
1
+ /*
2
+ *
3
+ * Copyright (c) 2004
4
+ * John Maddock
5
+ *
6
+ * Use, modification and distribution are subject to the
7
+ * Boost Software License, Version 1.0. (See accompanying file
8
+ * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
+ *
10
+ */
11
+
12
+ /*
13
+ * LOCATION: see http://www.boost.org for most recent version.
14
+ * FILE basic_regex_parser.cpp
15
+ * VERSION see <boost/version.hpp>
16
+ * DESCRIPTION: Declares template class basic_regex_parser.
17
+ */
18
+
19
+ #ifndef BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP
20
+ #define BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP
21
+
22
+ namespace boost{
23
+ namespace BOOST_REGEX_DETAIL_NS{
24
+
25
+ #ifdef BOOST_REGEX_MSVC
26
+ #pragma warning(push)
27
+ #pragma warning(disable:4244 4459)
28
+ #if BOOST_REGEX_MSVC < 1910
29
+ #pragma warning(disable:4800)
30
+ #endif
31
+ #endif
32
+
33
+ inline std::intmax_t umax(std::integral_constant<bool, false> const&)
34
+ {
35
+ // Get out clause here, just in case numeric_limits is unspecialized:
36
+ return std::numeric_limits<std::intmax_t>::is_specialized ? (std::numeric_limits<std::intmax_t>::max)() : INT_MAX;
37
+ }
38
+ inline std::intmax_t umax(std::integral_constant<bool, true> const&)
39
+ {
40
+ return (std::numeric_limits<std::size_t>::max)();
41
+ }
42
+
43
+ inline std::intmax_t umax()
44
+ {
45
+ return umax(std::integral_constant<bool, std::numeric_limits<std::intmax_t>::digits >= std::numeric_limits<std::size_t>::digits>());
46
+ }
47
+
48
+ template <class charT, class traits>
49
+ class basic_regex_parser : public basic_regex_creator<charT, traits>
50
+ {
51
+ public:
52
+ basic_regex_parser(regex_data<charT, traits>* data);
53
+ void parse(const charT* p1, const charT* p2, unsigned flags);
54
+ void fail(regex_constants::error_type error_code, std::ptrdiff_t position);
55
+ void fail(regex_constants::error_type error_code, std::ptrdiff_t position, std::string message, std::ptrdiff_t start_pos);
56
+ void fail(regex_constants::error_type error_code, std::ptrdiff_t position, const std::string& message)
57
+ {
58
+ fail(error_code, position, message, position);
59
+ }
60
+
61
+ bool parse_all();
62
+ bool parse_basic();
63
+ bool parse_extended();
64
+ bool parse_literal();
65
+ bool parse_open_paren();
66
+ bool parse_basic_escape();
67
+ bool parse_extended_escape();
68
+ bool parse_match_any();
69
+ bool parse_repeat(std::size_t low = 0, std::size_t high = (std::numeric_limits<std::size_t>::max)());
70
+ bool parse_repeat_range(bool isbasic);
71
+ bool parse_alt();
72
+ bool parse_set();
73
+ bool parse_backref();
74
+ void parse_set_literal(basic_char_set<charT, traits>& char_set);
75
+ bool parse_inner_set(basic_char_set<charT, traits>& char_set);
76
+ bool parse_QE();
77
+ bool parse_perl_extension();
78
+ bool parse_perl_verb();
79
+ bool match_verb(const char*);
80
+ bool add_emacs_code(bool negate);
81
+ bool unwind_alts(std::ptrdiff_t last_paren_start);
82
+ digraph<charT> get_next_set_literal(basic_char_set<charT, traits>& char_set);
83
+ charT unescape_character();
84
+ regex_constants::syntax_option_type parse_options();
85
+
86
+ private:
87
+ typedef bool (basic_regex_parser::*parser_proc_type)();
88
+ typedef typename traits::string_type string_type;
89
+ typedef typename traits::char_class_type char_class_type;
90
+ parser_proc_type m_parser_proc; // the main parser to use
91
+ const charT* m_base; // the start of the string being parsed
92
+ const charT* m_end; // the end of the string being parsed
93
+ const charT* m_position; // our current parser position
94
+ unsigned m_mark_count; // how many sub-expressions we have
95
+ int m_mark_reset; // used to indicate that we're inside a (?|...) block.
96
+ unsigned m_max_mark; // largest mark count seen inside a (?|...) block.
97
+ std::ptrdiff_t m_paren_start; // where the last seen ')' began (where repeats are inserted).
98
+ std::ptrdiff_t m_alt_insert_point; // where to insert the next alternative
99
+ bool m_has_case_change; // true if somewhere in the current block the case has changed
100
+ unsigned m_recursion_count; // How many times we've called parse_all.
101
+ #if defined(BOOST_REGEX_MSVC) && defined(_M_IX86)
102
+ // This is an ugly warning suppression workaround (for warnings *inside* std::vector
103
+ // that can not otherwise be suppressed)...
104
+ static_assert(sizeof(long) >= sizeof(void*), "Long isn't long enough!");
105
+ std::vector<long> m_alt_jumps; // list of alternative in the current scope.
106
+ #else
107
+ std::vector<std::ptrdiff_t> m_alt_jumps; // list of alternative in the current scope.
108
+ #endif
109
+
110
+ basic_regex_parser& operator=(const basic_regex_parser&);
111
+ basic_regex_parser(const basic_regex_parser&);
112
+ };
113
+
114
+ template <class charT, class traits>
115
+ basic_regex_parser<charT, traits>::basic_regex_parser(regex_data<charT, traits>* data)
116
+ : basic_regex_creator<charT, traits>(data), m_parser_proc(), m_base(0), m_end(0), m_position(0),
117
+ m_mark_count(0), m_mark_reset(-1), m_max_mark(0), m_paren_start(0), m_alt_insert_point(0), m_has_case_change(false), m_recursion_count(0)
118
+ {
119
+ }
120
+
121
+ template <class charT, class traits>
122
+ void basic_regex_parser<charT, traits>::parse(const charT* p1, const charT* p2, unsigned l_flags)
123
+ {
124
+ // pass l_flags on to base class:
125
+ this->init(l_flags);
126
+ // set up pointers:
127
+ m_position = m_base = p1;
128
+ m_end = p2;
129
+ // empty strings are errors:
130
+ if((p1 == p2) &&
131
+ (
132
+ ((l_flags & regbase::main_option_type) != regbase::perl_syntax_group)
133
+ || (l_flags & regbase::no_empty_expressions)
134
+ )
135
+ )
136
+ {
137
+ fail(regex_constants::error_empty, 0);
138
+ return;
139
+ }
140
+ // select which parser to use:
141
+ switch(l_flags & regbase::main_option_type)
142
+ {
143
+ case regbase::perl_syntax_group:
144
+ {
145
+ m_parser_proc = &basic_regex_parser<charT, traits>::parse_extended;
146
+ //
147
+ // Add a leading paren with index zero to give recursions a target:
148
+ //
149
+ re_brace* br = static_cast<re_brace*>(this->append_state(syntax_element_startmark, sizeof(re_brace)));
150
+ br->index = 0;
151
+ br->icase = this->flags() & regbase::icase;
152
+ break;
153
+ }
154
+ case regbase::basic_syntax_group:
155
+ m_parser_proc = &basic_regex_parser<charT, traits>::parse_basic;
156
+ break;
157
+ case regbase::literal:
158
+ m_parser_proc = &basic_regex_parser<charT, traits>::parse_literal;
159
+ break;
160
+ default:
161
+ // Oops, someone has managed to set more than one of the main option flags,
162
+ // so this must be an error:
163
+ fail(regex_constants::error_unknown, 0, "An invalid combination of regular expression syntax flags was used.");
164
+ return;
165
+ }
166
+
167
+ // parse all our characters:
168
+ bool result = parse_all();
169
+ //
170
+ // Unwind our alternatives:
171
+ //
172
+ unwind_alts(-1);
173
+ // reset l_flags as a global scope (?imsx) may have altered them:
174
+ this->flags(l_flags);
175
+ // if we haven't gobbled up all the characters then we must
176
+ // have had an unexpected ')' :
177
+ if(!result)
178
+ {
179
+ fail(regex_constants::error_paren, std::distance(m_base, m_position), "Found a closing ) with no corresponding opening parenthesis.");
180
+ return;
181
+ }
182
+ // if an error has been set then give up now:
183
+ if(this->m_pdata->m_status)
184
+ return;
185
+ // fill in our sub-expression count:
186
+ this->m_pdata->m_mark_count = 1u + (std::size_t)m_mark_count;
187
+ this->finalize(p1, p2);
188
+ }
189
+
190
+ template <class charT, class traits>
191
+ void basic_regex_parser<charT, traits>::fail(regex_constants::error_type error_code, std::ptrdiff_t position)
192
+ {
193
+ // get the error message:
194
+ std::string message = this->m_pdata->m_ptraits->error_string(error_code);
195
+ fail(error_code, position, message);
196
+ }
197
+
198
+ template <class charT, class traits>
199
+ void basic_regex_parser<charT, traits>::fail(regex_constants::error_type error_code, std::ptrdiff_t position, std::string message, std::ptrdiff_t start_pos)
200
+ {
201
+ if(0 == this->m_pdata->m_status) // update the error code if not already set
202
+ this->m_pdata->m_status = error_code;
203
+ m_position = m_end; // don't bother parsing anything else
204
+
205
+ //
206
+ // Augment error message with the regular expression text:
207
+ //
208
+ if(start_pos == position)
209
+ start_pos = (std::max)(static_cast<std::ptrdiff_t>(0), position - static_cast<std::ptrdiff_t>(10));
210
+ std::ptrdiff_t end_pos = (std::min)(position + static_cast<std::ptrdiff_t>(10), static_cast<std::ptrdiff_t>(m_end - m_base));
211
+ if(error_code != regex_constants::error_empty)
212
+ {
213
+ if((start_pos != 0) || (end_pos != (m_end - m_base)))
214
+ message += " The error occurred while parsing the regular expression fragment: '";
215
+ else
216
+ message += " The error occurred while parsing the regular expression: '";
217
+ if(start_pos != end_pos)
218
+ {
219
+ message += std::string(m_base + start_pos, m_base + position);
220
+ message += ">>>HERE>>>";
221
+ message += std::string(m_base + position, m_base + end_pos);
222
+ }
223
+ message += "'.";
224
+ }
225
+
226
+ #ifndef BOOST_NO_EXCEPTIONS
227
+ if(0 == (this->flags() & regex_constants::no_except))
228
+ {
229
+ boost::regex_error e(message, error_code, position);
230
+ e.raise();
231
+ }
232
+ #else
233
+ (void)position; // suppress warnings.
234
+ #endif
235
+ }
236
+
237
+ template <class charT, class traits>
238
+ bool basic_regex_parser<charT, traits>::parse_all()
239
+ {
240
+ if (++m_recursion_count > 400)
241
+ {
242
+ // exceeded internal limits
243
+ fail(boost::regex_constants::error_complexity, m_position - m_base, "Exceeded nested brace limit.");
244
+ }
245
+ bool result = true;
246
+ while(result && (m_position != m_end))
247
+ {
248
+ result = (this->*m_parser_proc)();
249
+ }
250
+ --m_recursion_count;
251
+ return result;
252
+ }
253
+
254
+ #ifdef BOOST_REGEX_MSVC
255
+ #pragma warning(push)
256
+ #pragma warning(disable:4702)
257
+ #endif
258
+ template <class charT, class traits>
259
+ bool basic_regex_parser<charT, traits>::parse_basic()
260
+ {
261
+ switch(this->m_traits.syntax_type(*m_position))
262
+ {
263
+ case regex_constants::syntax_escape:
264
+ return parse_basic_escape();
265
+ case regex_constants::syntax_dot:
266
+ return parse_match_any();
267
+ case regex_constants::syntax_caret:
268
+ ++m_position;
269
+ this->append_state(syntax_element_start_line);
270
+ break;
271
+ case regex_constants::syntax_dollar:
272
+ ++m_position;
273
+ this->append_state(syntax_element_end_line);
274
+ break;
275
+ case regex_constants::syntax_star:
276
+ if(!(this->m_last_state) || (this->m_last_state->type == syntax_element_start_line))
277
+ return parse_literal();
278
+ else
279
+ {
280
+ ++m_position;
281
+ return parse_repeat();
282
+ }
283
+ case regex_constants::syntax_plus:
284
+ if(!(this->m_last_state) || (this->m_last_state->type == syntax_element_start_line) || !(this->flags() & regbase::emacs_ex))
285
+ return parse_literal();
286
+ else
287
+ {
288
+ ++m_position;
289
+ return parse_repeat(1);
290
+ }
291
+ case regex_constants::syntax_question:
292
+ if(!(this->m_last_state) || (this->m_last_state->type == syntax_element_start_line) || !(this->flags() & regbase::emacs_ex))
293
+ return parse_literal();
294
+ else
295
+ {
296
+ ++m_position;
297
+ return parse_repeat(0, 1);
298
+ }
299
+ case regex_constants::syntax_open_set:
300
+ return parse_set();
301
+ case regex_constants::syntax_newline:
302
+ if(this->flags() & regbase::newline_alt)
303
+ return parse_alt();
304
+ else
305
+ return parse_literal();
306
+ default:
307
+ return parse_literal();
308
+ }
309
+ return true;
310
+ }
311
+
312
+ #ifdef BOOST_REGEX_MSVC
313
+ # pragma warning(push)
314
+ #if BOOST_REGEX_MSVC >= 1800
315
+ #pragma warning(disable:26812)
316
+ #endif
317
+ #endif
318
+ template <class charT, class traits>
319
+ bool basic_regex_parser<charT, traits>::parse_extended()
320
+ {
321
+ bool result = true;
322
+ switch(this->m_traits.syntax_type(*m_position))
323
+ {
324
+ case regex_constants::syntax_open_mark:
325
+ return parse_open_paren();
326
+ case regex_constants::syntax_close_mark:
327
+ return false;
328
+ case regex_constants::syntax_escape:
329
+ return parse_extended_escape();
330
+ case regex_constants::syntax_dot:
331
+ return parse_match_any();
332
+ case regex_constants::syntax_caret:
333
+ ++m_position;
334
+ this->append_state(
335
+ (this->flags() & regex_constants::no_mod_m ? syntax_element_buffer_start : syntax_element_start_line));
336
+ break;
337
+ case regex_constants::syntax_dollar:
338
+ ++m_position;
339
+ this->append_state(
340
+ (this->flags() & regex_constants::no_mod_m ? syntax_element_buffer_end : syntax_element_end_line));
341
+ break;
342
+ case regex_constants::syntax_star:
343
+ if(m_position == this->m_base)
344
+ {
345
+ fail(regex_constants::error_badrepeat, 0, "The repeat operator \"*\" cannot start a regular expression.");
346
+ return false;
347
+ }
348
+ ++m_position;
349
+ return parse_repeat();
350
+ case regex_constants::syntax_question:
351
+ if(m_position == this->m_base)
352
+ {
353
+ fail(regex_constants::error_badrepeat, 0, "The repeat operator \"?\" cannot start a regular expression.");
354
+ return false;
355
+ }
356
+ ++m_position;
357
+ return parse_repeat(0,1);
358
+ case regex_constants::syntax_plus:
359
+ if(m_position == this->m_base)
360
+ {
361
+ fail(regex_constants::error_badrepeat, 0, "The repeat operator \"+\" cannot start a regular expression.");
362
+ return false;
363
+ }
364
+ ++m_position;
365
+ return parse_repeat(1);
366
+ case regex_constants::syntax_open_brace:
367
+ ++m_position;
368
+ return parse_repeat_range(false);
369
+ case regex_constants::syntax_close_brace:
370
+ if((this->flags() & regbase::no_perl_ex) == regbase::no_perl_ex)
371
+ {
372
+ fail(regex_constants::error_brace, this->m_position - this->m_base, "Found a closing repetition operator } with no corresponding {.");
373
+ return false;
374
+ }
375
+ result = parse_literal();
376
+ break;
377
+ case regex_constants::syntax_or:
378
+ return parse_alt();
379
+ case regex_constants::syntax_open_set:
380
+ return parse_set();
381
+ case regex_constants::syntax_newline:
382
+ if(this->flags() & regbase::newline_alt)
383
+ return parse_alt();
384
+ else
385
+ return parse_literal();
386
+ case regex_constants::syntax_hash:
387
+ //
388
+ // If we have a mod_x flag set, then skip until
389
+ // we get to a newline character:
390
+ //
391
+ if((this->flags()
392
+ & (regbase::no_perl_ex|regbase::mod_x))
393
+ == regbase::mod_x)
394
+ {
395
+ while((m_position != m_end) && !is_separator(*m_position++)){}
396
+ return true;
397
+ }
398
+ BOOST_REGEX_FALLTHROUGH;
399
+ default:
400
+ result = parse_literal();
401
+ break;
402
+ }
403
+ return result;
404
+ }
405
+ #ifdef BOOST_REGEX_MSVC
406
+ # pragma warning(pop)
407
+ #endif
408
+ #ifdef BOOST_REGEX_MSVC
409
+ #pragma warning(pop)
410
+ #endif
411
+
412
+ template <class charT, class traits>
413
+ bool basic_regex_parser<charT, traits>::parse_literal()
414
+ {
415
+ // append this as a literal provided it's not a space character
416
+ // or the perl option regbase::mod_x is not set:
417
+ if(
418
+ ((this->flags()
419
+ & (regbase::main_option_type|regbase::mod_x|regbase::no_perl_ex))
420
+ != regbase::mod_x)
421
+ || !this->m_traits.isctype(*m_position, this->m_mask_space))
422
+ this->append_literal(*m_position);
423
+ ++m_position;
424
+ return true;
425
+ }
426
+
427
+ template <class charT, class traits>
428
+ bool basic_regex_parser<charT, traits>::parse_open_paren()
429
+ {
430
+ //
431
+ // skip the '(' and error check:
432
+ //
433
+ if(++m_position == m_end)
434
+ {
435
+ fail(regex_constants::error_paren, m_position - m_base);
436
+ return false;
437
+ }
438
+ //
439
+ // begin by checking for a perl-style (?...) extension:
440
+ //
441
+ if(
442
+ ((this->flags() & (regbase::main_option_type | regbase::no_perl_ex)) == 0)
443
+ || ((this->flags() & (regbase::main_option_type | regbase::emacs_ex)) == (regbase::basic_syntax_group|regbase::emacs_ex))
444
+ )
445
+ {
446
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_question)
447
+ return parse_perl_extension();
448
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_star)
449
+ return parse_perl_verb();
450
+ }
451
+ //
452
+ // update our mark count, and append the required state:
453
+ //
454
+ unsigned markid = 0;
455
+ if(0 == (this->flags() & regbase::nosubs))
456
+ {
457
+ markid = ++m_mark_count;
458
+ if(this->flags() & regbase::save_subexpression_location)
459
+ this->m_pdata->m_subs.push_back(std::pair<std::size_t, std::size_t>(std::distance(m_base, m_position) - 1, 0));
460
+ }
461
+ re_brace* pb = static_cast<re_brace*>(this->append_state(syntax_element_startmark, sizeof(re_brace)));
462
+ pb->index = markid;
463
+ pb->icase = this->flags() & regbase::icase;
464
+ std::ptrdiff_t last_paren_start = this->getoffset(pb);
465
+ // back up insertion point for alternations, and set new point:
466
+ std::ptrdiff_t last_alt_point = m_alt_insert_point;
467
+ this->m_pdata->m_data.align();
468
+ m_alt_insert_point = this->m_pdata->m_data.size();
469
+ //
470
+ // back up the current flags in case we have a nested (?imsx) group:
471
+ //
472
+ regex_constants::syntax_option_type opts = this->flags();
473
+ bool old_case_change = m_has_case_change;
474
+ m_has_case_change = false; // no changes to this scope as yet...
475
+ //
476
+ // Back up branch reset data in case we have a nested (?|...)
477
+ //
478
+ int mark_reset = m_mark_reset;
479
+ m_mark_reset = -1;
480
+ //
481
+ // now recursively add more states, this will terminate when we get to a
482
+ // matching ')' :
483
+ //
484
+ parse_all();
485
+ //
486
+ // Unwind pushed alternatives:
487
+ //
488
+ if(0 == unwind_alts(last_paren_start))
489
+ return false;
490
+ //
491
+ // restore flags:
492
+ //
493
+ if(m_has_case_change)
494
+ {
495
+ // the case has changed in one or more of the alternatives
496
+ // within the scoped (...) block: we have to add a state
497
+ // to reset the case sensitivity:
498
+ static_cast<re_case*>(
499
+ this->append_state(syntax_element_toggle_case, sizeof(re_case))
500
+ )->icase = opts & regbase::icase;
501
+ }
502
+ this->flags(opts);
503
+ m_has_case_change = old_case_change;
504
+ //
505
+ // restore branch reset:
506
+ //
507
+ m_mark_reset = mark_reset;
508
+ //
509
+ // we either have a ')' or we have run out of characters prematurely:
510
+ //
511
+ if(m_position == m_end)
512
+ {
513
+ this->fail(regex_constants::error_paren, std::distance(m_base, m_end));
514
+ return false;
515
+ }
516
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
517
+ return false;
518
+ if(markid && (this->flags() & regbase::save_subexpression_location))
519
+ this->m_pdata->m_subs.at(markid - 1).second = std::distance(m_base, m_position);
520
+ ++m_position;
521
+ //
522
+ // append closing parenthesis state:
523
+ //
524
+ pb = static_cast<re_brace*>(this->append_state(syntax_element_endmark, sizeof(re_brace)));
525
+ pb->index = markid;
526
+ pb->icase = this->flags() & regbase::icase;
527
+ this->m_paren_start = last_paren_start;
528
+ //
529
+ // restore the alternate insertion point:
530
+ //
531
+ this->m_alt_insert_point = last_alt_point;
532
+ //
533
+ // allow backrefs to this mark:
534
+ //
535
+ if(markid > 0)
536
+ this->m_backrefs.set(markid);
537
+
538
+ return true;
539
+ }
540
+
541
+ template <class charT, class traits>
542
+ bool basic_regex_parser<charT, traits>::parse_basic_escape()
543
+ {
544
+ if(++m_position == m_end)
545
+ {
546
+ fail(regex_constants::error_paren, m_position - m_base);
547
+ return false;
548
+ }
549
+ bool result = true;
550
+ switch(this->m_traits.escape_syntax_type(*m_position))
551
+ {
552
+ case regex_constants::syntax_open_mark:
553
+ return parse_open_paren();
554
+ case regex_constants::syntax_close_mark:
555
+ return false;
556
+ case regex_constants::syntax_plus:
557
+ if(this->flags() & regex_constants::bk_plus_qm)
558
+ {
559
+ ++m_position;
560
+ return parse_repeat(1);
561
+ }
562
+ else
563
+ return parse_literal();
564
+ case regex_constants::syntax_question:
565
+ if(this->flags() & regex_constants::bk_plus_qm)
566
+ {
567
+ ++m_position;
568
+ return parse_repeat(0, 1);
569
+ }
570
+ else
571
+ return parse_literal();
572
+ case regex_constants::syntax_open_brace:
573
+ if(this->flags() & regbase::no_intervals)
574
+ return parse_literal();
575
+ ++m_position;
576
+ return parse_repeat_range(true);
577
+ case regex_constants::syntax_close_brace:
578
+ if(this->flags() & regbase::no_intervals)
579
+ return parse_literal();
580
+ fail(regex_constants::error_brace, this->m_position - this->m_base, "Found a closing repetition operator } with no corresponding {.");
581
+ return false;
582
+ case regex_constants::syntax_or:
583
+ if(this->flags() & regbase::bk_vbar)
584
+ return parse_alt();
585
+ else
586
+ result = parse_literal();
587
+ break;
588
+ case regex_constants::syntax_digit:
589
+ return parse_backref();
590
+ case regex_constants::escape_type_start_buffer:
591
+ if(this->flags() & regbase::emacs_ex)
592
+ {
593
+ ++m_position;
594
+ this->append_state(syntax_element_buffer_start);
595
+ }
596
+ else
597
+ result = parse_literal();
598
+ break;
599
+ case regex_constants::escape_type_end_buffer:
600
+ if(this->flags() & regbase::emacs_ex)
601
+ {
602
+ ++m_position;
603
+ this->append_state(syntax_element_buffer_end);
604
+ }
605
+ else
606
+ result = parse_literal();
607
+ break;
608
+ case regex_constants::escape_type_word_assert:
609
+ if(this->flags() & regbase::emacs_ex)
610
+ {
611
+ ++m_position;
612
+ this->append_state(syntax_element_word_boundary);
613
+ }
614
+ else
615
+ result = parse_literal();
616
+ break;
617
+ case regex_constants::escape_type_not_word_assert:
618
+ if(this->flags() & regbase::emacs_ex)
619
+ {
620
+ ++m_position;
621
+ this->append_state(syntax_element_within_word);
622
+ }
623
+ else
624
+ result = parse_literal();
625
+ break;
626
+ case regex_constants::escape_type_left_word:
627
+ if(this->flags() & regbase::emacs_ex)
628
+ {
629
+ ++m_position;
630
+ this->append_state(syntax_element_word_start);
631
+ }
632
+ else
633
+ result = parse_literal();
634
+ break;
635
+ case regex_constants::escape_type_right_word:
636
+ if(this->flags() & regbase::emacs_ex)
637
+ {
638
+ ++m_position;
639
+ this->append_state(syntax_element_word_end);
640
+ }
641
+ else
642
+ result = parse_literal();
643
+ break;
644
+ default:
645
+ if(this->flags() & regbase::emacs_ex)
646
+ {
647
+ bool negate = true;
648
+ switch(*m_position)
649
+ {
650
+ case 'w':
651
+ negate = false;
652
+ BOOST_REGEX_FALLTHROUGH;
653
+ case 'W':
654
+ {
655
+ basic_char_set<charT, traits> char_set;
656
+ if(negate)
657
+ char_set.negate();
658
+ char_set.add_class(this->m_word_mask);
659
+ if(0 == this->append_set(char_set))
660
+ {
661
+ fail(regex_constants::error_ctype, m_position - m_base);
662
+ return false;
663
+ }
664
+ ++m_position;
665
+ return true;
666
+ }
667
+ case 's':
668
+ negate = false;
669
+ BOOST_REGEX_FALLTHROUGH;
670
+ case 'S':
671
+ return add_emacs_code(negate);
672
+ case 'c':
673
+ case 'C':
674
+ // not supported yet:
675
+ fail(regex_constants::error_escape, m_position - m_base, "The \\c and \\C escape sequences are not supported by POSIX basic regular expressions: try the Perl syntax instead.");
676
+ return false;
677
+ default:
678
+ break;
679
+ }
680
+ }
681
+ result = parse_literal();
682
+ break;
683
+ }
684
+ return result;
685
+ }
686
+
687
+ template <class charT, class traits>
688
+ bool basic_regex_parser<charT, traits>::parse_extended_escape()
689
+ {
690
+ ++m_position;
691
+ if(m_position == m_end)
692
+ {
693
+ fail(regex_constants::error_escape, m_position - m_base, "Incomplete escape sequence found.");
694
+ return false;
695
+ }
696
+ bool negate = false; // in case this is a character class escape: \w \d etc
697
+ switch(this->m_traits.escape_syntax_type(*m_position))
698
+ {
699
+ case regex_constants::escape_type_not_class:
700
+ negate = true;
701
+ BOOST_REGEX_FALLTHROUGH;
702
+ case regex_constants::escape_type_class:
703
+ {
704
+ escape_type_class_jump:
705
+ typedef typename traits::char_class_type m_type;
706
+ m_type m = this->m_traits.lookup_classname(m_position, m_position+1);
707
+ if(m != 0)
708
+ {
709
+ basic_char_set<charT, traits> char_set;
710
+ if(negate)
711
+ char_set.negate();
712
+ char_set.add_class(m);
713
+ if(0 == this->append_set(char_set))
714
+ {
715
+ fail(regex_constants::error_ctype, m_position - m_base);
716
+ return false;
717
+ }
718
+ ++m_position;
719
+ return true;
720
+ }
721
+ //
722
+ // not a class, just a regular unknown escape:
723
+ //
724
+ this->append_literal(unescape_character());
725
+ break;
726
+ }
727
+ case regex_constants::syntax_digit:
728
+ return parse_backref();
729
+ case regex_constants::escape_type_left_word:
730
+ ++m_position;
731
+ this->append_state(syntax_element_word_start);
732
+ break;
733
+ case regex_constants::escape_type_right_word:
734
+ ++m_position;
735
+ this->append_state(syntax_element_word_end);
736
+ break;
737
+ case regex_constants::escape_type_start_buffer:
738
+ ++m_position;
739
+ this->append_state(syntax_element_buffer_start);
740
+ break;
741
+ case regex_constants::escape_type_end_buffer:
742
+ ++m_position;
743
+ this->append_state(syntax_element_buffer_end);
744
+ break;
745
+ case regex_constants::escape_type_word_assert:
746
+ ++m_position;
747
+ this->append_state(syntax_element_word_boundary);
748
+ break;
749
+ case regex_constants::escape_type_not_word_assert:
750
+ ++m_position;
751
+ this->append_state(syntax_element_within_word);
752
+ break;
753
+ case regex_constants::escape_type_Z:
754
+ ++m_position;
755
+ this->append_state(syntax_element_soft_buffer_end);
756
+ break;
757
+ case regex_constants::escape_type_Q:
758
+ return parse_QE();
759
+ case regex_constants::escape_type_C:
760
+ return parse_match_any();
761
+ case regex_constants::escape_type_X:
762
+ ++m_position;
763
+ this->append_state(syntax_element_combining);
764
+ break;
765
+ case regex_constants::escape_type_G:
766
+ ++m_position;
767
+ this->append_state(syntax_element_restart_continue);
768
+ break;
769
+ case regex_constants::escape_type_not_property:
770
+ negate = true;
771
+ BOOST_REGEX_FALLTHROUGH;
772
+ case regex_constants::escape_type_property:
773
+ {
774
+ ++m_position;
775
+ char_class_type m;
776
+ if(m_position == m_end)
777
+ {
778
+ fail(regex_constants::error_escape, m_position - m_base, "Incomplete property escape found.");
779
+ return false;
780
+ }
781
+ // maybe have \p{ddd}
782
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_open_brace)
783
+ {
784
+ const charT* base = m_position;
785
+ // skip forward until we find enclosing brace:
786
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_brace))
787
+ ++m_position;
788
+ if(m_position == m_end)
789
+ {
790
+ fail(regex_constants::error_escape, m_position - m_base, "Closing } missing from property escape sequence.");
791
+ return false;
792
+ }
793
+ m = this->m_traits.lookup_classname(++base, m_position++);
794
+ }
795
+ else
796
+ {
797
+ m = this->m_traits.lookup_classname(m_position, m_position+1);
798
+ ++m_position;
799
+ }
800
+ if(m != 0)
801
+ {
802
+ basic_char_set<charT, traits> char_set;
803
+ if(negate)
804
+ char_set.negate();
805
+ char_set.add_class(m);
806
+ if(0 == this->append_set(char_set))
807
+ {
808
+ fail(regex_constants::error_ctype, m_position - m_base);
809
+ return false;
810
+ }
811
+ return true;
812
+ }
813
+ fail(regex_constants::error_ctype, m_position - m_base, "Escape sequence was neither a valid property nor a valid character class name.");
814
+ return false;
815
+ }
816
+ case regex_constants::escape_type_reset_start_mark:
817
+ if(0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex)))
818
+ {
819
+ re_brace* pb = static_cast<re_brace*>(this->append_state(syntax_element_startmark, sizeof(re_brace)));
820
+ pb->index = -5;
821
+ pb->icase = this->flags() & regbase::icase;
822
+ this->m_pdata->m_data.align();
823
+ ++m_position;
824
+ return true;
825
+ }
826
+ goto escape_type_class_jump;
827
+ case regex_constants::escape_type_line_ending:
828
+ if(0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex)))
829
+ {
830
+ const charT* e = get_escape_R_string<charT>();
831
+ const charT* old_position = m_position;
832
+ const charT* old_end = m_end;
833
+ const charT* old_base = m_base;
834
+ m_position = e;
835
+ m_base = e;
836
+ m_end = e + traits::length(e);
837
+ bool r = parse_all();
838
+ m_position = ++old_position;
839
+ m_end = old_end;
840
+ m_base = old_base;
841
+ return r;
842
+ }
843
+ goto escape_type_class_jump;
844
+ case regex_constants::escape_type_extended_backref:
845
+ if(0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex)))
846
+ {
847
+ bool have_brace = false;
848
+ bool negative = false;
849
+ static const char incomplete_message[] = "Incomplete \\g escape found.";
850
+ if(++m_position == m_end)
851
+ {
852
+ fail(regex_constants::error_escape, m_position - m_base, incomplete_message);
853
+ return false;
854
+ }
855
+ // maybe have \g{ddd}
856
+ regex_constants::syntax_type syn = this->m_traits.syntax_type(*m_position);
857
+ regex_constants::syntax_type syn_end = 0;
858
+ if((syn == regex_constants::syntax_open_brace)
859
+ || (syn == regex_constants::escape_type_left_word)
860
+ || (syn == regex_constants::escape_type_end_buffer))
861
+ {
862
+ if(++m_position == m_end)
863
+ {
864
+ fail(regex_constants::error_escape, m_position - m_base, incomplete_message);
865
+ return false;
866
+ }
867
+ have_brace = true;
868
+ switch(syn)
869
+ {
870
+ case regex_constants::syntax_open_brace:
871
+ syn_end = regex_constants::syntax_close_brace;
872
+ break;
873
+ case regex_constants::escape_type_left_word:
874
+ syn_end = regex_constants::escape_type_right_word;
875
+ break;
876
+ default:
877
+ syn_end = regex_constants::escape_type_end_buffer;
878
+ break;
879
+ }
880
+ }
881
+ negative = (*m_position == static_cast<charT>('-'));
882
+ if((negative) && (++m_position == m_end))
883
+ {
884
+ fail(regex_constants::error_escape, m_position - m_base, incomplete_message);
885
+ return false;
886
+ }
887
+ const charT* pc = m_position;
888
+ std::intmax_t i = this->m_traits.toi(pc, m_end, 10);
889
+ if((i < 0) && syn_end)
890
+ {
891
+ // Check for a named capture, get the leftmost one if there is more than one:
892
+ const charT* base = m_position;
893
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != syn_end))
894
+ {
895
+ ++m_position;
896
+ }
897
+ i = hash_value_from_capture_name(base, m_position);
898
+ pc = m_position;
899
+ }
900
+ if(negative)
901
+ i = 1 + (static_cast<std::intmax_t>(m_mark_count) - i);
902
+ if(((i < hash_value_mask) && (i > 0) && (this->m_backrefs.test((std::size_t)i))) || ((i >= hash_value_mask) && (this->m_pdata->get_id((int)i) > 0) && (this->m_backrefs.test(this->m_pdata->get_id((int)i)))))
903
+ {
904
+ m_position = pc;
905
+ re_brace* pb = static_cast<re_brace*>(this->append_state(syntax_element_backref, sizeof(re_brace)));
906
+ pb->index = (int)i;
907
+ pb->icase = this->flags() & regbase::icase;
908
+ }
909
+ else
910
+ {
911
+ fail(regex_constants::error_backref, m_position - m_base);
912
+ return false;
913
+ }
914
+ m_position = pc;
915
+ if(have_brace)
916
+ {
917
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != syn_end))
918
+ {
919
+ fail(regex_constants::error_escape, m_position - m_base, incomplete_message);
920
+ return false;
921
+ }
922
+ ++m_position;
923
+ }
924
+ return true;
925
+ }
926
+ goto escape_type_class_jump;
927
+ case regex_constants::escape_type_control_v:
928
+ if(0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex)))
929
+ goto escape_type_class_jump;
930
+ BOOST_REGEX_FALLTHROUGH;
931
+ default:
932
+ this->append_literal(unescape_character());
933
+ break;
934
+ }
935
+ return true;
936
+ }
937
+
938
+ template <class charT, class traits>
939
+ bool basic_regex_parser<charT, traits>::parse_match_any()
940
+ {
941
+ //
942
+ // we have a '.' that can match any character:
943
+ //
944
+ ++m_position;
945
+ static_cast<re_dot*>(
946
+ this->append_state(syntax_element_wild, sizeof(re_dot))
947
+ )->mask = static_cast<unsigned char>(this->flags() & regbase::no_mod_s
948
+ ? BOOST_REGEX_DETAIL_NS::force_not_newline
949
+ : this->flags() & regbase::mod_s ?
950
+ BOOST_REGEX_DETAIL_NS::force_newline : BOOST_REGEX_DETAIL_NS::dont_care);
951
+ return true;
952
+ }
953
+
954
+ template <class charT, class traits>
955
+ bool basic_regex_parser<charT, traits>::parse_repeat(std::size_t low, std::size_t high)
956
+ {
957
+ bool greedy = true;
958
+ bool possessive = false;
959
+ std::size_t insert_point;
960
+ //
961
+ // when we get to here we may have a non-greedy ? mark still to come:
962
+ //
963
+ if((m_position != m_end)
964
+ && (
965
+ (0 == (this->flags() & (regbase::main_option_type | regbase::no_perl_ex)))
966
+ || ((regbase::basic_syntax_group|regbase::emacs_ex) == (this->flags() & (regbase::main_option_type | regbase::emacs_ex)))
967
+ )
968
+ )
969
+ {
970
+ // OK we have a perl or emacs regex, check for a '?':
971
+ if ((this->flags() & (regbase::main_option_type | regbase::mod_x | regbase::no_perl_ex)) == regbase::mod_x)
972
+ {
973
+ // whitespace skip:
974
+ while ((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
975
+ ++m_position;
976
+ }
977
+ if((m_position != m_end) && (this->m_traits.syntax_type(*m_position) == regex_constants::syntax_question))
978
+ {
979
+ greedy = false;
980
+ ++m_position;
981
+ }
982
+ // for perl regexes only check for possessive ++ repeats.
983
+ if((m_position != m_end)
984
+ && (0 == (this->flags() & regbase::main_option_type))
985
+ && (this->m_traits.syntax_type(*m_position) == regex_constants::syntax_plus))
986
+ {
987
+ possessive = true;
988
+ ++m_position;
989
+ }
990
+ }
991
+ if(0 == this->m_last_state)
992
+ {
993
+ fail(regex_constants::error_badrepeat, std::distance(m_base, m_position), "Nothing to repeat.");
994
+ return false;
995
+ }
996
+ if(this->m_last_state->type == syntax_element_endmark)
997
+ {
998
+ // insert a repeat before the '(' matching the last ')':
999
+ insert_point = this->m_paren_start;
1000
+ }
1001
+ else if((this->m_last_state->type == syntax_element_literal) && (static_cast<re_literal*>(this->m_last_state)->length > 1))
1002
+ {
1003
+ // the last state was a literal with more than one character, split it in two:
1004
+ re_literal* lit = static_cast<re_literal*>(this->m_last_state);
1005
+ charT c = (static_cast<charT*>(static_cast<void*>(lit+1)))[lit->length - 1];
1006
+ lit->length -= 1;
1007
+ // now append new state:
1008
+ lit = static_cast<re_literal*>(this->append_state(syntax_element_literal, sizeof(re_literal) + sizeof(charT)));
1009
+ lit->length = 1;
1010
+ (static_cast<charT*>(static_cast<void*>(lit+1)))[0] = c;
1011
+ insert_point = this->getoffset(this->m_last_state);
1012
+ }
1013
+ else
1014
+ {
1015
+ // repeat the last state whatever it was, need to add some error checking here:
1016
+ switch(this->m_last_state->type)
1017
+ {
1018
+ case syntax_element_start_line:
1019
+ case syntax_element_end_line:
1020
+ case syntax_element_word_boundary:
1021
+ case syntax_element_within_word:
1022
+ case syntax_element_word_start:
1023
+ case syntax_element_word_end:
1024
+ case syntax_element_buffer_start:
1025
+ case syntax_element_buffer_end:
1026
+ case syntax_element_alt:
1027
+ case syntax_element_soft_buffer_end:
1028
+ case syntax_element_restart_continue:
1029
+ case syntax_element_jump:
1030
+ case syntax_element_startmark:
1031
+ case syntax_element_backstep:
1032
+ // can't legally repeat any of the above:
1033
+ fail(regex_constants::error_badrepeat, m_position - m_base);
1034
+ return false;
1035
+ default:
1036
+ // do nothing...
1037
+ break;
1038
+ }
1039
+ insert_point = this->getoffset(this->m_last_state);
1040
+ }
1041
+ //
1042
+ // OK we now know what to repeat, so insert the repeat around it:
1043
+ //
1044
+ re_repeat* rep = static_cast<re_repeat*>(this->insert_state(insert_point, syntax_element_rep, re_repeater_size));
1045
+ rep->min = low;
1046
+ rep->max = high;
1047
+ rep->greedy = greedy;
1048
+ rep->leading = false;
1049
+ // store our repeater position for later:
1050
+ std::ptrdiff_t rep_off = this->getoffset(rep);
1051
+ // and append a back jump to the repeat:
1052
+ re_jump* jmp = static_cast<re_jump*>(this->append_state(syntax_element_jump, sizeof(re_jump)));
1053
+ jmp->alt.i = rep_off - this->getoffset(jmp);
1054
+ this->m_pdata->m_data.align();
1055
+ // now fill in the alt jump for the repeat:
1056
+ rep = static_cast<re_repeat*>(this->getaddress(rep_off));
1057
+ rep->alt.i = this->m_pdata->m_data.size() - rep_off;
1058
+ //
1059
+ // If the repeat is possessive then bracket the repeat with a (?>...)
1060
+ // independent sub-expression construct:
1061
+ //
1062
+ if(possessive)
1063
+ {
1064
+ if(m_position != m_end)
1065
+ {
1066
+ //
1067
+ // Check for illegal following quantifier, we have to do this here, because
1068
+ // the extra states we insert below circumvents our usual error checking :-(
1069
+ //
1070
+ bool contin = false;
1071
+ do
1072
+ {
1073
+ if ((this->flags() & (regbase::main_option_type | regbase::mod_x | regbase::no_perl_ex)) == regbase::mod_x)
1074
+ {
1075
+ // whitespace skip:
1076
+ while ((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
1077
+ ++m_position;
1078
+ }
1079
+ if (m_position != m_end)
1080
+ {
1081
+ switch (this->m_traits.syntax_type(*m_position))
1082
+ {
1083
+ case regex_constants::syntax_star:
1084
+ case regex_constants::syntax_plus:
1085
+ case regex_constants::syntax_question:
1086
+ case regex_constants::syntax_open_brace:
1087
+ fail(regex_constants::error_badrepeat, m_position - m_base);
1088
+ return false;
1089
+ case regex_constants::syntax_open_mark:
1090
+ // Do we have a comment? If so we need to skip it here...
1091
+ if ((m_position + 2 < m_end) && this->m_traits.syntax_type(*(m_position + 1)) == regex_constants::syntax_question
1092
+ && this->m_traits.syntax_type(*(m_position + 2)) == regex_constants::syntax_hash)
1093
+ {
1094
+ while ((m_position != m_end)
1095
+ && (this->m_traits.syntax_type(*m_position++) != regex_constants::syntax_close_mark)) {
1096
+ }
1097
+ contin = true;
1098
+ }
1099
+ else
1100
+ contin = false;
1101
+ break;
1102
+ default:
1103
+ contin = false;
1104
+ }
1105
+ }
1106
+ else
1107
+ contin = false;
1108
+ } while (contin);
1109
+ }
1110
+ re_brace* pb = static_cast<re_brace*>(this->insert_state(insert_point, syntax_element_startmark, sizeof(re_brace)));
1111
+ pb->index = -3;
1112
+ pb->icase = this->flags() & regbase::icase;
1113
+ jmp = static_cast<re_jump*>(this->insert_state(insert_point + sizeof(re_brace), syntax_element_jump, sizeof(re_jump)));
1114
+ this->m_pdata->m_data.align();
1115
+ jmp->alt.i = this->m_pdata->m_data.size() - this->getoffset(jmp);
1116
+ pb = static_cast<re_brace*>(this->append_state(syntax_element_endmark, sizeof(re_brace)));
1117
+ pb->index = -3;
1118
+ pb->icase = this->flags() & regbase::icase;
1119
+ }
1120
+ return true;
1121
+ }
1122
+
1123
+ template <class charT, class traits>
1124
+ bool basic_regex_parser<charT, traits>::parse_repeat_range(bool isbasic)
1125
+ {
1126
+ static const char incomplete_message[] = "Missing } in quantified repetition.";
1127
+ //
1128
+ // parse a repeat-range:
1129
+ //
1130
+ std::size_t min, max;
1131
+ std::intmax_t v;
1132
+ // skip whitespace:
1133
+ while((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
1134
+ ++m_position;
1135
+ if(this->m_position == this->m_end)
1136
+ {
1137
+ if(this->flags() & (regbase::main_option_type | regbase::no_perl_ex))
1138
+ {
1139
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1140
+ return false;
1141
+ }
1142
+ // Treat the opening '{' as a literal character, rewind to start of error:
1143
+ --m_position;
1144
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1145
+ return parse_literal();
1146
+ }
1147
+ // get min:
1148
+ v = this->m_traits.toi(m_position, m_end, 10);
1149
+ // skip whitespace:
1150
+ if((v < 0) || (v > umax()))
1151
+ {
1152
+ if(this->flags() & (regbase::main_option_type | regbase::no_perl_ex))
1153
+ {
1154
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1155
+ return false;
1156
+ }
1157
+ // Treat the opening '{' as a literal character, rewind to start of error:
1158
+ --m_position;
1159
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1160
+ return parse_literal();
1161
+ }
1162
+ while((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
1163
+ ++m_position;
1164
+ if(this->m_position == this->m_end)
1165
+ {
1166
+ if(this->flags() & (regbase::main_option_type | regbase::no_perl_ex))
1167
+ {
1168
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1169
+ return false;
1170
+ }
1171
+ // Treat the opening '{' as a literal character, rewind to start of error:
1172
+ --m_position;
1173
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1174
+ return parse_literal();
1175
+ }
1176
+ min = static_cast<std::size_t>(v);
1177
+ // see if we have a comma:
1178
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_comma)
1179
+ {
1180
+ // move on and error check:
1181
+ ++m_position;
1182
+ // skip whitespace:
1183
+ while((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
1184
+ ++m_position;
1185
+ if(this->m_position == this->m_end)
1186
+ {
1187
+ if(this->flags() & (regbase::main_option_type | regbase::no_perl_ex))
1188
+ {
1189
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1190
+ return false;
1191
+ }
1192
+ // Treat the opening '{' as a literal character, rewind to start of error:
1193
+ --m_position;
1194
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1195
+ return parse_literal();
1196
+ }
1197
+ // get the value if any:
1198
+ v = this->m_traits.toi(m_position, m_end, 10);
1199
+ max = ((v >= 0) && (v < umax())) ? (std::size_t)v : (std::numeric_limits<std::size_t>::max)();
1200
+ }
1201
+ else
1202
+ {
1203
+ // no comma, max = min:
1204
+ max = min;
1205
+ }
1206
+ // skip whitespace:
1207
+ while((m_position != m_end) && this->m_traits.isctype(*m_position, this->m_mask_space))
1208
+ ++m_position;
1209
+ // OK now check trailing }:
1210
+ if(this->m_position == this->m_end)
1211
+ {
1212
+ if(this->flags() & (regbase::main_option_type | regbase::no_perl_ex))
1213
+ {
1214
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1215
+ return false;
1216
+ }
1217
+ // Treat the opening '{' as a literal character, rewind to start of error:
1218
+ --m_position;
1219
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1220
+ return parse_literal();
1221
+ }
1222
+ if(isbasic)
1223
+ {
1224
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_escape)
1225
+ {
1226
+ ++m_position;
1227
+ if(this->m_position == this->m_end)
1228
+ {
1229
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1230
+ return false;
1231
+ }
1232
+ }
1233
+ else
1234
+ {
1235
+ fail(regex_constants::error_brace, this->m_position - this->m_base, incomplete_message);
1236
+ return false;
1237
+ }
1238
+ }
1239
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_close_brace)
1240
+ ++m_position;
1241
+ else
1242
+ {
1243
+ // Treat the opening '{' as a literal character, rewind to start of error:
1244
+ --m_position;
1245
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_brace) --m_position;
1246
+ return parse_literal();
1247
+ }
1248
+ //
1249
+ // finally go and add the repeat, unless error:
1250
+ //
1251
+ if(min > max)
1252
+ {
1253
+ // Backtrack to error location:
1254
+ m_position -= 2;
1255
+ while(this->m_traits.isctype(*m_position, this->m_word_mask)) --m_position;
1256
+ ++m_position;
1257
+ fail(regex_constants::error_badbrace, m_position - m_base);
1258
+ return false;
1259
+ }
1260
+ return parse_repeat(min, max);
1261
+ }
1262
+
1263
+ template <class charT, class traits>
1264
+ bool basic_regex_parser<charT, traits>::parse_alt()
1265
+ {
1266
+ //
1267
+ // error check: if there have been no previous states,
1268
+ // or if the last state was a '(' then error:
1269
+ //
1270
+ if(
1271
+ ((this->m_last_state == 0) || (this->m_last_state->type == syntax_element_startmark))
1272
+ &&
1273
+ !(
1274
+ ((this->flags() & regbase::main_option_type) == regbase::perl_syntax_group)
1275
+ &&
1276
+ ((this->flags() & regbase::no_empty_expressions) == 0)
1277
+ )
1278
+ )
1279
+ {
1280
+ fail(regex_constants::error_empty, this->m_position - this->m_base, "A regular expression cannot start with the alternation operator |.");
1281
+ return false;
1282
+ }
1283
+ //
1284
+ // Reset mark count if required:
1285
+ //
1286
+ if(m_max_mark < m_mark_count)
1287
+ m_max_mark = m_mark_count;
1288
+ if(m_mark_reset >= 0)
1289
+ m_mark_count = m_mark_reset;
1290
+
1291
+ ++m_position;
1292
+ //
1293
+ // we need to append a trailing jump:
1294
+ //
1295
+ re_syntax_base* pj = this->append_state(BOOST_REGEX_DETAIL_NS::syntax_element_jump, sizeof(re_jump));
1296
+ std::ptrdiff_t jump_offset = this->getoffset(pj);
1297
+ //
1298
+ // now insert the alternative:
1299
+ //
1300
+ re_alt* palt = static_cast<re_alt*>(this->insert_state(this->m_alt_insert_point, syntax_element_alt, re_alt_size));
1301
+ jump_offset += re_alt_size;
1302
+ this->m_pdata->m_data.align();
1303
+ palt->alt.i = this->m_pdata->m_data.size() - this->getoffset(palt);
1304
+ //
1305
+ // update m_alt_insert_point so that the next alternate gets
1306
+ // inserted at the start of the second of the two we've just created:
1307
+ //
1308
+ this->m_alt_insert_point = this->m_pdata->m_data.size();
1309
+ //
1310
+ // the start of this alternative must have a case changes state
1311
+ // if the current block has messed around with case changes:
1312
+ //
1313
+ if(m_has_case_change)
1314
+ {
1315
+ static_cast<re_case*>(
1316
+ this->append_state(syntax_element_toggle_case, sizeof(re_case))
1317
+ )->icase = this->m_icase;
1318
+ }
1319
+ //
1320
+ // push the alternative onto our stack, a recursive
1321
+ // implementation here is easier to understand (and faster
1322
+ // as it happens), but causes all kinds of stack overflow problems
1323
+ // on programs with small stacks (COM+).
1324
+ //
1325
+ m_alt_jumps.push_back(jump_offset);
1326
+ return true;
1327
+ }
1328
+
1329
+ template <class charT, class traits>
1330
+ bool basic_regex_parser<charT, traits>::parse_set()
1331
+ {
1332
+ static const char incomplete_message[] = "Character set declaration starting with [ terminated prematurely - either no ] was found or the set had no content.";
1333
+ ++m_position;
1334
+ if(m_position == m_end)
1335
+ {
1336
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1337
+ return false;
1338
+ }
1339
+ basic_char_set<charT, traits> char_set;
1340
+
1341
+ const charT* base = m_position; // where the '[' was
1342
+ const charT* item_base = m_position; // where the '[' or '^' was
1343
+
1344
+ while(m_position != m_end)
1345
+ {
1346
+ switch(this->m_traits.syntax_type(*m_position))
1347
+ {
1348
+ case regex_constants::syntax_caret:
1349
+ if(m_position == base)
1350
+ {
1351
+ char_set.negate();
1352
+ ++m_position;
1353
+ item_base = m_position;
1354
+ }
1355
+ else
1356
+ parse_set_literal(char_set);
1357
+ break;
1358
+ case regex_constants::syntax_close_set:
1359
+ if(m_position == item_base)
1360
+ {
1361
+ parse_set_literal(char_set);
1362
+ break;
1363
+ }
1364
+ else
1365
+ {
1366
+ ++m_position;
1367
+ if(0 == this->append_set(char_set))
1368
+ {
1369
+ fail(regex_constants::error_ctype, m_position - m_base);
1370
+ return false;
1371
+ }
1372
+ }
1373
+ return true;
1374
+ case regex_constants::syntax_open_set:
1375
+ if(parse_inner_set(char_set))
1376
+ break;
1377
+ return true;
1378
+ case regex_constants::syntax_escape:
1379
+ {
1380
+ //
1381
+ // look ahead and see if this is a character class shortcut
1382
+ // \d \w \s etc...
1383
+ //
1384
+ ++m_position;
1385
+ if(this->m_traits.escape_syntax_type(*m_position)
1386
+ == regex_constants::escape_type_class)
1387
+ {
1388
+ char_class_type m = this->m_traits.lookup_classname(m_position, m_position+1);
1389
+ if(m != 0)
1390
+ {
1391
+ char_set.add_class(m);
1392
+ ++m_position;
1393
+ break;
1394
+ }
1395
+ }
1396
+ else if(this->m_traits.escape_syntax_type(*m_position)
1397
+ == regex_constants::escape_type_not_class)
1398
+ {
1399
+ // negated character class:
1400
+ char_class_type m = this->m_traits.lookup_classname(m_position, m_position+1);
1401
+ if(m != 0)
1402
+ {
1403
+ char_set.add_negated_class(m);
1404
+ ++m_position;
1405
+ break;
1406
+ }
1407
+ }
1408
+ // not a character class, just a regular escape:
1409
+ --m_position;
1410
+ parse_set_literal(char_set);
1411
+ break;
1412
+ }
1413
+ default:
1414
+ parse_set_literal(char_set);
1415
+ break;
1416
+ }
1417
+ }
1418
+ return m_position != m_end;
1419
+ }
1420
+
1421
+ template <class charT, class traits>
1422
+ bool basic_regex_parser<charT, traits>::parse_inner_set(basic_char_set<charT, traits>& char_set)
1423
+ {
1424
+ static const char incomplete_message[] = "Character class declaration starting with [ terminated prematurely - either no ] was found or the set had no content.";
1425
+ //
1426
+ // we have either a character class [:name:]
1427
+ // a collating element [.name.]
1428
+ // or an equivalence class [=name=]
1429
+ //
1430
+ if(m_end == ++m_position)
1431
+ {
1432
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1433
+ return false;
1434
+ }
1435
+ switch(this->m_traits.syntax_type(*m_position))
1436
+ {
1437
+ case regex_constants::syntax_dot:
1438
+ //
1439
+ // a collating element is treated as a literal:
1440
+ //
1441
+ --m_position;
1442
+ parse_set_literal(char_set);
1443
+ return true;
1444
+ case regex_constants::syntax_colon:
1445
+ {
1446
+ // check that character classes are actually enabled:
1447
+ if((this->flags() & (regbase::main_option_type | regbase::no_char_classes))
1448
+ == (regbase::basic_syntax_group | regbase::no_char_classes))
1449
+ {
1450
+ --m_position;
1451
+ parse_set_literal(char_set);
1452
+ return true;
1453
+ }
1454
+ // skip the ':'
1455
+ if(m_end == ++m_position)
1456
+ {
1457
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1458
+ return false;
1459
+ }
1460
+ const charT* name_first = m_position;
1461
+ // skip at least one character, then find the matching ':]'
1462
+ if(m_end == ++m_position)
1463
+ {
1464
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1465
+ return false;
1466
+ }
1467
+ while((m_position != m_end)
1468
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_colon))
1469
+ ++m_position;
1470
+ const charT* name_last = m_position;
1471
+ if(m_end == m_position)
1472
+ {
1473
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1474
+ return false;
1475
+ }
1476
+ if((m_end == ++m_position)
1477
+ || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_set))
1478
+ {
1479
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1480
+ return false;
1481
+ }
1482
+ //
1483
+ // check for negated class:
1484
+ //
1485
+ bool negated = false;
1486
+ if(this->m_traits.syntax_type(*name_first) == regex_constants::syntax_caret)
1487
+ {
1488
+ ++name_first;
1489
+ negated = true;
1490
+ }
1491
+ typedef typename traits::char_class_type m_type;
1492
+ m_type m = this->m_traits.lookup_classname(name_first, name_last);
1493
+ if(m == 0)
1494
+ {
1495
+ if(char_set.empty() && (name_last - name_first == 1))
1496
+ {
1497
+ // maybe a special case:
1498
+ ++m_position;
1499
+ if( (m_position != m_end)
1500
+ && (this->m_traits.syntax_type(*m_position)
1501
+ == regex_constants::syntax_close_set))
1502
+ {
1503
+ if(this->m_traits.escape_syntax_type(*name_first)
1504
+ == regex_constants::escape_type_left_word)
1505
+ {
1506
+ ++m_position;
1507
+ this->append_state(syntax_element_word_start);
1508
+ return false;
1509
+ }
1510
+ if(this->m_traits.escape_syntax_type(*name_first)
1511
+ == regex_constants::escape_type_right_word)
1512
+ {
1513
+ ++m_position;
1514
+ this->append_state(syntax_element_word_end);
1515
+ return false;
1516
+ }
1517
+ }
1518
+ }
1519
+ fail(regex_constants::error_ctype, name_first - m_base);
1520
+ return false;
1521
+ }
1522
+ if(!negated)
1523
+ char_set.add_class(m);
1524
+ else
1525
+ char_set.add_negated_class(m);
1526
+ ++m_position;
1527
+ break;
1528
+ }
1529
+ case regex_constants::syntax_equal:
1530
+ {
1531
+ // skip the '='
1532
+ if(m_end == ++m_position)
1533
+ {
1534
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1535
+ return false;
1536
+ }
1537
+ const charT* name_first = m_position;
1538
+ // skip at least one character, then find the matching '=]'
1539
+ if(m_end == ++m_position)
1540
+ {
1541
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1542
+ return false;
1543
+ }
1544
+ while((m_position != m_end)
1545
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_equal))
1546
+ ++m_position;
1547
+ const charT* name_last = m_position;
1548
+ if(m_end == m_position)
1549
+ {
1550
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1551
+ return false;
1552
+ }
1553
+ if((m_end == ++m_position)
1554
+ || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_set))
1555
+ {
1556
+ fail(regex_constants::error_brack, m_position - m_base, incomplete_message);
1557
+ return false;
1558
+ }
1559
+ string_type m = this->m_traits.lookup_collatename(name_first, name_last);
1560
+ if(m.empty() || (m.size() > 2))
1561
+ {
1562
+ fail(regex_constants::error_collate, name_first - m_base);
1563
+ return false;
1564
+ }
1565
+ digraph<charT> d;
1566
+ d.first = m[0];
1567
+ if(m.size() > 1)
1568
+ d.second = m[1];
1569
+ else
1570
+ d.second = 0;
1571
+ char_set.add_equivalent(d);
1572
+ ++m_position;
1573
+ break;
1574
+ }
1575
+ default:
1576
+ --m_position;
1577
+ parse_set_literal(char_set);
1578
+ break;
1579
+ }
1580
+ return true;
1581
+ }
1582
+
1583
+ template <class charT, class traits>
1584
+ void basic_regex_parser<charT, traits>::parse_set_literal(basic_char_set<charT, traits>& char_set)
1585
+ {
1586
+ digraph<charT> start_range(get_next_set_literal(char_set));
1587
+ if(m_end == m_position)
1588
+ {
1589
+ fail(regex_constants::error_brack, m_position - m_base);
1590
+ return;
1591
+ }
1592
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_dash)
1593
+ {
1594
+ // we have a range:
1595
+ if(m_end == ++m_position)
1596
+ {
1597
+ fail(regex_constants::error_brack, m_position - m_base);
1598
+ return;
1599
+ }
1600
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_set)
1601
+ {
1602
+ digraph<charT> end_range = get_next_set_literal(char_set);
1603
+ char_set.add_range(start_range, end_range);
1604
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_dash)
1605
+ {
1606
+ if(m_end == ++m_position)
1607
+ {
1608
+ fail(regex_constants::error_brack, m_position - m_base);
1609
+ return;
1610
+ }
1611
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_close_set)
1612
+ {
1613
+ // trailing - :
1614
+ --m_position;
1615
+ return;
1616
+ }
1617
+ fail(regex_constants::error_range, m_position - m_base);
1618
+ return;
1619
+ }
1620
+ return;
1621
+ }
1622
+ --m_position;
1623
+ }
1624
+ char_set.add_single(start_range);
1625
+ }
1626
+
1627
+ template <class charT, class traits>
1628
+ digraph<charT> basic_regex_parser<charT, traits>::get_next_set_literal(basic_char_set<charT, traits>& char_set)
1629
+ {
1630
+ digraph<charT> result;
1631
+ switch(this->m_traits.syntax_type(*m_position))
1632
+ {
1633
+ case regex_constants::syntax_dash:
1634
+ if(!char_set.empty())
1635
+ {
1636
+ // see if we are at the end of the set:
1637
+ if((++m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_set))
1638
+ {
1639
+ fail(regex_constants::error_range, m_position - m_base);
1640
+ return result;
1641
+ }
1642
+ --m_position;
1643
+ }
1644
+ result.first = *m_position++;
1645
+ return result;
1646
+ case regex_constants::syntax_escape:
1647
+ // check to see if escapes are supported first:
1648
+ if(this->flags() & regex_constants::no_escape_in_lists)
1649
+ {
1650
+ result = *m_position++;
1651
+ break;
1652
+ }
1653
+ ++m_position;
1654
+ result = unescape_character();
1655
+ break;
1656
+ case regex_constants::syntax_open_set:
1657
+ {
1658
+ if(m_end == ++m_position)
1659
+ {
1660
+ fail(regex_constants::error_collate, m_position - m_base);
1661
+ return result;
1662
+ }
1663
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_dot)
1664
+ {
1665
+ --m_position;
1666
+ result.first = *m_position;
1667
+ ++m_position;
1668
+ return result;
1669
+ }
1670
+ if(m_end == ++m_position)
1671
+ {
1672
+ fail(regex_constants::error_collate, m_position - m_base);
1673
+ return result;
1674
+ }
1675
+ const charT* name_first = m_position;
1676
+ // skip at least one character, then find the matching ':]'
1677
+ if(m_end == ++m_position)
1678
+ {
1679
+ fail(regex_constants::error_collate, name_first - m_base);
1680
+ return result;
1681
+ }
1682
+ while((m_position != m_end)
1683
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_dot))
1684
+ ++m_position;
1685
+ const charT* name_last = m_position;
1686
+ if(m_end == m_position)
1687
+ {
1688
+ fail(regex_constants::error_collate, name_first - m_base);
1689
+ return result;
1690
+ }
1691
+ if((m_end == ++m_position)
1692
+ || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_set))
1693
+ {
1694
+ fail(regex_constants::error_collate, name_first - m_base);
1695
+ return result;
1696
+ }
1697
+ ++m_position;
1698
+ string_type s = this->m_traits.lookup_collatename(name_first, name_last);
1699
+ if(s.empty() || (s.size() > 2))
1700
+ {
1701
+ fail(regex_constants::error_collate, name_first - m_base);
1702
+ return result;
1703
+ }
1704
+ result.first = s[0];
1705
+ if(s.size() > 1)
1706
+ result.second = s[1];
1707
+ else
1708
+ result.second = 0;
1709
+ return result;
1710
+ }
1711
+ default:
1712
+ result = *m_position++;
1713
+ }
1714
+ return result;
1715
+ }
1716
+
1717
+ //
1718
+ // does a value fit in the specified charT type?
1719
+ //
1720
+ template <class charT>
1721
+ bool valid_value(charT, std::intmax_t v, const std::integral_constant<bool, true>&)
1722
+ {
1723
+ return (v >> (sizeof(charT) * CHAR_BIT)) == 0;
1724
+ }
1725
+ template <class charT>
1726
+ bool valid_value(charT, std::intmax_t, const std::integral_constant<bool, false>&)
1727
+ {
1728
+ return true; // v will alsways fit in a charT
1729
+ }
1730
+ template <class charT>
1731
+ bool valid_value(charT c, std::intmax_t v)
1732
+ {
1733
+ return valid_value(c, v, std::integral_constant<bool, (sizeof(charT) < sizeof(std::intmax_t))>());
1734
+ }
1735
+
1736
+ template <class charT, class traits>
1737
+ charT basic_regex_parser<charT, traits>::unescape_character()
1738
+ {
1739
+ #ifdef BOOST_REGEX_MSVC
1740
+ #pragma warning(push)
1741
+ #pragma warning(disable:4127)
1742
+ #endif
1743
+ charT result(0);
1744
+ if(m_position == m_end)
1745
+ {
1746
+ fail(regex_constants::error_escape, m_position - m_base, "Escape sequence terminated prematurely.");
1747
+ return false;
1748
+ }
1749
+ switch(this->m_traits.escape_syntax_type(*m_position))
1750
+ {
1751
+ case regex_constants::escape_type_control_a:
1752
+ result = charT('\a');
1753
+ break;
1754
+ case regex_constants::escape_type_e:
1755
+ result = charT(27);
1756
+ break;
1757
+ case regex_constants::escape_type_control_f:
1758
+ result = charT('\f');
1759
+ break;
1760
+ case regex_constants::escape_type_control_n:
1761
+ result = charT('\n');
1762
+ break;
1763
+ case regex_constants::escape_type_control_r:
1764
+ result = charT('\r');
1765
+ break;
1766
+ case regex_constants::escape_type_control_t:
1767
+ result = charT('\t');
1768
+ break;
1769
+ case regex_constants::escape_type_control_v:
1770
+ result = charT('\v');
1771
+ break;
1772
+ case regex_constants::escape_type_word_assert:
1773
+ result = charT('\b');
1774
+ break;
1775
+ case regex_constants::escape_type_ascii_control:
1776
+ ++m_position;
1777
+ if(m_position == m_end)
1778
+ {
1779
+ // Rewind to start of escape:
1780
+ --m_position;
1781
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1782
+ fail(regex_constants::error_escape, m_position - m_base, "ASCII escape sequence terminated prematurely.");
1783
+ return result;
1784
+ }
1785
+ result = static_cast<charT>(*m_position % 32);
1786
+ break;
1787
+ case regex_constants::escape_type_hex:
1788
+ ++m_position;
1789
+ if(m_position == m_end)
1790
+ {
1791
+ // Rewind to start of escape:
1792
+ --m_position;
1793
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1794
+ fail(regex_constants::error_escape, m_position - m_base, "Hexadecimal escape sequence terminated prematurely.");
1795
+ return result;
1796
+ }
1797
+ // maybe have \x{ddd}
1798
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_open_brace)
1799
+ {
1800
+ ++m_position;
1801
+ if(m_position == m_end)
1802
+ {
1803
+ // Rewind to start of escape:
1804
+ --m_position;
1805
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1806
+ fail(regex_constants::error_escape, m_position - m_base, "Missing } in hexadecimal escape sequence.");
1807
+ return result;
1808
+ }
1809
+ std::intmax_t i = this->m_traits.toi(m_position, m_end, 16);
1810
+ if((m_position == m_end)
1811
+ || (i < 0)
1812
+ || ((std::numeric_limits<charT>::is_specialized) && (i > (std::intmax_t)(std::numeric_limits<charT>::max)()))
1813
+ || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_brace))
1814
+ {
1815
+ // Rewind to start of escape:
1816
+ --m_position;
1817
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1818
+ fail(regex_constants::error_badbrace, m_position - m_base, "Hexadecimal escape sequence was invalid.");
1819
+ return result;
1820
+ }
1821
+ ++m_position;
1822
+ result = charT(i);
1823
+ }
1824
+ else
1825
+ {
1826
+ std::ptrdiff_t len = (std::min)(static_cast<std::ptrdiff_t>(2), static_cast<std::ptrdiff_t>(m_end - m_position));
1827
+ std::intmax_t i = this->m_traits.toi(m_position, m_position + len, 16);
1828
+ if((i < 0)
1829
+ || !valid_value(charT(0), i))
1830
+ {
1831
+ // Rewind to start of escape:
1832
+ --m_position;
1833
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1834
+ fail(regex_constants::error_escape, m_position - m_base, "Escape sequence did not encode a valid character.");
1835
+ return result;
1836
+ }
1837
+ result = charT(i);
1838
+ }
1839
+ return result;
1840
+ case regex_constants::syntax_digit:
1841
+ {
1842
+ // an octal escape sequence, the first character must be a zero
1843
+ // followed by up to 3 octal digits:
1844
+ std::ptrdiff_t len = (std::min)(std::distance(m_position, m_end), static_cast<std::ptrdiff_t>(4));
1845
+ const charT* bp = m_position;
1846
+ std::intmax_t val = this->m_traits.toi(bp, bp + 1, 8);
1847
+ if(val != 0)
1848
+ {
1849
+ // Rewind to start of escape:
1850
+ --m_position;
1851
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1852
+ // Oops not an octal escape after all:
1853
+ fail(regex_constants::error_escape, m_position - m_base, "Invalid octal escape sequence.");
1854
+ return result;
1855
+ }
1856
+ val = this->m_traits.toi(m_position, m_position + len, 8);
1857
+ if((val < 0) || (val > (std::intmax_t)(std::numeric_limits<charT>::max)()))
1858
+ {
1859
+ // Rewind to start of escape:
1860
+ --m_position;
1861
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1862
+ fail(regex_constants::error_escape, m_position - m_base, "Octal escape sequence is invalid.");
1863
+ return result;
1864
+ }
1865
+ return static_cast<charT>(val);
1866
+ }
1867
+ case regex_constants::escape_type_named_char:
1868
+ {
1869
+ ++m_position;
1870
+ if(m_position == m_end)
1871
+ {
1872
+ // Rewind to start of escape:
1873
+ --m_position;
1874
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1875
+ fail(regex_constants::error_escape, m_position - m_base);
1876
+ return false;
1877
+ }
1878
+ // maybe have \N{name}
1879
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_open_brace)
1880
+ {
1881
+ const charT* base = m_position;
1882
+ // skip forward until we find enclosing brace:
1883
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_brace))
1884
+ ++m_position;
1885
+ if(m_position == m_end)
1886
+ {
1887
+ // Rewind to start of escape:
1888
+ --m_position;
1889
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1890
+ fail(regex_constants::error_escape, m_position - m_base);
1891
+ return false;
1892
+ }
1893
+ string_type s = this->m_traits.lookup_collatename(++base, m_position++);
1894
+ if(s.empty())
1895
+ {
1896
+ // Rewind to start of escape:
1897
+ --m_position;
1898
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1899
+ fail(regex_constants::error_collate, m_position - m_base);
1900
+ return false;
1901
+ }
1902
+ if(s.size() == 1)
1903
+ {
1904
+ return s[0];
1905
+ }
1906
+ }
1907
+ // fall through is a failure:
1908
+ // Rewind to start of escape:
1909
+ --m_position;
1910
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1911
+ fail(regex_constants::error_escape, m_position - m_base);
1912
+ return false;
1913
+ }
1914
+ default:
1915
+ result = *m_position;
1916
+ break;
1917
+ }
1918
+ ++m_position;
1919
+ return result;
1920
+ #ifdef BOOST_REGEX_MSVC
1921
+ #pragma warning(pop)
1922
+ #endif
1923
+ }
1924
+
1925
+ template <class charT, class traits>
1926
+ bool basic_regex_parser<charT, traits>::parse_backref()
1927
+ {
1928
+ BOOST_REGEX_ASSERT(m_position != m_end);
1929
+ const charT* pc = m_position;
1930
+ std::intmax_t i = this->m_traits.toi(pc, pc + 1, 10);
1931
+ if((i == 0) || (((this->flags() & regbase::main_option_type) == regbase::perl_syntax_group) && (this->flags() & regbase::no_bk_refs)))
1932
+ {
1933
+ // not a backref at all but an octal escape sequence:
1934
+ charT c = unescape_character();
1935
+ this->append_literal(c);
1936
+ }
1937
+ else if((i > 0) && (this->m_backrefs.test((std::size_t)i)))
1938
+ {
1939
+ m_position = pc;
1940
+ re_brace* pb = static_cast<re_brace*>(this->append_state(syntax_element_backref, sizeof(re_brace)));
1941
+ pb->index = (int)i;
1942
+ pb->icase = this->flags() & regbase::icase;
1943
+ }
1944
+ else
1945
+ {
1946
+ // Rewind to start of escape:
1947
+ --m_position;
1948
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
1949
+ fail(regex_constants::error_backref, m_position - m_base);
1950
+ return false;
1951
+ }
1952
+ return true;
1953
+ }
1954
+
1955
+ template <class charT, class traits>
1956
+ bool basic_regex_parser<charT, traits>::parse_QE()
1957
+ {
1958
+ #ifdef BOOST_REGEX_MSVC
1959
+ #pragma warning(push)
1960
+ #pragma warning(disable:4127)
1961
+ #endif
1962
+ //
1963
+ // parse a \Q...\E sequence:
1964
+ //
1965
+ ++m_position; // skip the Q
1966
+ const charT* start = m_position;
1967
+ const charT* end;
1968
+ do
1969
+ {
1970
+ while((m_position != m_end)
1971
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape))
1972
+ ++m_position;
1973
+ if(m_position == m_end)
1974
+ {
1975
+ // a \Q...\E sequence may terminate with the end of the expression:
1976
+ end = m_position;
1977
+ break;
1978
+ }
1979
+ if(++m_position == m_end) // skip the escape
1980
+ {
1981
+ fail(regex_constants::error_escape, m_position - m_base, "Unterminated \\Q...\\E sequence.");
1982
+ return false;
1983
+ }
1984
+ // check to see if it's a \E:
1985
+ if(this->m_traits.escape_syntax_type(*m_position) == regex_constants::escape_type_E)
1986
+ {
1987
+ ++m_position;
1988
+ end = m_position - 2;
1989
+ break;
1990
+ }
1991
+ // otherwise go round again:
1992
+ }while(true);
1993
+ //
1994
+ // now add all the character between the two escapes as literals:
1995
+ //
1996
+ while(start != end)
1997
+ {
1998
+ this->append_literal(*start);
1999
+ ++start;
2000
+ }
2001
+ return true;
2002
+ #ifdef BOOST_REGEX_MSVC
2003
+ #pragma warning(pop)
2004
+ #endif
2005
+ }
2006
+
2007
+ template <class charT, class traits>
2008
+ bool basic_regex_parser<charT, traits>::parse_perl_extension()
2009
+ {
2010
+ if(++m_position == m_end)
2011
+ {
2012
+ // Rewind to start of (? sequence:
2013
+ --m_position;
2014
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2015
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2016
+ return false;
2017
+ }
2018
+ //
2019
+ // treat comments as a special case, as these
2020
+ // are the only ones that don't start with a leading
2021
+ // startmark state:
2022
+ //
2023
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_hash)
2024
+ {
2025
+ while((m_position != m_end)
2026
+ && (this->m_traits.syntax_type(*m_position++) != regex_constants::syntax_close_mark))
2027
+ {}
2028
+ return true;
2029
+ }
2030
+ //
2031
+ // backup some state, and prepare the way:
2032
+ //
2033
+ int markid = 0;
2034
+ std::ptrdiff_t jump_offset = 0;
2035
+ re_brace* pb = static_cast<re_brace*>(this->append_state(syntax_element_startmark, sizeof(re_brace)));
2036
+ pb->icase = this->flags() & regbase::icase;
2037
+ std::ptrdiff_t last_paren_start = this->getoffset(pb);
2038
+ // back up insertion point for alternations, and set new point:
2039
+ std::ptrdiff_t last_alt_point = m_alt_insert_point;
2040
+ this->m_pdata->m_data.align();
2041
+ m_alt_insert_point = this->m_pdata->m_data.size();
2042
+ std::ptrdiff_t expected_alt_point = m_alt_insert_point;
2043
+ bool restore_flags = true;
2044
+ regex_constants::syntax_option_type old_flags = this->flags();
2045
+ bool old_case_change = m_has_case_change;
2046
+ m_has_case_change = false;
2047
+ charT name_delim;
2048
+ int mark_reset = m_mark_reset;
2049
+ int max_mark = m_max_mark;
2050
+ m_mark_reset = -1;
2051
+ m_max_mark = m_mark_count;
2052
+ std::intmax_t v;
2053
+ //
2054
+ // select the actual extension used:
2055
+ //
2056
+ switch(this->m_traits.syntax_type(*m_position))
2057
+ {
2058
+ case regex_constants::syntax_or:
2059
+ m_mark_reset = m_mark_count;
2060
+ BOOST_REGEX_FALLTHROUGH;
2061
+ case regex_constants::syntax_colon:
2062
+ //
2063
+ // a non-capturing mark:
2064
+ //
2065
+ pb->index = markid = 0;
2066
+ ++m_position;
2067
+ break;
2068
+ case regex_constants::syntax_digit:
2069
+ {
2070
+ //
2071
+ // a recursive subexpression:
2072
+ //
2073
+ v = this->m_traits.toi(m_position, m_end, 10);
2074
+ if((v < 0) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2075
+ {
2076
+ // Rewind to start of (? sequence:
2077
+ --m_position;
2078
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2079
+ fail(regex_constants::error_perl_extension, m_position - m_base, "The recursive sub-expression refers to an invalid marking group, or is unterminated.");
2080
+ return false;
2081
+ }
2082
+ insert_recursion:
2083
+ pb->index = markid = 0;
2084
+ re_recurse* pr = static_cast<re_recurse*>(this->append_state(syntax_element_recurse, sizeof(re_recurse)));
2085
+ pr->alt.i = (std::ptrdiff_t)v;
2086
+ pr->state_id = 0;
2087
+ static_cast<re_case*>(
2088
+ this->append_state(syntax_element_toggle_case, sizeof(re_case))
2089
+ )->icase = this->flags() & regbase::icase;
2090
+ break;
2091
+ }
2092
+ case regex_constants::syntax_plus:
2093
+ //
2094
+ // A forward-relative recursive subexpression:
2095
+ //
2096
+ ++m_position;
2097
+ v = this->m_traits.toi(m_position, m_end, 10);
2098
+ if((v <= 0) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2099
+ {
2100
+ // Rewind to start of (? sequence:
2101
+ --m_position;
2102
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2103
+ fail(regex_constants::error_perl_extension, m_position - m_base, "An invalid or unterminated recursive sub-expression.");
2104
+ return false;
2105
+ }
2106
+ if ((std::numeric_limits<std::intmax_t>::max)() - m_mark_count < v)
2107
+ {
2108
+ fail(regex_constants::error_perl_extension, m_position - m_base, "An invalid or unterminated recursive sub-expression.");
2109
+ return false;
2110
+ }
2111
+ v += m_mark_count;
2112
+ goto insert_recursion;
2113
+ case regex_constants::syntax_dash:
2114
+ //
2115
+ // Possibly a backward-relative recursive subexpression:
2116
+ //
2117
+ ++m_position;
2118
+ v = this->m_traits.toi(m_position, m_end, 10);
2119
+ if(v <= 0)
2120
+ {
2121
+ --m_position;
2122
+ // Oops not a relative recursion at all, but a (?-imsx) group:
2123
+ goto option_group_jump;
2124
+ }
2125
+ v = static_cast<std::intmax_t>(m_mark_count) + 1 - v;
2126
+ if(v <= 0)
2127
+ {
2128
+ // Rewind to start of (? sequence:
2129
+ --m_position;
2130
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2131
+ fail(regex_constants::error_perl_extension, m_position - m_base, "An invalid or unterminated recursive sub-expression.");
2132
+ return false;
2133
+ }
2134
+ goto insert_recursion;
2135
+ case regex_constants::syntax_equal:
2136
+ pb->index = markid = -1;
2137
+ ++m_position;
2138
+ jump_offset = this->getoffset(this->append_state(syntax_element_jump, sizeof(re_jump)));
2139
+ this->m_pdata->m_data.align();
2140
+ m_alt_insert_point = this->m_pdata->m_data.size();
2141
+ break;
2142
+ case regex_constants::syntax_not:
2143
+ pb->index = markid = -2;
2144
+ ++m_position;
2145
+ jump_offset = this->getoffset(this->append_state(syntax_element_jump, sizeof(re_jump)));
2146
+ this->m_pdata->m_data.align();
2147
+ m_alt_insert_point = this->m_pdata->m_data.size();
2148
+ break;
2149
+ case regex_constants::escape_type_left_word:
2150
+ {
2151
+ // a lookbehind assertion:
2152
+ if(++m_position == m_end)
2153
+ {
2154
+ // Rewind to start of (? sequence:
2155
+ --m_position;
2156
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2157
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2158
+ return false;
2159
+ }
2160
+ regex_constants::syntax_type t = this->m_traits.syntax_type(*m_position);
2161
+ if(t == regex_constants::syntax_not)
2162
+ pb->index = markid = -2;
2163
+ else if(t == regex_constants::syntax_equal)
2164
+ pb->index = markid = -1;
2165
+ else
2166
+ {
2167
+ // Probably a named capture which also starts (?< :
2168
+ name_delim = '>';
2169
+ --m_position;
2170
+ goto named_capture_jump;
2171
+ }
2172
+ ++m_position;
2173
+ jump_offset = this->getoffset(this->append_state(syntax_element_jump, sizeof(re_jump)));
2174
+ this->append_state(syntax_element_backstep, sizeof(re_brace));
2175
+ this->m_pdata->m_data.align();
2176
+ m_alt_insert_point = this->m_pdata->m_data.size();
2177
+ break;
2178
+ }
2179
+ case regex_constants::escape_type_right_word:
2180
+ //
2181
+ // an independent sub-expression:
2182
+ //
2183
+ pb->index = markid = -3;
2184
+ ++m_position;
2185
+ jump_offset = this->getoffset(this->append_state(syntax_element_jump, sizeof(re_jump)));
2186
+ this->m_pdata->m_data.align();
2187
+ m_alt_insert_point = this->m_pdata->m_data.size();
2188
+ break;
2189
+ case regex_constants::syntax_open_mark:
2190
+ {
2191
+ // a conditional expression:
2192
+ pb->index = markid = -4;
2193
+ if(++m_position == m_end)
2194
+ {
2195
+ // Rewind to start of (? sequence:
2196
+ --m_position;
2197
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2198
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2199
+ return false;
2200
+ }
2201
+ v = this->m_traits.toi(m_position, m_end, 10);
2202
+ if(m_position == m_end)
2203
+ {
2204
+ // Rewind to start of (? sequence:
2205
+ --m_position;
2206
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2207
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2208
+ return false;
2209
+ }
2210
+ if(*m_position == charT('R'))
2211
+ {
2212
+ if(++m_position == m_end)
2213
+ {
2214
+ // Rewind to start of (? sequence:
2215
+ --m_position;
2216
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2217
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2218
+ return false;
2219
+ }
2220
+ if(*m_position == charT('&'))
2221
+ {
2222
+ const charT* base = ++m_position;
2223
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2224
+ ++m_position;
2225
+ if(m_position == m_end)
2226
+ {
2227
+ // Rewind to start of (? sequence:
2228
+ --m_position;
2229
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2230
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2231
+ return false;
2232
+ }
2233
+ v = -static_cast<int>(hash_value_from_capture_name(base, m_position));
2234
+ }
2235
+ else
2236
+ {
2237
+ v = -this->m_traits.toi(m_position, m_end, 10);
2238
+ }
2239
+ re_brace* br = static_cast<re_brace*>(this->append_state(syntax_element_assert_backref, sizeof(re_brace)));
2240
+ br->index = v < 0 ? (int)(v - 1) : 0;
2241
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
2242
+ {
2243
+ // Rewind to start of (? sequence:
2244
+ --m_position;
2245
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2246
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2247
+ return false;
2248
+ }
2249
+ if(++m_position == m_end)
2250
+ {
2251
+ // Rewind to start of (? sequence:
2252
+ --m_position;
2253
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2254
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2255
+ return false;
2256
+ }
2257
+ }
2258
+ else if((*m_position == charT('\'')) || (*m_position == charT('<')))
2259
+ {
2260
+ const charT* base = ++m_position;
2261
+ while((m_position != m_end) && (*m_position != charT('>')) && (*m_position != charT('\'')))
2262
+ ++m_position;
2263
+ if(m_position == m_end)
2264
+ {
2265
+ // Rewind to start of (? sequence:
2266
+ --m_position;
2267
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2268
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2269
+ return false;
2270
+ }
2271
+ v = static_cast<int>(hash_value_from_capture_name(base, m_position));
2272
+ re_brace* br = static_cast<re_brace*>(this->append_state(syntax_element_assert_backref, sizeof(re_brace)));
2273
+ br->index = (int)v;
2274
+ if(((*m_position != charT('>')) && (*m_position != charT('\''))) || (++m_position == m_end))
2275
+ {
2276
+ // Rewind to start of (? sequence:
2277
+ --m_position;
2278
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2279
+ fail(regex_constants::error_perl_extension, m_position - m_base, "Unterminated named capture.");
2280
+ return false;
2281
+ }
2282
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
2283
+ {
2284
+ // Rewind to start of (? sequence:
2285
+ --m_position;
2286
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2287
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2288
+ return false;
2289
+ }
2290
+ if(++m_position == m_end)
2291
+ {
2292
+ // Rewind to start of (? sequence:
2293
+ --m_position;
2294
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2295
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2296
+ return false;
2297
+ }
2298
+ }
2299
+ else if(*m_position == charT('D'))
2300
+ {
2301
+ const char* def = "DEFINE";
2302
+ while(*def && (m_position != m_end) && (*m_position == charT(*def)))
2303
+ ++m_position, ++def;
2304
+ if((m_position == m_end) || *def)
2305
+ {
2306
+ // Rewind to start of (? sequence:
2307
+ --m_position;
2308
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2309
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2310
+ return false;
2311
+ }
2312
+ re_brace* br = static_cast<re_brace*>(this->append_state(syntax_element_assert_backref, sizeof(re_brace)));
2313
+ br->index = 9999; // special magic value!
2314
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
2315
+ {
2316
+ // Rewind to start of (? sequence:
2317
+ --m_position;
2318
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2319
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2320
+ return false;
2321
+ }
2322
+ if(++m_position == m_end)
2323
+ {
2324
+ // Rewind to start of (? sequence:
2325
+ --m_position;
2326
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2327
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2328
+ return false;
2329
+ }
2330
+ }
2331
+ else if(v > 0)
2332
+ {
2333
+ re_brace* br = static_cast<re_brace*>(this->append_state(syntax_element_assert_backref, sizeof(re_brace)));
2334
+ br->index = (int)v;
2335
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
2336
+ {
2337
+ // Rewind to start of (? sequence:
2338
+ --m_position;
2339
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2340
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2341
+ return false;
2342
+ }
2343
+ if(++m_position == m_end)
2344
+ {
2345
+ // Rewind to start of (? sequence:
2346
+ --m_position;
2347
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2348
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2349
+ return false;
2350
+ }
2351
+ }
2352
+ else
2353
+ {
2354
+ // verify that we have a lookahead or lookbehind assert:
2355
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_question)
2356
+ {
2357
+ // Rewind to start of (? sequence:
2358
+ --m_position;
2359
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2360
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2361
+ return false;
2362
+ }
2363
+ if(++m_position == m_end)
2364
+ {
2365
+ // Rewind to start of (? sequence:
2366
+ --m_position;
2367
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2368
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2369
+ return false;
2370
+ }
2371
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::escape_type_left_word)
2372
+ {
2373
+ if(++m_position == m_end)
2374
+ {
2375
+ // Rewind to start of (? sequence:
2376
+ --m_position;
2377
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2378
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2379
+ return false;
2380
+ }
2381
+ if((this->m_traits.syntax_type(*m_position) != regex_constants::syntax_equal)
2382
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_not))
2383
+ {
2384
+ // Rewind to start of (? sequence:
2385
+ --m_position;
2386
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2387
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2388
+ return false;
2389
+ }
2390
+ m_position -= 3;
2391
+ }
2392
+ else
2393
+ {
2394
+ if((this->m_traits.syntax_type(*m_position) != regex_constants::syntax_equal)
2395
+ && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_not))
2396
+ {
2397
+ // Rewind to start of (? sequence:
2398
+ --m_position;
2399
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2400
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2401
+ return false;
2402
+ }
2403
+ m_position -= 2;
2404
+ }
2405
+ }
2406
+ break;
2407
+ }
2408
+ case regex_constants::syntax_close_mark:
2409
+ // Rewind to start of (? sequence:
2410
+ --m_position;
2411
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2412
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2413
+ return false;
2414
+ case regex_constants::escape_type_end_buffer:
2415
+ {
2416
+ name_delim = *m_position;
2417
+ named_capture_jump:
2418
+ markid = 0;
2419
+ if(0 == (this->flags() & regbase::nosubs))
2420
+ {
2421
+ markid = ++m_mark_count;
2422
+ if(this->flags() & regbase::save_subexpression_location)
2423
+ this->m_pdata->m_subs.push_back(std::pair<std::size_t, std::size_t>(std::distance(m_base, m_position) - 2, 0));
2424
+ }
2425
+ pb->index = markid;
2426
+ const charT* base = ++m_position;
2427
+ if(m_position == m_end)
2428
+ {
2429
+ // Rewind to start of (? sequence:
2430
+ --m_position;
2431
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2432
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2433
+ return false;
2434
+ }
2435
+ while((m_position != m_end) && (*m_position != name_delim))
2436
+ ++m_position;
2437
+ if(m_position == m_end)
2438
+ {
2439
+ // Rewind to start of (? sequence:
2440
+ --m_position;
2441
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2442
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2443
+ return false;
2444
+ }
2445
+ this->m_pdata->set_name(base, m_position, markid);
2446
+ ++m_position;
2447
+ break;
2448
+ }
2449
+ default:
2450
+ if(*m_position == charT('R'))
2451
+ {
2452
+ ++m_position;
2453
+ v = 0;
2454
+ if(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark)
2455
+ {
2456
+ // Rewind to start of (? sequence:
2457
+ --m_position;
2458
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2459
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2460
+ return false;
2461
+ }
2462
+ goto insert_recursion;
2463
+ }
2464
+ if(*m_position == charT('&'))
2465
+ {
2466
+ ++m_position;
2467
+ const charT* base = m_position;
2468
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2469
+ ++m_position;
2470
+ if(m_position == m_end)
2471
+ {
2472
+ // Rewind to start of (? sequence:
2473
+ --m_position;
2474
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2475
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2476
+ return false;
2477
+ }
2478
+ v = static_cast<int>(hash_value_from_capture_name(base, m_position));
2479
+ goto insert_recursion;
2480
+ }
2481
+ if(*m_position == charT('P'))
2482
+ {
2483
+ ++m_position;
2484
+ if(m_position == m_end)
2485
+ {
2486
+ // Rewind to start of (? sequence:
2487
+ --m_position;
2488
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2489
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2490
+ return false;
2491
+ }
2492
+ if(*m_position == charT('>'))
2493
+ {
2494
+ ++m_position;
2495
+ const charT* base = m_position;
2496
+ while((m_position != m_end) && (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2497
+ ++m_position;
2498
+ if(m_position == m_end)
2499
+ {
2500
+ // Rewind to start of (? sequence:
2501
+ --m_position;
2502
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2503
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2504
+ return false;
2505
+ }
2506
+ v = static_cast<int>(hash_value_from_capture_name(base, m_position));
2507
+ goto insert_recursion;
2508
+ }
2509
+ }
2510
+ //
2511
+ // lets assume that we have a (?imsx) group and try and parse it:
2512
+ //
2513
+ option_group_jump:
2514
+ regex_constants::syntax_option_type opts = parse_options();
2515
+ if(m_position == m_end)
2516
+ {
2517
+ // Rewind to start of (? sequence:
2518
+ --m_position;
2519
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2520
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2521
+ return false;
2522
+ }
2523
+ // make a note of whether we have a case change:
2524
+ m_has_case_change = ((opts & regbase::icase) != (this->flags() & regbase::icase));
2525
+ pb->index = markid = 0;
2526
+ if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_close_mark)
2527
+ {
2528
+ // update flags and carry on as normal:
2529
+ this->flags(opts);
2530
+ restore_flags = false;
2531
+ old_case_change |= m_has_case_change; // defer end of scope by one ')'
2532
+ }
2533
+ else if(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_colon)
2534
+ {
2535
+ // update flags and carry on until the matching ')' is found:
2536
+ this->flags(opts);
2537
+ ++m_position;
2538
+ }
2539
+ else
2540
+ {
2541
+ // Rewind to start of (? sequence:
2542
+ --m_position;
2543
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2544
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2545
+ return false;
2546
+ }
2547
+
2548
+ // finally append a case change state if we need it:
2549
+ if(m_has_case_change)
2550
+ {
2551
+ static_cast<re_case*>(
2552
+ this->append_state(syntax_element_toggle_case, sizeof(re_case))
2553
+ )->icase = opts & regbase::icase;
2554
+ }
2555
+
2556
+ }
2557
+ //
2558
+ // now recursively add more states, this will terminate when we get to a
2559
+ // matching ')' :
2560
+ //
2561
+ parse_all();
2562
+ //
2563
+ // Unwind alternatives:
2564
+ //
2565
+ if(0 == unwind_alts(last_paren_start))
2566
+ {
2567
+ // Rewind to start of (? sequence:
2568
+ --m_position;
2569
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2570
+ fail(regex_constants::error_perl_extension, m_position - m_base, "Invalid alternation operators within (?...) block.");
2571
+ return false;
2572
+ }
2573
+ //
2574
+ // we either have a ')' or we have run out of characters prematurely:
2575
+ //
2576
+ if(m_position == m_end)
2577
+ {
2578
+ // Rewind to start of (? sequence:
2579
+ --m_position;
2580
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2581
+ this->fail(regex_constants::error_paren, std::distance(m_base, m_end));
2582
+ return false;
2583
+ }
2584
+ BOOST_REGEX_ASSERT(this->m_traits.syntax_type(*m_position) == regex_constants::syntax_close_mark);
2585
+ ++m_position;
2586
+ //
2587
+ // restore the flags:
2588
+ //
2589
+ if(restore_flags)
2590
+ {
2591
+ // append a case change state if we need it:
2592
+ if(m_has_case_change)
2593
+ {
2594
+ static_cast<re_case*>(
2595
+ this->append_state(syntax_element_toggle_case, sizeof(re_case))
2596
+ )->icase = old_flags & regbase::icase;
2597
+ }
2598
+ this->flags(old_flags);
2599
+ }
2600
+ //
2601
+ // set up the jump pointer if we have one:
2602
+ //
2603
+ if(jump_offset)
2604
+ {
2605
+ this->m_pdata->m_data.align();
2606
+ re_jump* jmp = static_cast<re_jump*>(this->getaddress(jump_offset));
2607
+ jmp->alt.i = this->m_pdata->m_data.size() - this->getoffset(jmp);
2608
+ if((this->m_last_state == jmp) && (markid != -2))
2609
+ {
2610
+ // Oops... we didn't have anything inside the assertion.
2611
+ // Note we don't get here for negated forward lookahead as (?!)
2612
+ // does have some uses.
2613
+ // Rewind to start of (? sequence:
2614
+ --m_position;
2615
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2616
+ fail(regex_constants::error_perl_extension, m_position - m_base, "Invalid or empty zero width assertion.");
2617
+ return false;
2618
+ }
2619
+ }
2620
+ //
2621
+ // verify that if this is conditional expression, that we do have
2622
+ // an alternative, if not add one:
2623
+ //
2624
+ if(markid == -4)
2625
+ {
2626
+ re_syntax_base* b = this->getaddress(expected_alt_point);
2627
+ // Make sure we have exactly one alternative following this state:
2628
+ if(b->type != syntax_element_alt)
2629
+ {
2630
+ re_alt* alt = static_cast<re_alt*>(this->insert_state(expected_alt_point, syntax_element_alt, sizeof(re_alt)));
2631
+ alt->alt.i = this->m_pdata->m_data.size() - this->getoffset(alt);
2632
+ }
2633
+ else if(((std::ptrdiff_t)this->m_pdata->m_data.size() > (static_cast<re_alt*>(b)->alt.i + this->getoffset(b))) && (static_cast<re_alt*>(b)->alt.i > 0) && this->getaddress(static_cast<re_alt*>(b)->alt.i, b)->type == syntax_element_alt)
2634
+ {
2635
+ // Can't have seen more than one alternative:
2636
+ // Rewind to start of (? sequence:
2637
+ --m_position;
2638
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2639
+ fail(regex_constants::error_bad_pattern, m_position - m_base, "More than one alternation operator | was encountered inside a conditional expression.");
2640
+ return false;
2641
+ }
2642
+ else
2643
+ {
2644
+ // We must *not* have seen an alternative inside a (DEFINE) block:
2645
+ b = this->getaddress(b->next.i, b);
2646
+ if((b->type == syntax_element_assert_backref) && (static_cast<re_brace*>(b)->index == 9999))
2647
+ {
2648
+ // Rewind to start of (? sequence:
2649
+ --m_position;
2650
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2651
+ fail(regex_constants::error_bad_pattern, m_position - m_base, "Alternation operators are not allowed inside a DEFINE block.");
2652
+ return false;
2653
+ }
2654
+ }
2655
+ // check for invalid repetition of next state:
2656
+ b = this->getaddress(expected_alt_point);
2657
+ b = this->getaddress(static_cast<re_alt*>(b)->next.i, b);
2658
+ if((b->type != syntax_element_assert_backref)
2659
+ && (b->type != syntax_element_startmark))
2660
+ {
2661
+ // Rewind to start of (? sequence:
2662
+ --m_position;
2663
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2664
+ fail(regex_constants::error_badrepeat, m_position - m_base, "A repetition operator cannot be applied to a zero-width assertion.");
2665
+ return false;
2666
+ }
2667
+ }
2668
+ //
2669
+ // append closing parenthesis state:
2670
+ //
2671
+ pb = static_cast<re_brace*>(this->append_state(syntax_element_endmark, sizeof(re_brace)));
2672
+ pb->index = markid;
2673
+ pb->icase = this->flags() & regbase::icase;
2674
+ this->m_paren_start = last_paren_start;
2675
+ //
2676
+ // restore the alternate insertion point:
2677
+ //
2678
+ this->m_alt_insert_point = last_alt_point;
2679
+ //
2680
+ // and the case change data:
2681
+ //
2682
+ m_has_case_change = old_case_change;
2683
+ //
2684
+ // And the mark_reset data:
2685
+ //
2686
+ if(m_max_mark > m_mark_count)
2687
+ {
2688
+ m_mark_count = m_max_mark;
2689
+ }
2690
+ m_mark_reset = mark_reset;
2691
+ m_max_mark = max_mark;
2692
+
2693
+
2694
+ if(markid > 0)
2695
+ {
2696
+ if(this->flags() & regbase::save_subexpression_location)
2697
+ this->m_pdata->m_subs.at((std::size_t)markid - 1).second = std::distance(m_base, m_position) - 1;
2698
+ //
2699
+ // allow backrefs to this mark:
2700
+ //
2701
+ this->m_backrefs.set(markid);
2702
+ }
2703
+ return true;
2704
+ }
2705
+
2706
+ template <class charT, class traits>
2707
+ bool basic_regex_parser<charT, traits>::match_verb(const char* verb)
2708
+ {
2709
+ while(*verb)
2710
+ {
2711
+ if(static_cast<charT>(*verb) != *m_position)
2712
+ {
2713
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2714
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2715
+ return false;
2716
+ }
2717
+ if(++m_position == m_end)
2718
+ {
2719
+ --m_position;
2720
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2721
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2722
+ return false;
2723
+ }
2724
+ ++verb;
2725
+ }
2726
+ return true;
2727
+ }
2728
+
2729
+ #ifdef BOOST_REGEX_MSVC
2730
+ # pragma warning(push)
2731
+ #if BOOST_REGEX_MSVC >= 1800
2732
+ #pragma warning(disable:26812)
2733
+ #endif
2734
+ #endif
2735
+ template <class charT, class traits>
2736
+ bool basic_regex_parser<charT, traits>::parse_perl_verb()
2737
+ {
2738
+ if(++m_position == m_end)
2739
+ {
2740
+ // Rewind to start of (* sequence:
2741
+ --m_position;
2742
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2743
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2744
+ return false;
2745
+ }
2746
+ switch(*m_position)
2747
+ {
2748
+ case 'F':
2749
+ if(++m_position == m_end)
2750
+ {
2751
+ // Rewind to start of (* sequence:
2752
+ --m_position;
2753
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2754
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2755
+ return false;
2756
+ }
2757
+ if((this->m_traits.syntax_type(*m_position) == regex_constants::syntax_close_mark) || match_verb("AIL"))
2758
+ {
2759
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2760
+ {
2761
+ // Rewind to start of (* sequence:
2762
+ --m_position;
2763
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2764
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2765
+ return false;
2766
+ }
2767
+ ++m_position;
2768
+ this->append_state(syntax_element_fail);
2769
+ return true;
2770
+ }
2771
+ break;
2772
+ case 'A':
2773
+ if(++m_position == m_end)
2774
+ {
2775
+ // Rewind to start of (* sequence:
2776
+ --m_position;
2777
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2778
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2779
+ return false;
2780
+ }
2781
+ if(match_verb("CCEPT"))
2782
+ {
2783
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2784
+ {
2785
+ // Rewind to start of (* sequence:
2786
+ --m_position;
2787
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2788
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2789
+ return false;
2790
+ }
2791
+ ++m_position;
2792
+ this->append_state(syntax_element_accept);
2793
+ return true;
2794
+ }
2795
+ break;
2796
+ case 'C':
2797
+ if(++m_position == m_end)
2798
+ {
2799
+ // Rewind to start of (* sequence:
2800
+ --m_position;
2801
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2802
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2803
+ return false;
2804
+ }
2805
+ if(match_verb("OMMIT"))
2806
+ {
2807
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2808
+ {
2809
+ // Rewind to start of (* sequence:
2810
+ --m_position;
2811
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2812
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2813
+ return false;
2814
+ }
2815
+ ++m_position;
2816
+ static_cast<re_commit*>(this->append_state(syntax_element_commit, sizeof(re_commit)))->action = commit_commit;
2817
+ this->m_pdata->m_disable_match_any = true;
2818
+ return true;
2819
+ }
2820
+ break;
2821
+ case 'P':
2822
+ if(++m_position == m_end)
2823
+ {
2824
+ // Rewind to start of (* sequence:
2825
+ --m_position;
2826
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2827
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2828
+ return false;
2829
+ }
2830
+ if(match_verb("RUNE"))
2831
+ {
2832
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2833
+ {
2834
+ // Rewind to start of (* sequence:
2835
+ --m_position;
2836
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2837
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2838
+ return false;
2839
+ }
2840
+ ++m_position;
2841
+ static_cast<re_commit*>(this->append_state(syntax_element_commit, sizeof(re_commit)))->action = commit_prune;
2842
+ this->m_pdata->m_disable_match_any = true;
2843
+ return true;
2844
+ }
2845
+ break;
2846
+ case 'S':
2847
+ if(++m_position == m_end)
2848
+ {
2849
+ // Rewind to start of (* sequence:
2850
+ --m_position;
2851
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2852
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2853
+ return false;
2854
+ }
2855
+ if(match_verb("KIP"))
2856
+ {
2857
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2858
+ {
2859
+ // Rewind to start of (* sequence:
2860
+ --m_position;
2861
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2862
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2863
+ return false;
2864
+ }
2865
+ ++m_position;
2866
+ static_cast<re_commit*>(this->append_state(syntax_element_commit, sizeof(re_commit)))->action = commit_skip;
2867
+ this->m_pdata->m_disable_match_any = true;
2868
+ return true;
2869
+ }
2870
+ break;
2871
+ case 'T':
2872
+ if(++m_position == m_end)
2873
+ {
2874
+ // Rewind to start of (* sequence:
2875
+ --m_position;
2876
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2877
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2878
+ return false;
2879
+ }
2880
+ if(match_verb("HEN"))
2881
+ {
2882
+ if((m_position == m_end) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_mark))
2883
+ {
2884
+ // Rewind to start of (* sequence:
2885
+ --m_position;
2886
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2887
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2888
+ return false;
2889
+ }
2890
+ ++m_position;
2891
+ this->append_state(syntax_element_then);
2892
+ this->m_pdata->m_disable_match_any = true;
2893
+ return true;
2894
+ }
2895
+ break;
2896
+ }
2897
+ // Rewind to start of (* sequence:
2898
+ --m_position;
2899
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
2900
+ fail(regex_constants::error_perl_extension, m_position - m_base);
2901
+ return false;
2902
+ }
2903
+ #ifdef BOOST_REGEX_MSVC
2904
+ # pragma warning(pop)
2905
+ #endif
2906
+
2907
+ template <class charT, class traits>
2908
+ bool basic_regex_parser<charT, traits>::add_emacs_code(bool negate)
2909
+ {
2910
+ //
2911
+ // parses an emacs style \sx or \Sx construct.
2912
+ //
2913
+ if(++m_position == m_end)
2914
+ {
2915
+ // Rewind to start of sequence:
2916
+ --m_position;
2917
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_escape) --m_position;
2918
+ fail(regex_constants::error_escape, m_position - m_base);
2919
+ return false;
2920
+ }
2921
+ basic_char_set<charT, traits> char_set;
2922
+ if(negate)
2923
+ char_set.negate();
2924
+
2925
+ static const charT s_punct[5] = { 'p', 'u', 'n', 'c', 't', };
2926
+
2927
+ switch(*m_position)
2928
+ {
2929
+ case 's':
2930
+ case ' ':
2931
+ char_set.add_class(this->m_mask_space);
2932
+ break;
2933
+ case 'w':
2934
+ char_set.add_class(this->m_word_mask);
2935
+ break;
2936
+ case '_':
2937
+ char_set.add_single(digraph<charT>(charT('$')));
2938
+ char_set.add_single(digraph<charT>(charT('&')));
2939
+ char_set.add_single(digraph<charT>(charT('*')));
2940
+ char_set.add_single(digraph<charT>(charT('+')));
2941
+ char_set.add_single(digraph<charT>(charT('-')));
2942
+ char_set.add_single(digraph<charT>(charT('_')));
2943
+ char_set.add_single(digraph<charT>(charT('<')));
2944
+ char_set.add_single(digraph<charT>(charT('>')));
2945
+ break;
2946
+ case '.':
2947
+ char_set.add_class(this->m_traits.lookup_classname(s_punct, s_punct+5));
2948
+ break;
2949
+ case '(':
2950
+ char_set.add_single(digraph<charT>(charT('(')));
2951
+ char_set.add_single(digraph<charT>(charT('[')));
2952
+ char_set.add_single(digraph<charT>(charT('{')));
2953
+ break;
2954
+ case ')':
2955
+ char_set.add_single(digraph<charT>(charT(')')));
2956
+ char_set.add_single(digraph<charT>(charT(']')));
2957
+ char_set.add_single(digraph<charT>(charT('}')));
2958
+ break;
2959
+ case '"':
2960
+ char_set.add_single(digraph<charT>(charT('"')));
2961
+ char_set.add_single(digraph<charT>(charT('\'')));
2962
+ char_set.add_single(digraph<charT>(charT('`')));
2963
+ break;
2964
+ case '\'':
2965
+ char_set.add_single(digraph<charT>(charT('\'')));
2966
+ char_set.add_single(digraph<charT>(charT(',')));
2967
+ char_set.add_single(digraph<charT>(charT('#')));
2968
+ break;
2969
+ case '<':
2970
+ char_set.add_single(digraph<charT>(charT(';')));
2971
+ break;
2972
+ case '>':
2973
+ char_set.add_single(digraph<charT>(charT('\n')));
2974
+ char_set.add_single(digraph<charT>(charT('\f')));
2975
+ break;
2976
+ default:
2977
+ fail(regex_constants::error_ctype, m_position - m_base);
2978
+ return false;
2979
+ }
2980
+ if(0 == this->append_set(char_set))
2981
+ {
2982
+ fail(regex_constants::error_ctype, m_position - m_base);
2983
+ return false;
2984
+ }
2985
+ ++m_position;
2986
+ return true;
2987
+ }
2988
+
2989
+ template <class charT, class traits>
2990
+ regex_constants::syntax_option_type basic_regex_parser<charT, traits>::parse_options()
2991
+ {
2992
+ // we have a (?imsx-imsx) group, convert it into a set of flags:
2993
+ regex_constants::syntax_option_type f = this->flags();
2994
+ bool breakout = false;
2995
+ do
2996
+ {
2997
+ switch(*m_position)
2998
+ {
2999
+ case 's':
3000
+ f |= regex_constants::mod_s;
3001
+ f &= ~regex_constants::no_mod_s;
3002
+ break;
3003
+ case 'm':
3004
+ f &= ~regex_constants::no_mod_m;
3005
+ break;
3006
+ case 'i':
3007
+ f |= regex_constants::icase;
3008
+ break;
3009
+ case 'x':
3010
+ f |= regex_constants::mod_x;
3011
+ break;
3012
+ default:
3013
+ breakout = true;
3014
+ continue;
3015
+ }
3016
+ if(++m_position == m_end)
3017
+ {
3018
+ // Rewind to start of (? sequence:
3019
+ --m_position;
3020
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
3021
+ fail(regex_constants::error_paren, m_position - m_base);
3022
+ return false;
3023
+ }
3024
+ }
3025
+ while(!breakout);
3026
+
3027
+ breakout = false;
3028
+
3029
+ if(*m_position == static_cast<charT>('-'))
3030
+ {
3031
+ if(++m_position == m_end)
3032
+ {
3033
+ // Rewind to start of (? sequence:
3034
+ --m_position;
3035
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
3036
+ fail(regex_constants::error_paren, m_position - m_base);
3037
+ return false;
3038
+ }
3039
+ do
3040
+ {
3041
+ switch(*m_position)
3042
+ {
3043
+ case 's':
3044
+ f &= ~regex_constants::mod_s;
3045
+ f |= regex_constants::no_mod_s;
3046
+ break;
3047
+ case 'm':
3048
+ f |= regex_constants::no_mod_m;
3049
+ break;
3050
+ case 'i':
3051
+ f &= ~regex_constants::icase;
3052
+ break;
3053
+ case 'x':
3054
+ f &= ~regex_constants::mod_x;
3055
+ break;
3056
+ default:
3057
+ breakout = true;
3058
+ continue;
3059
+ }
3060
+ if(++m_position == m_end)
3061
+ {
3062
+ // Rewind to start of (? sequence:
3063
+ --m_position;
3064
+ while(this->m_traits.syntax_type(*m_position) != regex_constants::syntax_open_mark) --m_position;
3065
+ fail(regex_constants::error_paren, m_position - m_base);
3066
+ return false;
3067
+ }
3068
+ }
3069
+ while(!breakout);
3070
+ }
3071
+ return f;
3072
+ }
3073
+
3074
+ template <class charT, class traits>
3075
+ bool basic_regex_parser<charT, traits>::unwind_alts(std::ptrdiff_t last_paren_start)
3076
+ {
3077
+ //
3078
+ // If we didn't actually add any states after the last
3079
+ // alternative then that's an error:
3080
+ //
3081
+ if((this->m_alt_insert_point == static_cast<std::ptrdiff_t>(this->m_pdata->m_data.size()))
3082
+ && (!m_alt_jumps.empty()) && (m_alt_jumps.back() > last_paren_start)
3083
+ &&
3084
+ !(
3085
+ ((this->flags() & regbase::main_option_type) == regbase::perl_syntax_group)
3086
+ &&
3087
+ ((this->flags() & regbase::no_empty_expressions) == 0)
3088
+ )
3089
+ )
3090
+ {
3091
+ fail(regex_constants::error_empty, this->m_position - this->m_base, "Can't terminate a sub-expression with an alternation operator |.");
3092
+ return false;
3093
+ }
3094
+ //
3095
+ // Fix up our alternatives:
3096
+ //
3097
+ while((!m_alt_jumps.empty()) && (m_alt_jumps.back() > last_paren_start))
3098
+ {
3099
+ //
3100
+ // fix up the jump to point to the end of the states
3101
+ // that we've just added:
3102
+ //
3103
+ std::ptrdiff_t jump_offset = m_alt_jumps.back();
3104
+ m_alt_jumps.pop_back();
3105
+ this->m_pdata->m_data.align();
3106
+ re_jump* jmp = static_cast<re_jump*>(this->getaddress(jump_offset));
3107
+ BOOST_REGEX_ASSERT(jmp->type == syntax_element_jump);
3108
+ jmp->alt.i = this->m_pdata->m_data.size() - jump_offset;
3109
+ }
3110
+ return true;
3111
+ }
3112
+
3113
+ #ifdef BOOST_REGEX_MSVC
3114
+ #pragma warning(pop)
3115
+ #endif
3116
+
3117
+ } // namespace BOOST_REGEX_DETAIL_NS
3118
+ } // namespace boost
3119
+
3120
+ #endif