Revisions for framework/Util/String.php

Location: [ Horde ] / framework / Util / String.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.43.6.31 FRAMEWORK_3 (+6 -1 lines) 10/23/2008 05:28 PM Jan Schneider jan

MFH: 1.89

1.89 (+6 -1 lines) 10/23/2008 05:24 PM Jan Schneider jan

Don't convert numbers (Duck, Bug #7549).

1.43.6.30 FRAMEWORK_3 (+3 -3 lines) 10/17/2008 11:48 AM Jan Schneider jan

MFH: 1.88

1.88 (+3 -3 lines) 10/17/2008 11:43 AM Jan Schneider jan

Improve memory utilization.

1.87 (+3 -3 lines) 10/09/2008 12:59 PM Michael M Slusarz slusarz

Fix missing substr call, and fix a comment.

1.86 (+4 -2 lines) 10/09/2008 01:12 AM Michael M Slusarz slusarz

Missing a variable.

1.85 (+37 -27 lines) 10/09/2008 12:57 AM Michael M Slusarz slusarz

Use Horde_Imap_Client_Utf7imap:: to convert UTF7-IMAP strings. Get rid of imap
functions since they are known to be buggy.

1.43.6.29 FRAMEWORK_3 (+4 -4 lines) 05/31/2008 12:40 PM Chuck Hagenbuch chuck

MFH:
1.84      +4 -4      framework/Util/String.php
1.1094    +1 -0      horde/docs/CHANGES

Tags: HORDE_3_3, RELEASE_0_1_0, HORDE_3_3_RC1, HORDE_3_2_2, HORDE_3_2_1

1.84 (+4 -4 lines) 05/31/2008 12:39 PM Chuck Hagenbuch chuck

