Re: [SMARTY] capitalize modifier

"messju mohr" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <20051124125554.GF6756@dune>
On Thu, Nov 24, 2005 at 02:23:15PM +0200, Dep wrote:
> Hello, people!
> I'm very new to smarty, and while studying variables and modifiers I
> stumbled upon the following situation with capitalize modifier:
> template
> {"The world didn't end yesterday"|capitalize}
> 
> produces output
> The World Didn'T End Yesterday
> 
> Letter T after the apostrophe isn't exactly the new word? So, is this
> a bug or is this on purpose?

php's pcre-functions see the "'" as a word delimiter.
so count this behaviour as "on purpose".

> Thanks,
> Dmitriy
> 
> -- 
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.