Project

General

Profile

# Date Author Comment
11970 01/20/2014 11:33 AM Aaron Marcuse-Kubitza

moved everything into /trunk/ to create the standard svn layout, for use with tools that require this (eg. git-svn). IMPORTANT: do NOT do an `svn up`. instead, re-use your working copy's existing files with `svn switch` (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html).

5814 10/26/2012 05:35 PM Aaron Marcuse-Kubitza

strings.py: Added join()

5432 10/11/2012 07:36 PM Aaron Marcuse-Kubitza

strings.py: Replaced no longer used contains_any() with find_any(), which returns any found substring, or None if none of the substrings were found

5299 10/08/2012 06:22 PM Aaron Marcuse-Kubitza

strings.py: concat(): Fixed bug where end index of returned str0 portion would wrap around to a negative number if str1 itself was too long, causing incorrect truncation

5161 10/02/2012 06:53 PM Aaron Marcuse-Kubitza

strings.py: json_encode(): Fixed bug where '\n' and '\r' also needed to be encoded

5148 10/01/2012 08:48 PM Aaron Marcuse-Kubitza

strings.py: Added regexp_repl_esc()

5147 10/01/2012 08:47 PM Aaron Marcuse-Kubitza

strings.py: Added replace_all() and replace_all_re(), as well as flip_map() for use with maps for these functions

5143 10/01/2012 05:45 PM Aaron Marcuse-Kubitza

strings.py: Added json_encode()

5142 10/01/2012 05:44 PM Aaron Marcuse-Kubitza

strings.py: Added esc_quotes()

4937 09/24/2012 11:21 AM Aaron Marcuse-Kubitza

strings.py: remove_prefix(), remove_suffix(): Added require param to raise aan exception if the string does not have the given prefix/suffix

4116 08/20/2012 06:39 PM Aaron Marcuse-Kubitza

strings.py: concat(): Apply length limits by shrinking max_len by new raw_extra_len() of the strings. This also fixes a bug where multi-byte characters in str0 were not properly taken into account, leading to overly long strings. Added doc comment.

4115 08/20/2012 06:29 PM Aaron Marcuse-Kubitza

strings.py: Added raw_extra_len()

4113 08/20/2012 06:16 PM Aaron Marcuse-Kubitza

strings.py: concat(): Perform substring operation on Unicode strings so that substring does not split Unicode characters. Still use to_raw_str() to calculate the str1 length because Unicode characters can be multi-byte, and length limits often apply to the byte length, not the character length.

4032 08/15/2012 05:04 AM Aaron Marcuse-Kubitza

strings.py: Added isspace_none_str to support clone-safe sentinel str values that pass isspace()

4028 08/15/2012 04:40 AM Aaron Marcuse-Kubitza

strings.py: Added none_str and helper class NonInternedStr to support sentinel str values

3749 08/02/2012 04:16 PM Aaron Marcuse-Kubitza

strings.py: concat(): Convert args to raw (non-Unicode) strings first, so that multi-byte Unicode sequences are considered by # of bytes instead of # of chars. This is necessary because PostgreSQL truncates identifiers by # of bytes instead of # of chars, so that identifiers will actually be less than 63 chars long when some chars were multi-byte.

3748 08/02/2012 04:11 PM Aaron Marcuse-Kubitza

strings.py: ustr(): Call str() method manually like urepr() to avoid Unicode errors when the returning string is non-ASCII

3747 08/02/2012 03:54 PM Aaron Marcuse-Kubitza

strings.py: Added urepr() and use it in repr_no_u(), to better support repr() return values with non-ASCII characters. Avoiding repr() also provides a more complete stack trace in the case of such errors.

3466 07/18/2012 11:05 PM Aaron Marcuse-Kubitza

strings.py: Added indent()

3255 07/06/2012 04:19 PM Aaron Marcuse-Kubitza

strings.py: Added join_lines()

3172 06/29/2012 07:41 AM Aaron Marcuse-Kubitza

strings.py: Added first_word()

2932 06/18/2012 07:59 PM Aaron Marcuse-Kubitza

strings.py, sql_gen.py: Renamed add_suffix() to concat() to reflect that this is a fixed-length replacement for +

2882 06/15/2012 12:37 AM Aaron Marcuse-Kubitza

strings.py: Added to_raw_str()

2761 06/12/2012 03:49 PM Aaron Marcuse-Kubitza

strings.py: Added esc_for_mogrify()

