ChangeLog 14 KB

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