ChangeLog 15 KB

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