ChangeLog 16 KB

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