Commit graph

1144 commits

Author SHA1 Message Date
jfbastien
7b99eeed7b Add note on bug #2679853.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1004 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 19:58:26 +00:00
jfbastien
8642f606d9 Simplify Num2String.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1003 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 19:55:59 +00:00
jfbastien
a27150df64 Refactor some more, and add a bunch of tests. These new tests led me to find bug #2679853.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1002 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 18:36:42 +00:00
jfbastien
12a3a50e8e Bug #2666059: cap buffer size to 126.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1001 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 22:04:56 +00:00
jfbastien
a34780ce1e Cache call to size() in find(): it wasn't being optimized out.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1000 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 21:12:02 +00:00
jfbastien
2d56e06cff Add a small string optimization test with a buffer of 126.
Cache size() outside the loop for RandomString.
Modify Num2String so that npos is properly taken into account.
Add Tristate2String.
Modify seedForThisIteration so that its value is count + rand() instead of just rand(): using just rand meant that a lot of the initial seeds repeated because the pseudo-randomness of rand isn't good. Adding count should somewhat reduce the repetitions.
I'd consider using another random number generator, rand() is slow and has a bad distribution.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@999 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 21:09:20 +00:00
jfbastien
8d792783e0 Use MaxString<String>::value instead of 1000.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@998 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 16:13:57 +00:00
jfbastien
f167b31cbb Typo.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@997 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 12:21:52 +00:00
jfbastien
8d19f398f4 There were test failures in release (MSVC 9 with Multi-threaded DLL runtime library) because random and RandomString were called directly as arguments to functions. When this happened more than once in the same function there would sometimes be different results because the order of evaluation of function arguments isn't guaranteed.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@996 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-04 16:04:41 +00:00
rich_sposato
da01e0f541 Fixed bug 2656893. Removed redundant assertions.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@995 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-04 07:13:07 +00:00
jfbastien
dc9c2b0ed9 Refactor some more. Add tests.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@994 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-03 22:14:49 +00:00
jfbastien
da63cc999c Bug 2657248: take two, this time fix it properly!
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@993 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-03 16:29:14 +00:00
jfbastien
fc81b2a539 Bug 2657248: flex_string replace error when replacing from an empty range
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@992 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-03 13:32:21 +00:00
jfbastien
0e615e0932 Refactor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@991 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-02 19:43:49 +00:00
jfbastien
272dc6a91b Fix function selector, some tests weren't being run.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@990 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-02 16:02:51 +00:00
jfbastien
c776744629 Bug 2645770: Missing getline implementation for flex_string
Implement both getline overloads. The implementation is from the SGI STL (http://www.sgi.com/tech/stl/) and comes with the following copyright:

Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the below copyright notice appears in all copies and that both the copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

Copyright © 1997-1999
Silicon Graphics Computer Systems, Inc.

Copyright © 1994
Hewlett-Packard Company 

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@989 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-02 14:54:16 +00:00
jfbastien
56225861f7 Missing private after preprocessor condition.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@988 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-02 13:09:05 +00:00
jfbastien
a3c0926e23 Parenthesis around call to std::numeric_limits::max to prevent problems when Windows.h is included.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@987 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-02 13:08:03 +00:00
rich_sposato
c93b2e11d1 Added code to demonstrate how SmartPtr preserves constness through type-safety.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@986 7ec92016-0320-0410-acc4-a06ded1c099a
2009-02-17 05:25:13 +00:00
rich_sposato
4b43d68311 Fixed bug 1776032 by changing class to singleton.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@985 7ec92016-0320-0410-acc4-a06ded1c099a
2009-02-02 07:45:50 +00:00
rich_sposato
26d771c3a1 Changed pass-by-value to pass-by-reference.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@984 7ec92016-0320-0410-acc4-a06ded1c099a
2009-02-02 06:23:28 +00:00
rich_sposato
2aa35ef4d7 Updated compiler types.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@983 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 08:00:14 +00:00
rich_sposato
de86ba3dd4 Updated comment.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@982 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:51:27 +00:00
rich_sposato
95a623cace Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@981 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:36:58 +00:00
rich_sposato
8f91f0bfb3 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@980 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:34:35 +00:00
rich_sposato
36f75e2dd5 Added yasli header files.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@979 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:30:36 +00:00
rich_sposato
2a7f87b3d4 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@978 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:29:40 +00:00
rich_sposato
2e2f87c3b1 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@977 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:27:55 +00:00
rich_sposato
444a7484fa Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@976 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:27:29 +00:00
rich_sposato
d71d93dcee Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@975 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:26:28 +00:00
rich_sposato
f2fe00f914 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@974 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:24:58 +00:00
rich_sposato
b8fbbcd0ac Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@973 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:24:09 +00:00
rich_sposato
0e98a15791 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@972 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:22:23 +00:00
rich_sposato
c7e37bacca Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@971 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:21:27 +00:00
rich_sposato
cc1b2ae76d Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@970 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:20:40 +00:00
rich_sposato
67c2fef82e Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@969 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:20:00 +00:00
rich_sposato
39e4c33655 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@968 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:18:40 +00:00
rich_sposato
8388bf40eb Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@967 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:17:26 +00:00
rich_sposato
0c3949fc07 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@966 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:15:36 +00:00
rich_sposato
62bf6058fd Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@965 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:14:35 +00:00
rich_sposato
5fa1dc041f Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@964 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:12:19 +00:00
rich_sposato
9ba60666ec Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@963 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:11:28 +00:00
rich_sposato
45c337db76 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@962 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:10:20 +00:00
rich_sposato
900b8344c5 Added OutputFile path.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@961 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:08:47 +00:00
rich_sposato
525693b400 Added flex_string and yasli header files.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@960 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 06:11:26 +00:00
syntheticpp
c344a9b90d update version number
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@959 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 18:19:04 +00:00
syntheticpp
9103a647c4 fix line endings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@958 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 17:38:55 +00:00
rich_sposato
260432c755 Added more code for testing.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@957 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 08:30:08 +00:00
rich_sposato
fac31a70d6 Changed class names to match Loki naming style.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@956 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 08:27:39 +00:00
rich_sposato
fef3ad9a3b Added documentation comments. Added a policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@955 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 08:24:30 +00:00