2585 06/04/2012 09:03 AM Aaron Marcuse-Kubitza

strings.py: Added add_suffix()

2582 06/04/2012 08:40 AM Aaron Marcuse-Kubitza

strings.py: repr_no_u(): Fixed bug where "u" prefix was removed even in reprs of non-strings

2504 05/30/2012 09:53 PM Aaron Marcuse-Kubitza

strings.py: as_*table(): Added ustr param to override the method (by default ustr()) used to convert each value to a string

2502 05/30/2012 09:14 PM Aaron Marcuse-Kubitza

strings.py: Added repr_no_u()

2482 05/30/2012 05:36 PM Aaron Marcuse-Kubitza

strings.py: Split as_table() into as_table() and as_inline_table() depending on whether the table needs to be inlined in an ordered list item or not

2481 05/30/2012 05:03 PM Aaron Marcuse-Kubitza

strings.py: as_table(): Changed to use

 formatting because Redmine tables can't be embedded in ordered lists without restarting the numbering

2480 05/30/2012 03:58 PM Aaron Marcuse-Kubitza

strings.py: as_table(): Fixed bug where table was not ended properly, by adding a space after the last \n and having rstrip() string only newlines

2477 05/29/2012 09:09 PM Aaron Marcuse-Kubitza

strings.py: Added as_tt() and as_table()

2475 05/29/2012 08:40 PM Aaron Marcuse-Kubitza

strings.py: as_code(): Added multiline param to disable multiline formatted output

2471 05/29/2012 08:20 PM Aaron Marcuse-Kubitza

strings.py: Added as_code()

2361 05/23/2012 03:47 PM Aaron Marcuse-Kubitza

strings.py: Removed no longer used DebugPrintable (that functionality is now in objects.BasicObject)

2301 05/22/2012 03:20 PM Aaron Marcuse-Kubitza

strings.py: Added DebugPrintable

2221 05/17/2012 07:23 PM Aaron Marcuse-Kubitza

strings.py: remove_prefix(), remove_suffix(): Added removed_ref param

1959 04/23/2012 08:54 PM Aaron Marcuse-Kubitza

strings.py: Added contains_any()

1761 04/03/2012 01:08 PM Aaron Marcuse-Kubitza

strings.py: Added is_ctrl() and strip_ctrl()

1680 03/29/2012 05:21 PM Aaron Marcuse-Kubitza

strings.py: Added with_prefixes()

1622 03/26/2012 06:06 PM Aaron Marcuse-Kubitza

strings.py: Added extract_line_ending() and remove_line_ending(). ensure_newl(): Use new remove_line_ending(). Moved Parsing section to top since it is used by the other sections.

1499 03/19/2012 08:53 PM Aaron Marcuse-Kubitza

strings.py: Added overlaps()

1401 03/13/2012 05:58 PM Aaron Marcuse-Kubitza

strings.py: Added split(), remove_prefix(), remove_suffix(), and remove_prefixes(). Added section comments.

1364 03/11/2012 07:31 PM Aaron Marcuse-Kubitza

strings.py: Added single_space()

1295 03/06/2012 05:32 PM Aaron Marcuse-Kubitza

strings.py: Added unicode_reader for later use in handling Unicode characters in map spreadsheets

1232 03/02/2012 06:52 PM Aaron Marcuse-Kubitza

strings.py: Added ustr() (like built-in str() but converts to unicode object)

861 02/06/2012 03:25 PM Aaron Marcuse-Kubitza

strings.py: Added one_line() function to make a string all on one line

860 02/06/2012 03:20 PM Aaron Marcuse-Kubitza

strings.py: Renamed one_line() to remove_extra_newl() to better reflect what it does

856 02/06/2012 01:56 PM Aaron Marcuse-Kubitza

strings.py: Added is_multiline() and one_line() for removing extra newlines from single-line strings

714 01/28/2012 05:06 PM Aaron Marcuse-Kubitza

strings.py: Added std_newl() to convert line endings and cleanup() to process strings with extra or nonstandard whitespace

340 01/03/2012 01:12 PM Aaron Marcuse-Kubitza

strings.py: Added ensure_newl()

268 12/22/2011 06:39 PM Aaron Marcuse-Kubitza

Moved everything in scripts to root. inputs_Makefile: Don't run "all" when installing.

73 12/02/2011 02:16 PM Aaron Marcuse-Kubitza

map: Fixed bugs to enable mapping straight from CSV to a database. Still need a way to set plot.authorPlotCode for specimens data.