[svn] r7775: nemerle/trunk: lib/nstring.n ncc/parsing/Utility.n
VladD2
svnadmin at nemerle.org
Tue Aug 28 13:56:24 CEST 2007
Log:
1. Add SplitToList axtention method to module NString. It method split string to list[string].
2. Fix bug in is_capitalized(). At now Nemerle support multilanguage identifiers for variant options.
Author: VladD2
Date: Tue Aug 28 13:56:21 2007
New Revision: 7775
Modified:
nemerle/trunk/lib/nstring.n
nemerle/trunk/ncc/parsing/Utility.n
Modified: nemerle/trunk/lib/nstring.n
==============================================================================
--- nemerle/trunk/lib/nstring.n (original)
+++ nemerle/trunk/lib/nstring.n Tue Aug 28 13:56:21 2007
@@ -33,6 +33,11 @@
{
public module NString
{
+ public SplitToList (this str : string, params seperators : array [char]) : list [string]
+ {
+ Split (str, seperators)
+ }
+
/**
* Splits the string at positions of occurrence of one
* of the characters from the given array.
Modified: nemerle/trunk/ncc/parsing/Utility.n
==============================================================================
--- nemerle/trunk/ncc/parsing/Utility.n (original)
+++ nemerle/trunk/ncc/parsing/Utility.n Tue Aug 28 13:56:21 2007
@@ -66,7 +66,7 @@
public is_capitalized (s : string) : bool
{
def idx = s.LastIndexOf('.');
- s[idx + 1] >= 'A' && s[idx + 1] <= 'Z'
+ char.IsUpper(s[idx + 1])
}
public tmpname (kind : string) : string
More information about the svn
mailing list