ChangeLog 15 KB

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