ChangeLog 17 KB

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