ChangeLog 16 KB

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