ChangeLog 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. Legend:
  2. - Bug fix
  3. + New feature
  4. * Changes
  5. ! Important
  6. 2024-02-05 __vic
  7. + logger: std::format support
  8. 2024-02-27 __vic
  9. * ascii.h: protection from isascii() macro
  10. * readonly_cstring: duplicated code removed
  11. 2024-02-16 __vic
  12. * type_traits.h:
  13. + conditional
  14. + conjunction, disjunction, negation
  15. 2023-10-20 __vic
  16. + __VIC_INLINE_CONSTEXPR_VAR
  17. - __VIC_SWAP_HEADER definition was invalid
  18. 2023-10-06 __vic
  19. + C++23 mode support
  20. * C++17 is used by default
  21. * Intel C++ compiler support removed
  22. 2023-04-07 __vic
  23. + __VIC_IF_CONSTEVAL
  24. 2022-03-02 __vic
  25. - readonly_cstring: compare(const char *,readonly_cstring)
  26. 2022-02-21 __vic
  27. * throw_errno: it's enough to override only one function
  28. 2022-02-11 __vic
  29. * logger: fields layout reorganized to be more compact
  30. 2022-02-09 __vic
  31. + string_buffer: operator<<(string_buffer &&, T)
  32. 2021-12-07 __vic
  33. + string_ref: conversion from/to std::string_view
  34. + string_buffer supports std::string_view (via string_ref)
  35. * ascii::equal_icase() uses std::string_view if available
  36. 2021-12-06 __vic
  37. * string_utils.h:
  38. * starts_with(), ends_with() use std::string_view if available
  39. * trimmed()-functions use std::string_view if available
  40. 2021-12-03 __vic
  41. * logger:
  42. * use std::string_view if available
  43. + to_string_view(logger::severity)
  44. * str2num.h:
  45. + use [[nodiscard]]
  46. * use std::string_view if available
  47. 2021-11-19 __vic
  48. * type_traits.h: using std::remove_cvref in C++20 mode
  49. 2021-10-13 __vic
  50. * bits.h: msb_ones(), lsb_ones(), get_lsbs() are constexpr now
  51. 2021-10-04 __vic
  52. + memory.h: store_unaligned()
  53. 2021-06-11 __vic
  54. + logger: notice level
  55. 2021-06-07 __vic
  56. * posix::dir_entries: use readdir() instead of deprecated readdir_r()
  57. 2021-05-03 __vic
  58. - bits.h: __VIC_ASSERT_UINT() in C++98 mode
  59. + algorithm.h:
  60. + skip_if_front(), skip_if_back()
  61. * skip_if_{front,back}() are used inside trim-functions
  62. 2021-04-30 __vic
  63. * sift() uses set_of_chars
  64. 2020-12-22 __vic
  65. + ascii.h: isblank(), isprint(), isgraph(), ispunct(), iscntrl()
  66. 2020-12-16 __vic
  67. + base16.h: base16::encode_byte_{lower|upper}()
  68. 2020-11-30 __vic
  69. * Use std::uncaught_exceptions() instead of deprecated
  70. std::uncaught_exception() when possible
  71. 2020-05-25 __vic
  72. * bits.h: MSVC++ __popcnt() can cause crash if not supported by CPU so
  73. isn't used by default. Define __VIC_POPCNT to use it
  74. 2020-02-24 __vic
  75. ! string_utils.h: Renamed:
  76. ! trim_left() -> trim_front()
  77. ! trim_right() -> trim_back()
  78. ! trimmed_left() -> trimmed_front()
  79. ! trimmed_right() -> trimmed_back()
  80. ! pad_left() -> pad_front()
  81. ! pad_right() -> pad_back()
  82. 2020-02-17 __vic
  83. * posix::ovectors:
  84. ! Renamed add() -> push_back()
  85. + pop_back(), empty(), full(), clear()
  86. 2020-02-12 __vic
  87. * Repeated errno reads are minimized
  88. 2020-02-10 __vic
  89. * memory.h: load_unaligned(): fallback to std::memcpy() if no better
  90. alternatives
  91. ! Renamed object_pool -> fixed_vector
  92. 2020-01-28 __vic
  93. + throw_errno.h and throw_errno() are parts of the public API now
  94. ! defs.h: uninitialized/noinit removed
  95. 2020-01-14 __vic
  96. - posix_pidfile.cpp: write_pid(): results of all syscalls are checked now
  97. 2019-12-24 __vic
  98. * logger: severity strings moved to the own object file
  99. 2019-12-19 __vic
  100. - str2num.h: signed_decimal_parser: out of buffer access if input string
  101. is "+" or "-"
  102. 2019-10-21 __vic
  103. + Support for compilers without any form of 64-bit integers (long long)
  104. 2019-07-18 __vic
  105. ! posix::dir_entries, posix::dir_files don't throw on open any more.
  106. Explicit is_open() check is required now!
  107. 2019-07-02 __vic
  108. - string_utils.h: sift_if(): redundant past the end predicate check
  109. 2019-06-26 __vic
  110. + Workaround for Clang 3.9+ issue - __has_cpp_attribute(nodiscard) returns
  111. 1 even when used mode is C++14 or less
  112. 2019-06-21 __vic
  113. - "__VIC_NO_BUITLINS" was used instead of __VIC_NO_BUILTINS
  114. + test/bits_no_biltins.cpp
  115. + test/endian_no_builtins.cpp
  116. 2019-05-31 __vic
  117. + bits.h: ceil_log2(), floor_log2()
  118. 2019-05-22 __vic
  119. * bits.h:
  120. + ceil2(), floor2(), ispow2(), msb_position()
  121. * rotl()/rotr() use language types instead of cstdint typedefs
  122. 2019-05-21 __vic
  123. * Renamed __VIC_NO_GCC_BUITLINS -> __VIC_NO_BUITLINS
  124. + bits.h: popcount()
  125. 2019-04-18 __vic
  126. + posix/pidfile.h:
  127. + posix::pidfile
  128. + posix/daemon_control.h:
  129. + posix::daemon_control
  130. 2019-04-01 __vic
  131. * logger:
  132. + shrink_buffer()
  133. ! No autoshrink
  134. 2019-03-25 __vic
  135. - bits.h: UB on rot{l|r}(..., 0)
  136. 2019-03-13 __vic
  137. + memory.h:
  138. + load_unaligned()
  139. 2019-03-12 __vic
  140. + [[nodiscard]] support
  141. + endian.h: endian::to/from_big/little()
  142. 2019-02-18 __vic
  143. * posix/sigset.h: posix::sigset:
  144. + Constructor and assignment from array
  145. + assign()
  146. * posix/thread.h:
  147. + posix::this_thread::sigwait_at_most()
  148. + posix::this_thread::sigwaitinfo_at_most()
  149. 2019-02-13 __vic
  150. + endian.h:
  151. + endian
  152. + swab16(), swab32(), swab64()
  153. 2019-02-08 __vic
  154. + tchar.h: tchar::empty(), tchar::equal()
  155. 2019-02-05 __vic
  156. + doc: russian translation
  157. 2019-01-31 __vic
  158. * object_pool: renamed push() -> push_allocated()
  159. 2018-12-17 __vic
  160. + writers/null.h:
  161. + null_writer
  162. 2018-11-20 __vic
  163. * base64::decode(): no whitespaces skip
  164. 2018-11-14 __vic
  165. * stdio_file:
  166. * Renamed attach() -> attach_handle(), detach() -> detach_handle()
  167. + attach_handle() returns old value
  168. * posix::file:
  169. * Renamed attach() -> attach_handle(), detach() -> detach_handle()
  170. + attach_handle() returns old value
  171. 2018-10-30 __vic
  172. + Handmade integers to text converters (to_text_append())
  173. 2018-10-24 __vic
  174. * Underlying type is specified for logger::severity
  175. 2018-10-08 __vic
  176. + readers, writers: make_...()
  177. + utf{8|16}: make_reader(), make_writer()
  178. + unicode.h: utf_transcode()
  179. + writers/iterator.h:
  180. + iterator_writer
  181. 2018-09-28 __vic
  182. + utf16/defs.h:
  183. + utf16::code_unit_t
  184. + utf16/status.h:
  185. + utf16::status
  186. + utf16::is_error(), utf16::throw_if_error()
  187. + utf16/exceptions.h:
  188. + utf16::bad_encoding and derivatives
  189. + utf16/reader.h:
  190. + utf16::reader
  191. + utf16/writer.h:
  192. + utf16::writer
  193. 2018-09-27 __vic
  194. + unicode.h:
  195. + unicode_t
  196. + unicode_max, unicode_bom, unicode_replacement_char
  197. + utf8/defs.h:
  198. + utf8::is_continuation_byte()
  199. + utf8/status.h:
  200. + utf8::status
  201. + utf8::is_error(), utf8::throw_if_error()
  202. + utf8/exceptions.h:
  203. + utf8::bad_encoding and derivatives
  204. + utf8/reader.h:
  205. + utf8::reader
  206. + utf8/writer.h:
  207. + utf8::writer
  208. 2018-09-26 __vic
  209. * Readers:
  210. * Renamed range_reader[_n] -> iterator_reader[_n]
  211. * basic_string_reader is implemented using raw pointer +
  212. iterator_reader_n
  213. + position() function for memory readers
  214. 2018-09-19 __vic
  215. * defs.h: unitialized can't be constructed using just {}
  216. * logger:
  217. * Renamed accepts_*() -> *_visible()
  218. + class output
  219. + settings_t
  220. 2018-09-18 __vic
  221. + C++14 and C++17 modes support
  222. + set_of_chars: C++14 constexpr
  223. 2018-09-03 __vic
  224. * doc: make https://validator.w3.org/ happy
  225. * base16, base64: try_decode() added
  226. 2018-08-09 __vic
  227. * str2num.h: to_errno(number_parse_status) removed
  228. 2018-07-11 __vic
  229. + bmake makefile for FreeBSD 10+
  230. 2018-06-21 __vic
  231. * LLVM libc++ defines nullptr macro in C++98 mode
  232. 2018-06-06 __vic
  233. + __VIC_SCOPED_ENUM_BEGIN/END
  234. * logger: renamed message_severity -> severity_t
  235. + str2num.h: number_parse_status
  236. 2018-06-05 __vic
  237. * string_ref.h: basic_string_ref: operator== uses memcmp()
  238. 2018-05-21 __vic
  239. + doc: stable links for chapters
  240. * Renamed meta.h -> type_traits.h
  241. 2018-05-15 __vic
  242. * doc/document.dtd is deterministic now
  243. 2018-05-14 __vic
  244. + object_pool: full()
  245. 2018-05-07 __vic
  246. * Don't catch exceptions by value even in tests
  247. 2018-03-28 __vic
  248. * bits.h: lo/hi_nibble() return uint8_t instead of int
  249. 2018-01-26 __vic
  250. + Tests for readers
  251. + Tests for writers
  252. - readers/cstring.h: invalid code
  253. 2017-12-26 __vic
  254. + meta.h: index_sequence, make_index_sequence
  255. 2017-12-21 __vic
  256. + packon.h, packoff.h
  257. 2017-12-14 __vic
  258. + posix/sigset.h:
  259. * posix::sigset moved from posix/signal.h
  260. * posix/process.h: posix::ignore_signals() moved from posix/signal.h
  261. * posix/signal.h removed
  262. 2017-12-13 __vic
  263. * doc/html.xsl: more tolerant to retarded XSLT processors (oracle) TOC
  264. generation code
  265. + posix/process.h: posix::process_alive()
  266. 2017-12-12 __vic
  267. + waitable_event for C++98 mode too
  268. + thread.h:
  269. + thread
  270. + this_thread
  271. + get_id()
  272. + sleep_ms()
  273. + mutex.h:
  274. + mutex
  275. + mutex_lock
  276. 2017-12-08 __vic
  277. * meta.h:
  278. + remove_reference, remove_cvref
  279. + Template aliases for type transformers
  280. + waitable_event.h:
  281. + waitable_event for C++11 mode only
  282. 2017-12-07 __vic
  283. + GNU Make makefiles
  284. 2017-12-06 __vic
  285. * Classes with constexpr constructor don't inherit non_copyable
  286. 2017-12-05 __vic
  287. * posix/time.h: posix::time_spec: renamed mksec -> usec
  288. 2017-12-05 __vic
  289. * string_buffer can be compiled even when old compatible ABI is used by
  290. GNU libstdc++
  291. + Intel C++ 17.0+ compiler support
  292. 2017-11-28 __vic
  293. + string_utils.h: starts_with(), ends_with()
  294. 2017-11-14 __vic
  295. * to_text_append():
  296. - Small buffer for 8-byte long types
  297. - printf() "ll" length modifier is not always available
  298. * Using snprint() in C++11 mode
  299. 2017-09-21 __vic
  300. + posix/mutex.h:
  301. * posix::mutex, posix::mutex_lock moved from posix/thread.h
  302. + posix/cond_variable.h
  303. * posix::cond_variable moved from posix/thread.h
  304. 2017-09-21 __vic
  305. * ascii.h:
  306. * Moved from bits.h:
  307. * to_hex_digit_upper() -> ascii::toxdigit_upper()
  308. * to_hex_digit_lower() -> ascii::toxdigit_lower()
  309. * hex_to_number() -> ascii::xdigit_to_number()
  310. + ascii::todigit()
  311. + ascii::digit_to_number()
  312. 2017-09-18 __vic
  313. * Renamed io.h -> stdio_file.h
  314. 2017-09-14 __vic
  315. * readers.h removed. All content moved to:
  316. + readers/range.h (range_reader, range_reader_n)
  317. + readers/container.h (container_reader)
  318. + readers/cstring.h (basic_cstring_reader, cstring_reader)
  319. * writers.h removed. All content moved to:
  320. + writers/push_back.h (push_back_writer)
  321. * string_utils.h:
  322. * string_reader moved to:
  323. + readers/string.h
  324. * string_writer moved to:
  325. + writers/string.h
  326. * io.h:
  327. * cstream_reader moved to:
  328. + readers/cstream.h
  329. * cstream_writer moved to:
  330. + writers/cstream.h
  331. + read(std::FILE *, unsigned char &)
  332. + readers/cstream.h: cstream_reader: read(unsigned char &)
  333. * readers/cstring.h:
  334. + basic_cstring_reader<char>: read(unsigned char &)
  335. * readers/string.h:
  336. + basic_string_reader
  337. + basic_string_reader<char>: read(unsigned char &)
  338. * writers/string.h:
  339. + basic_string_writer
  340. 2017-06-30 __vic
  341. * Renamed string_ops.h -> string_utils.h
  342. * Renamed static_string -> readonly_cstring
  343. 2017-02-21 __vic
  344. * fs.h: file_size(): uintmax_t is used as a return type
  345. 2017-01-31 __vic
  346. * str2num.h: std::strchr(s,0) returns non-const pointer on MinGW so
  347. tchar::end(s) is used instead
  348. 2017-01-30 __vic
  349. + readers.h:
  350. + range_reader
  351. + range_reader_n
  352. + container_reader
  353. + basic_cstring_reader, cstring_reader
  354. + writers.h:
  355. + push_back_writer
  356. * string_ops.h:
  357. + string_reader
  358. + string_writer
  359. * base16.h: base16: uses readers and writers
  360. * base64.h: base64: uses readers and writers
  361. * io.h:
  362. + read(std::FILE *, char &)
  363. + write(std::FILE *, char)
  364. + cstream_reader
  365. + cstream_writer
  366. 2017-01-23 __vic
  367. - str2num.h: C++98 mode
  368. + iterator.h:
  369. + begin(T[]), end(T[]), cbegin(T[]), cend(T[])
  370. + advance(), next(), prev()
  371. 2017-01-20 __vic
  372. + bin_file.h
  373. + bin_file
  374. + str2num.h: decimal_parser
  375. + base16.h:
  376. + base16::encode_lower(), base16::encode_upper(), base16::decode()
  377. + base64.h:
  378. + base64::encode(), base64::decode()
  379. + base64::encoded_length(), base64::max_decoded_length()
  380. 2017-01-18 __vic
  381. + fs.h:
  382. + path_exists(), file_exists(), dir_exists()
  383. + mkdir(), mkdir_if_absent()
  384. + rmdir(), rmdir_if_exists()
  385. + get_current_dir()
  386. + remove_file(), remove_file_if_exists(), remove_file_nt()
  387. + copy_file(), copy_file_if_exists(), copy_file_replace(),
  388. copy_file_replace_if_exists()
  389. + move_file(), move_file_if_exists(), move_file_replace(),
  390. move_file_replace_if_exists()
  391. + rename_file(), rename_file_if_exists(), rename_file_replace(),
  392. rename_file_replace_if_exists()
  393. + file_size()
  394. 2017-01-17 __vic
  395. + posix/fs.h:
  396. + posix::dirname(), posix::basename()
  397. + posix::append_dirname(), posix::append_basename()
  398. + posix::add_trailing_slash(), posix::with_trailing_slash()
  399. 2017-01-16 __vic
  400. * throw_errno() moved: error.h -> throw_errno.h
  401. * stdio_file: errno value is thrown in case of error
  402. 2017-01-13 __vic
  403. + str2num.h
  404. + decimal_to_number()
  405. + decimal_to_number_range()
  406. 2017-01-12 __vic
  407. + meta.h:
  408. + integral_constant, true_type, false_type
  409. + is_same, is_const
  410. + remove_const, remove_volatile, remove_cv
  411. + remove_pointer
  412. + is_signed_integer, is_unsigned_integer
  413. + enable_if, disable_if
  414. + set_of_chars.h:
  415. + set_of_chars
  416. 2017-01-11 __vic
  417. + posix/time.h:
  418. + posix::time_spec
  419. + posix::nanoseconds_since_epoch()
  420. + posix::realtime_clock, posix::monotonic_clock
  421. + posix/thread.h: posix::cond_variable: wait_for()
  422. 2017-01-10 __vic
  423. * posix/thread.h:
  424. + posix::mutex, posix::mutex_lock
  425. + posix::cond_variable
  426. 2017-01-09 __vic
  427. * Renamed trim.h -> string_ops.h
  428. * string_ops.h:
  429. + pad_left(), pad_right()
  430. * sift() treats nullptr as an empty string
  431. + ascii_string.h:
  432. + toupper(), tolower() for strings
  433. + equal_icase() for strings
  434. 2016-12-30 __vic
  435. + ascii.h:
  436. + isdigit(), isxdigit(), isalpha(), isalnum(), isspace(), isascii()
  437. + islower(), isupper()
  438. + tolower(), toupper(), upper_to_lower(), lower_to_upper()
  439. + equal_icase(char,char)
  440. + date_time.h:
  441. + is_leap_year()
  442. + days_in_month()
  443. + days_between_years()
  444. + validate_date(), validate_time(), validate_date_time()
  445. 2016-12-29 __vic
  446. + stdint.h:
  447. + [u]int<N>_t, [u]int_least<N>_t, [u]int_fast<N>_t, [u]intmax_t,
  448. [u]intptr_t
  449. + int_exactly_bytes<>, uint_exactly_bytes<>
  450. + bits.h:
  451. + lo_nibble(), hi_nibble()
  452. + msb_ones(), lsb_ones()
  453. + get_lsbs()
  454. + ord()
  455. + to_hex_digit_upper(), to_hex_digit_lower()
  456. + hex_to_number()
  457. + swapped_nibbles()
  458. + rotl(), rotr()
  459. 2016-12-28 __vic
  460. + string_buffer: move constructor for std::string
  461. + logger.h:
  462. + logger
  463. 2016-12-27 __vic
  464. + posix/process.h:
  465. + posix::daemon()
  466. + posix/signal.h:
  467. + posix::sigset
  468. + posix::ignore_signals()
  469. + posix/thread.h:
  470. + posix::this_thread:
  471. + sigwait(), sigwaitinfo()
  472. + block_signals(), unblock_signals(), set_sigmask()
  473. + posix/dir_entries.h:
  474. + posix::dir_entries
  475. + posix/dir_files.h:
  476. + posix::dir_files
  477. + posix/iov.h:
  478. + posix::ovectors
  479. + posix::total(iovec[])
  480. + posix::cut_prefix(iovec[])
  481. + posix::writev_all()
  482. 2016-12-26 __vic
  483. + string_ref.h:
  484. + basic_string_ref (string_ref)
  485. + string_buffer: string_ref support
  486. + trim.h:
  487. + trim(), trimmed(), trim_left(), ...
  488. + sift(), sift_if()
  489. 2016-12-23 __vic
  490. + io.h:
  491. + stdio_file
  492. + getline()
  493. + object_pool.h:
  494. + object_pool
  495. + tchar.h
  496. 2016-12-22 __vic
  497. + to_text.h:
  498. + to_text_append()
  499. + string_buffer.h:
  500. + string_buffer
  501. + posix/error.h:
  502. + is_ENOENT(), is_EAGAIN()
  503. + posix/file.h:
  504. + posix::file
  505. + posix/file_stat.h:
  506. + posix::file_stat
  507. 2016-12-21 __vic
  508. + defs.h:
  509. + nullptr
  510. + non_copyable
  511. + non_heap_allocatable
  512. + array_size()
  513. + static_string.h:
  514. + static_string
  515. + error.h:
  516. + exception
  517. + libc_error
  518. + throw_errno()
  519. 2016-06-23 __vic
  520. * Total revision and rework started in order to publish the code
  521. VERSION 0.6
  522. 2011-05-17 __vic
  523. * The last internal release before rework (no distribution)
  524. VERSION 0.5.1
  525. 2010-09-08 __vic
  526. * The last released version before rework
  527. 2007-08-15 __vic
  528. * The project is started