[cjh] Fix order of checks in String::convertCharset (Bug #6794).

1.43.6.28 FRAMEWORK_3 (+13 -9 lines) 05/12/2008 04:44 PM Chuck Hagenbuch chuck

MFH 1.81, 1.82, 1.83

Tags: HORDE_3_2

1.83 (+3 -3 lines) 05/12/2008 04:40 PM Chuck Hagenbuch chuck

bump the utf8_en/decode limit to 16 MB

1.82 (+5 -4 lines) 05/02/2008 01:10 AM Michael M Slusarz slusarz

Hardcode MB value.

1.81 (+12 -9 lines) 05/01/2008 05:49 PM Chuck Hagenbuch chuck

Don't use utf8_encode/decode on very large strings if other options
are available.
Bug: 6660

1.43.6.27 FRAMEWORK_3 (+2 -2 lines) 03/23/2008 03:57 AM Matt Selsky selsky

MFH: 1.80

Tags: HORDE_3_2_RC4

1.80 (+2 -2 lines) 03/22/2008 11:41 PM Matt Selsky selsky

Spelling.

1.43.6.26 FRAMEWORK_3 (+5 -1 lines) 02/19/2008 04:40 AM Jan Schneider jan

MFH: 1.79

Tags: HORDE_3_2_RC3

1.79 (+5 -1 lines) 02/19/2008 04:28 AM Jan Schneider jan

convertCharset() only uses defaults for the target charset. Set proper default
for source charset here.

1.43.6.25 FRAMEWORK_3 (+3 -3 lines) 02/03/2008 01:17 PM Jan Schneider jan

MFH: Use C as the portable locale (Bug #6194).

1.78 (+3 -3 lines) 02/03/2008 12:59 PM Jan Schneider jan

Use C as the portable locale (Bug #6194).

1.43.6.24 FRAMEWORK_3 (+5 -5 lines) 01/30/2008 05:50 PM Jan Schneider jan

MFH: 1.77

1.77 (+5 -5 lines) 01/30/2008 04:08 PM Jan Schneider jan

phpdoc fixes

1.43.6.23 FRAMEWORK_3 (+29 -11 lines) 01/24/2008 12:02 PM Jan Schneider jan

MFH: Add line folding capabilities to wordwrap().

1.76 (+7 -4 lines) 01/24/2008 11:46 AM Jan Schneider jan

Require a whitespace after colons and semicolons for wrap points.

1.75 (+2 -2 lines) 01/24/2008 07:00 AM Jan Schneider jan

Convert charset back to original.

1.74 (+20 -16 lines) 01/24/2008 05:57 AM Jan Schneider jan

Do line folding explicitely.

1.73 (+21 -10 lines) 01/23/2008 07:36 PM Jan Schneider jan

Add parameter to use wordwrap() for line folding.

1.43.6.22 FRAMEWORK_3 (+54 -3 lines) 01/23/2008 07:03 PM Jan Schneider jan

MFH: Add multibyte-safe String::wordwrap() method.

1.72 (+54 -3 lines) 01/23/2008 06:50 PM Jan Schneider jan

Add multibyte-safe String::wordwrap() method.

1.43.6.21 FRAMEWORK_3 (+11 -9 lines) 01/23/2008 06:44 PM Jan Schneider jan

MFH: 1.71

1.71 (+11 -9 lines) 01/23/2008 06:35 PM Jan Schneider jan

Calculate substring length correctly and shortcut if the lenght is zero.

1.43.6.20 FRAMEWORK_3 (+7 -5 lines) 01/17/2008 04:36 AM Jan Schneider jan

MFH: 1.70

Tags: HORDE_3_2_RC2

1.70 (+7 -5 lines) 01/17/2008 04:32 AM Jan Schneider jan

Added a missed charset sanitizing.
Remove a missed @.
Replace ini_restore() call.

1.69 (+57 -26 lines) 01/16/2008 10:51 PM Michael M Slusarz slusarz

MFB 1.43.6.19

1.43.6.19 FRAMEWORK_3 (+57 -26 lines) 01/16/2008 10:51 PM Michael M Slusarz slusarz

Need to catch Korean charset conversion anywhere we use mbstring functions.
While here, convert all '@' to error_reporting().

1.43.6.18 FRAMEWORK_3 (+12 -2 lines) 01/16/2008 10:37 PM Michael M Slusarz slusarz

MFH 1.68

1.68 (+12 -2 lines) 01/16/2008 10:36 PM Michael M Slusarz slusarz

Certain versions of Outlook [Express] sends korean messages in a non-standard
charset.  Use workaround to correctly decode these strings.

1.43.6.17 FRAMEWORK_3 (+4 -7 lines) 01/08/2008 06:39 PM Jan Schneider jan

MFH: 1.67

1.67 (+4 -7 lines) 01/08/2008 06:21 PM Jan Schneider jan

Simplify.

1.43.6.16 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

1.66 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.43.6.15 FRAMEWORK_3 (+17 -8 lines) 12/20/2007 08:50 AM Jan Schneider jan

Merge from HEAD.

1.65 (+5 -4 lines) 12/10/2007 09:21 AM Jan Schneider jan

Unset $php_errormsg.

Tags: BEFORE_MERGE_3_2

1.64 (+3 -3 lines) 12/03/2007 04:18 PM Chuck Hagenbuch chuck

ini_restore doesn't always restore the right value, so store the old
value and restore it ourselves.

1.63 (+10 -2 lines) 10/03/2007 12:42 PM Michael M Slusarz slusarz

Yikes.  Shoddy error checking could lead to potential php segfaults.  Add
check to prevent this, and add log message to assist devs in fixing the
root problem - insufficient error checking.

Tags: HORDE_3_2_RC1

1.43.6.14 FRAMEWORK_3 (+2 -2 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.62 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_ALPHA

1.61 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.43.6.13 FRAMEWORK_3 (+11 -37 lines) 03/13/2006 04:46 AM Jan Schneider jan

MFH: 1.60

Tags: HORDE_3_1_3, HORDE_3_1_2, HORDE_3_1_1

1.60 (+11 -37 lines) 03/13/2006 04:43 AM Jan Schneider jan

Always use preg_match(). This works with any charset, allows us to use perl
regex syntax, and makes the code simpler, though probably with a bit
performance loss.

1.43.6.12 FRAMEWORK_3 (+9 -5 lines) 03/12/2006 06:51 PM Jan Schneider jan

MFH: 1.59

1.59 (+9 -5 lines) 03/12/2006 06:29 PM Jan Schneider jan

Use utf8_decode() if possible.

1.43.6.11 FRAMEWORK_3 (+34 -28 lines) 03/05/2006 04:50 PM Michael M Slusarz slusarz

MFH 1.58

Tags: HORDE_3_1

1.58 (+34 -28 lines) 03/05/2006 04:34 PM Michael M Slusarz slusarz

Get rid of hackish $recursion parameter and instead use a private function
for the recursion.

1.43.6.10 FRAMEWORK_3 (+2 -2 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_RC3, HORDE_3_1_RC2, HORDE_3_1_RC1

1.57 (+2 -2 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.43.6.9 FRAMEWORK_3 (+91 -12 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.56 (+2 -2 lines) 10/13/2005 01:59 AM Matt Selsky selsky

ws

Tags: BEFORE_MERGE_3_1

1.55 (+32 -12 lines) 07/19/2005 01:24 PM Chuck Hagenbuch chuck

Make it possible to use String.php without having any other files available.

1.43.6.8 FRAMEWORK_3 (+1 -3 lines) 07/03/2005 01:22 AM Matt Selsky selsky

MFH: Remove "@access public".

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1, HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.54 (+1 -8 lines) 07/03/2005 01:15 AM Matt Selsky selsky

Remove "@access public".

1.43.6.7 FRAMEWORK_3 (+9 -9 lines) 06/01/2005 06:38 PM Matt Selsky selsky

MFH: Clean up types in phpdoc.

1.53 (+9 -9 lines) 06/01/2005 06:26 PM Matt Selsky selsky

Clean up types in phpdoc.

1.43.6.6 FRAMEWORK_3 (+10 -9 lines) 05/26/2005 04:31 PM Matt Selsky selsky

MFH: Clean up phpdoc.

1.52 (+10 -9 lines) 05/26/2005 04:26 PM Matt Selsky selsky

Clean up phpdoc.

1.43.6.5 FRAMEWORK_3 (+9 -13 lines) 05/09/2005 10:01 PM Matt Selsky selsky

MFH: "optional" not needed in phpdoc.

1.51 (+9 -13 lines) 05/09/2005 09:55 PM Matt Selsky selsky

"optional" not needed in phpdoc.

1.50 (+1 -0 lines) 02/10/2005 12:09 PM Jan Schneider jan

@since

1.49 (+11 -10 lines) 02/10/2005 05:17 AM Jan Schneider jan

tweaks

1.48 (+5 -2 lines) 02/09/2005 11:58 PM Michael M Slusarz slusarz

static can only be assigned static data, not function returns.

1.47 (+60 -1 lines) 02/09/2005 11:53 PM Michael M Slusarz slusarz

Add regexMatch().

1.43.6.4 FRAMEWORK_3 (+34 -31 lines) 01/31/2005 03:47 PM Jan Schneider jan

MFH 1.46

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1

1.46 (+33 -30 lines) 01/16/2005 07:34 PM Jan Schneider jan

String::lower() calls are expensive, so call them only once per
recursion. This also changes the iconv and mbstring calls to use the lowercase
charsets which should work fine.

1.43.6.3 FRAMEWORK_3 (+0 -0 lines) 01/12/2005 10:54 AM Chuck Hagenbuch chuck

MFH

1.43.6.2 FRAMEWORK_3 (+3 -2 lines) 01/11/2005 03:44 PM Chuck Hagenbuch chuck

MFH: explicit includes

1.45 (+3 -2 lines) 01/11/2005 03:17 PM Chuck Hagenbuch chuck

Clarify the code inclusion requirements of all of these files. Strip @version while I'm at it if it's there.

1.44 (+1 -1 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.43.6.1 FRAMEWORK_3 (+3 -3 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_2, HORDE_3_0_1

1.43 (+3 -3 lines) 11/24/2004 06:14 PM Chuck Hagenbuch chuck

Locale-safe array sorting.

Submitted by: Vahid Ghafarpour <vahid@ghafarpour.com>

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.42 (+48 -2 lines) 10/15/2004 09:18 AM Jan Schneider jan

Move wrap() from Text:: to String:: because we need to make it multibyte-safe anyway.

1.41 (+56 -2 lines) 09/29/2004 06:08 AM Jan Schneider jan

Add String::pad().

1.40 (+37 -35 lines) 09/24/2004 02:10 PM Chuck Hagenbuch chuck

Comment wrapping, remove redundant extensionExists() call.

1.39 (+4 -3 lines) 09/07/2004 05:48 PM Jan Schneider jan

mb_regex_encoding() is not always available.

1.38 (+4 -4 lines) 09/02/2004 12:00 PM Jan Schneider jan

Silence warnings.

1.37 (+28 -7 lines) 09/02/2004 11:52 AM Jan Schneider jan

Fix toUpper() and ucfirst() and implement isAlpha() correctly.

1.36 (+50 -43 lines) 08/25/2004 07:56 AM Jan Schneider jan

docs

1.35 (+3 -3 lines) 07/24/2004 01:29 PM Jan Schneider jan

Locale en didn't work here anymore. Use en_US as the "neutral" charset now.

1.34 (+19 -2 lines) 06/22/2004 12:03 PM Jan Schneider jan

Add ucfirst().

1.33 (+3 -3 lines) 05/04/2004 07:17 AM Jan Schneider jan

We need to use String::substr() here because the converted string might be
multibyte.

1.32 (+5 -25 lines) 04/22/2004 02:44 PM Chuck Hagenbuch chuck

remove unused function

1.31 (+4 -4 lines) 04/22/2004 02:38 PM Chuck Hagenbuch chuck

Remove Horde_Array::grep() in favor of just calling preg_grep().

1.30 (+5 -3 lines) 03/13/2004 06:08 AM Jan Schneider jan

UTF7-IMAP won't be supported by the iconv library, so don't try to.

Tags: HORDE_3_0_ALPHA

1.29 (+3 -3 lines) 01/01/2004 10:14 AM Jan Schneider jan

Happy new year everyone.

1.28 (+5 -7 lines) 10/30/2003 05:01 PM Jan Schneider jan

Improve docs and remove unused variable.

1.27 (+3 -3 lines) 10/28/2003 04:24 PM Jan Schneider jan

Move Horde_Util package into the framework module.

1.26 (+54 -51 lines) 09/21/2003 06:34 PM Jan Schneider jan

Make String:: class independent of NLS::.

1.25 (+11 -11 lines) 09/16/2003 07:06 PM Jan Schneider jan

Use the new Util:: class.

1.24 (+10 -9 lines) 09/01/2003 11:26 AM Chuck Hagenbuch chuck

nits

1.23 (+21 -2 lines) 09/01/2003 07:35 AM Jan Schneider jan

Add String::grep() and Array::grep()

1.22 (+4 -4 lines) 06/26/2003 05:24 PM Jan Schneider jan

doc fixes

1.21 (+10 -4 lines) 05/20/2003 12:09 PM Michael M Slusarz slusarz

We do need this function checks here - documented why we need them also.

1.20 (+4 -6 lines) 05/19/2003 04:29 PM Michael M Slusarz slusarz

Convert more function_exists() -> extensionExists()
Some of these function_exists were for functions not available before PHP
4.2.0.  Since HEAD requires 4.2.1, we don't need these checks anymore.

1.19 (+8 -3 lines) 04/21/2003 06:32 PM Jan Schneider jan

Workaround a bug in iconv() munging strings with the last character not
being ascii.

Only showing the 100 latest revisions. Show all revisions? (may take a while).