Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | "clock add" rewritten in C, using common functionality of "clock scan" (and ↵ | sebres | 2017-01-10 | 1 | -1/+1 |
| | | | | | | freescan)... test-performance.tcl: test cases extended to cover "clock add" | ||||
* | code review and inline documentation | sebres | 2017-01-10 | 1 | -7/+0 |
| | |||||
* | Merge remote-tracking branch 'remotes/fossil/trunk' into ↵ | sebres | 2017-01-10 | 1 | -1/+1 |
| | | | | sb/trunk-rewrite-clock-in-c; + minor fixes after merge. | ||||
* | [unix] build for *nix fixed, code clean-ups; missing declarations; unused ↵ | sebres | 2017-01-10 | 1 | -39/+41 |
| | | | | vars, functions etc; types normalization; | ||||
* | another way to make greedy search more precise, some greedy matches are ↵ | sebres | 2017-01-10 | 1 | -2/+5 |
| | | | | fixed (see test cases clock-6.22.11 - clock-6.22.20), additionally involving look ahead token of known type into pre-search process. | ||||
* | some greedy matches are fixed (see test cases clock-6.22.11 and ↵ | sebres | 2017-01-10 | 1 | -0/+2 |
| | | | | clock-6.22.12), involving space count in look ahead and end distance calculation (because spaces are optional in date-time string as well as in scanning format). | ||||
* | several missing scan tokens added, test cases extended and fixed; | sebres | 2017-01-10 | 1 | -3/+13 |
| | | | | token "%s" used for seconds only (time zone independent), additionally "%Es" token added for local seconds (zone dependent seconds); | ||||
* | porting of clock format completed; all clock test cases passed | sebres | 2017-01-10 | 1 | -0/+9 |
| | |||||
* | [temp-commit]: format almost ready (missing some tokens), sprintf replaced ↵ | sebres | 2017-01-10 | 1 | -0/+4 |
| | | | | with _itoaw (because "sprintf" too slow) | ||||
* | [temp-commit]: format almost ready (missing some tokens) | sebres | 2017-01-10 | 1 | -27/+48 |
| | |||||
* | min length of %Y token (year with century) is 4, optional tokens possibility ↵ | sebres | 2017-01-10 | 1 | -0/+1 |
| | | | | (zone), test cases extended | ||||
* | other locale scan token switched from list seek to index tree + list search ↵ | sebres | 2017-01-10 | 1 | -4/+4 |
| | | | | case insensitive now | ||||
* | locale months scan switched to from list seek to index tree; bug fixing | sebres | 2017-01-10 | 1 | -2/+2 |
| | |||||
* | string index tree for fast greedy search of the string (index) by unique ↵ | sebres | 2017-01-10 | 1 | -19/+3 |
| | | | | | | string prefix as key; clock scan rewritten to use string index tries search; | ||||
* | cacheable conversions Local2UTC / UTC2Local fixed (some TZ switches time ↵ | sebres | 2017-01-10 | 1 | -4/+24 |
| | | | | | | seconds bound) and optimized (last period ranges saved); prepare to back-port clock format | ||||
* | estimate token count by % char and format length (don't use fix ↵ | sebres | 2017-01-10 | 1 | -1/+1 |
| | | | | TOK_CHAIN_BLOCK_SIZE by creation, minimized memory usage) | ||||
* | small optimization (determine min/max length, end distance, etc.) | sebres | 2017-01-10 | 1 | -1/+2 |
| | |||||
* | clock scan almost ready (currently test-case covered tokens only), test ↵ | sebres | 2017-01-10 | 1 | -5/+11 |
| | | | | cases passed; todo - check other tokens from "clock.tcl" | ||||
* | repaired system/current locale caching (also for legacy clock format) and ↵ | sebres | 2017-01-10 | 1 | -8/+8 |
| | | | | legacy timezone cached as last | ||||
* | scan format: several tokens implemented, bug fixing and code review; | sebres | 2017-01-10 | 1 | -2/+19 |
| | | | | precedence yyyymmdd over yyyyddd was changed (and re-covered in test-cases also), see http://core.tcl.tk/tcl/tktview/e7a722cd3573fedda5d1e528f95902776f996e06 | ||||
* | %j token as day of year; clear flags implemented (to provide last-wins ↵ | sebres | 2017-01-10 | 1 | -10/+12 |
| | | | | functionality) | ||||
* | improve LocalizeFormat, internal caching of localized formats inside msgcat ↵ | sebres | 2017-01-10 | 1 | -3/+49 |
| | | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict) code review | ||||
* | improve LocalizeFormat, internal caching of localized formats inside msgcat ↵ | sebres | 2017-01-10 | 1 | -4/+6 |
| | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict) | ||||
* | l10n (with caching) implemented, msgcat package optimized, code review, etc. | sebres | 2017-01-10 | 1 | -3/+42 |
| | |||||
* | [temp-commit]: not ready | sebres | 2017-01-10 | 1 | -1/+31 |
| | |||||
* | several initialize and finalize facilities | sebres | 2017-01-10 | 1 | -1/+13 |
| | |||||
* | amend for caching of UTC2Local / Local2UTC: | sebres | 2017-01-10 | 1 | -7/+7 |
| | | | | | * tzdata used internally only (because cached, replaced with timezone object as parameter for several functions) * small improvement (don't need to convert UTC to UTC) | ||||
* | [temp-commit]: code review, DST-hole mistake by scan with relative time ↵ | sebres | 2017-01-10 | 1 | -3/+81 |
| | | | | | | resolved; caching of UTC2Local / Local2UTC cherry picked | ||||
* | [temp-commit]: clock scan tokenizer logic ready (still needs many rules) | sebres | 2017-01-10 | 1 | -31/+57 |
| | | | | caching extended (currentYearCentury, yearOfCenturySwitch, lastBaseDate ...) | ||||
* | [temp-commit]: tclClockFmt.c - amend for 2nd try (with cherry picking of ↵ | sebres | 2017-01-10 | 1 | -32/+61 |
| | | | | | | | tclSE incompatible facilities) Prepared for common usage of both scan commands - free scan / scan with format (currently faked via eval to __org_scan); test cases passed. | ||||
* | [temp-commit]: tclClockFmt.c - 2nd try (with cherry picking of tclSE ↵ | sebres | 2017-01-10 | 1 | -7/+56 |
| | | | | | | incompatible facilities) Prepared for common usage of scan command (free scan / format scan) | ||||
* | [temp-commit]: tclClockFmt.c - 1st try | sebres | 2017-01-10 | 1 | -1/+43 |
| | | | | using "timerate" instead "time" by performance measurement tests (more precise and fixed time, so no switch of factor expected) | ||||
* | [temp-commit]: ClockFreeScan back-ported (cherry picked), all tests case ↵ | sebres | 2017-01-10 | 1 | -3/+10 |
| | | | | | | | passed + several new test-cases for bug fixing implemented here; environment epoch ported, several fixes for the time zone / tzdata caching ported; mem-leak fix + memory leak test cases passed | ||||
* | [temp-commit]: clock scan with several optimization porting, still not-ready | sebres | 2017-01-10 | 1 | -0/+77 |