Commit Graph

494 Commits

Author SHA1 Message Date
levlam
1703cee349 Common base64_decode implementation.
GitOrigin-RevId: 87bdf798a181799b2f51be9831d77fabf41e3820
2020-01-09 22:59:08 +03:00
levlam
09d359cdc4 Use exact size formula in base64_decode.
GitOrigin-RevId: 7515474fc70af351e7b886e870b0d3da453afdc8
2020-01-09 22:21:20 +03:00
levlam
7db7757d2d Simplify base64url_decode implementation.
GitOrigin-RevId: 873483e61cc54fad78a09aa8a143070c5e018dfb
2020-01-09 22:07:23 +03:00
levlam
529f925d40 Common base64_encode implementation.
GitOrigin-RevId: ed4f31cfc6f83e81f03bd8e71dc8d48ced530255
2020-01-09 21:05:43 +03:00
levlam
9ea68914cf Use get_character_table to get base64 char_to_value table everywhere.
GitOrigin-RevId: 192840280c280a82a1cb2f1eba9fb9983f6ffe52
2020-01-09 20:45:38 +03:00
levlam
d6dca91ff3 Add is_base64_characters functions.
GitOrigin-RevId: 5b3e8642e9d9788788ee1343af4eee9acf7dddc9
2020-01-09 20:18:53 +03:00
levlam
30e47390aa Fix warning.
GitOrigin-RevId: 5e4ba1a98ba2675d60b469ae5401d2b9907b66b9
2020-01-03 19:37:03 +03:00
levlam
c8bf8fa5f7 Use real allocated file size in storage statistics.
GitOrigin-RevId: 6e5232700d8e97ba3ce0838c3bf7764541b6fd2a
2020-01-03 04:08:22 +03:00
levlam
eee0b2b23a Fix preprocessor directive.
GitOrigin-RevId: f473450b6ee28537cb66226ab46745d63d066541
2020-01-03 02:43:49 +03:00
levlam
75ecd9c692 Optimize FileFd.get_size/get_real_size on Windows.
GitOrigin-RevId: e39efbecdd6882bf4465b17dad556b585633b56e
2020-01-03 02:41:57 +03:00
levlam
e44b02fe45 Fix some includes.
GitOrigin-RevId: 1a3a8bab67f3ed56545d58815187d7a8f99944d9
2020-01-03 01:48:23 +03:00
levlam
69f30a3505 Add real_size to Stat.
GitOrigin-RevId: 3b8b4c24504ed1fa7eed1885abd3a3e9014eb2c4
2020-01-03 01:01:39 +03:00
levlam
12ab53bdfa Always open files on Windows as sparse files.
GitOrigin-RevId: 93a01f926970045e5db78e16f21eab293822b3be
2020-01-02 20:18:55 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
cb631ce8e7 Update Unicode data to the latest Unicode version.
GitOrigin-RevId: cfa82a1c89de14784e3c17fca92cf642499b425a
2019-12-30 02:46:45 +03:00
levlam
27fb078cfe Add support for TGV patterns.
GitOrigin-RevId: 8e82497baf4f5906c72383e54af4d0ffd5ba45a5
2019-12-27 18:01:45 +03:00
levlam
a14ee3e66c Do not use functional cast on integers.
GitOrigin-RevId: 1ebcf0e9a9b004039d32b6363140387bca7d7722
2019-12-24 16:46:10 +03:00
levlam
adb10460b2 Minor fixes.
GitOrigin-RevId: 0c678ad195683947355b63af5aff49875312b4a3
2019-12-23 20:48:30 +03:00
levlam
674e6b79d8 Remove unsafe JsonScope::operator<<(bool) to which pointers can be converted.
GitOrigin-RevId: 0350036ba8dd4b24df8974e1fe95593afe78a309
2019-12-23 03:21:51 +03:00
levlam
5fdb88a8ac Return JsonScope::operator<< overloads for string literals and pointers, because otherwise they are converted to bool.
GitOrigin-RevId: a699415fa15350be1daf9718239b295f272dc3ef
2019-12-23 03:09:21 +03:00
levlam
a91d296f87 Minor improvements.
GitOrigin-RevId: f66a5294ec1026c85dc71f62bb0026dce4a09fe0
2019-12-20 20:12:52 +03:00
Arseny Smirnov
3d972da1e6 Stacktrace improvements.
GitOrigin-RevId: 99dd952cff5c9e5edce575b84e365def24a59441
2019-08-14 11:31:25 +03:00
levlam
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
a0d761f27e Simplify JsonScope.
GitOrigin-RevId: c3a9aea0c053db9684853acb857ae2381d542cb2
2019-12-08 09:02:20 +03:00
levlam
8a7d6be7df Remove td::ctie.
GitOrigin-RevId: 926a19055770a2566778a022d01b7a9661d46ae6
2019-12-08 08:50:43 +03:00
levlam
c0b8349a56 Simplify test.
GitOrigin-RevId: 033c85175c4e62059b377ace0e824e410f27b85e
2019-12-08 08:18:49 +03:00
levlam
522dcb03b5 Add PathView.cpp.
GitOrigin-RevId: e6dec7b3a5d663e9390bcfafdf6ebd8e74d5ea9c
2019-11-26 21:13:38 +03:00
levlam
12cd507909 Remove some misc.h usages in headers.
GitOrigin-RevId: 3f5ca0369113e9815935a6c6cb0fe0c5a051c248
2019-11-26 20:53:50 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
c69beaf037 Add td::remove.
GitOrigin-RevId: 410df2c90132c9056d71f5fabe69607891b295c9
2019-10-22 01:14:00 +03:00
levlam
31e8975be5 Add td::contains.
GitOrigin-RevId: 93ce98764505885f5b7218c2f52cedd36fe4533f
2019-10-22 01:03:39 +03:00
levlam
56c3a2fbed Use td::remove_if.
GitOrigin-RevId: 5cf21381966dc58689a06cc94cb8843fd8087bb9
2019-10-21 16:25:56 +03:00
levlam
15f31cf23a Add storer and parser for unique_ptr.
GitOrigin-RevId: 2b0f5c8a3e9f7a9343cf9557d10cbf95009ba847
2019-09-18 02:42:38 +03:00
levlam
3377c38073 Store *Full to database.
GitOrigin-RevId: 160369861878befa880e2b4355fd6585977f84dc
2019-09-18 02:14:24 +03:00
levlam
12ea695b54 Use TRY_RESULT_ASSIGN to handle responses of db_.get_statement.
GitOrigin-RevId: 0b777859b0670661493eff0a1ed6048ba5010bbd
2019-09-02 21:11:56 +03:00
levlam
ba3204a5c2 Fix tests.
GitOrigin-RevId: bb970d6d9f0881c260ba92c7c53291444f2f6e84
2019-11-17 23:42:48 +03:00
levlam
c81e18f5f1 Do not try to use sysctl if sys/sysctl.h is not included.
GitOrigin-RevId: 49a50aa9c102fd3681963552f5524840e8d222df
2019-10-23 05:00:04 +03:00
levlam
4ffa2169d9 tdutils: Fix build for alpine linux
* Error log: https://del.dog/ujofeqowol
2019-10-23 04:55:25 +03:00
levlam
e37f7d1537 Add td::remove_if.
GitOrigin-RevId: d94733cbf251e8fc182c106f4cbf0cc84c0675a5
2019-10-20 01:51:17 +03:00
levlam
ee87414bab Fix misprints.
GitOrigin-RevId: e21e784c076005538ee889a61b12b8876567da13
2019-10-19 21:20:16 +03:00
levlam
1df4a1c6a4 Add get_json_object_field_force.
GitOrigin-RevId: f1e27a7dfb946396917ae347edd68259465f0d87
2019-10-17 22:22:42 +03:00
levlam
c40a1217e8 Fix empty path in FileLog.
GitOrigin-RevId: be64892045a8ee3497f89963d8f18265b4f6991d
2019-10-08 21:17:42 +03:00
levlam
ff97775549 Make function static.
GitOrigin-RevId: d579125ab67c7b706d8d1f5a27e36387b9c665fa
2019-10-08 21:13:51 +03:00
levlam
4d68487c12 Add utf8_utf16_length.
GitOrigin-RevId: d5e713df1f3e0cdf70004d0898c5b55246dd014e
2019-10-07 03:41:04 +03:00
levlam
29e83d3808 Add vector<bool> support in format::as_array.
GitOrigin-RevId: 3a9a64187eb773a2daac85eb5bb18e77f25f6ab5
2019-10-03 17:19:13 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
9293f07464 Simplify static method call.
GitOrigin-RevId: 8b05448f2c5dcfc51d149537bd83c955dbbf5a9d
2019-09-09 02:49:13 +03:00
levlam
ef5e709ac8 Fix clang 3.4 and OpenSSL 0.9.8 CE.
GitOrigin-RevId: 9157bfe975bdb376fbd573bd23107c36b1444f34
2019-09-09 02:04:30 +03:00
levlam
ca550f5202 Fix MSVC 15.3 CE.
GitOrigin-RevId: d049c35a3717374d6830555330b10ff6bac3bf1c
2019-09-08 23:09:51 +03:00