Code Search for Developers
 
 
  

_sre.cs from p4shelf at Krugle


Show _sre.cs syntax highlighted

/* **********************************************************************************
 *
 * Copyright (c) Microsoft Corporation. All rights reserved.
 *
 * This source code is subject to terms and conditions of the Shared Source License
 * for IronPython. A copy of the license can be found in the License.html file
 * at the root of this distribution. If you can not locate the Shared Source License
 * for IronPython, please send an email to ironpy@microsoft.com.
 * By using this source code in any fashion, you are agreeing to be bound by
 * the terms of the Shared Source License for IronPython.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * **********************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

using IronPython.Runtime;

[assembly: PythonModule("_sre", typeof(IronPython.Modules.PythonSRegEx))]
namespace IronPython.Modules {
    [PythonType("_sre")]
    public static class PythonSRegEx {
        public static object MAGIC = 20031017;
        public static object CODESIZE = 2;

        [PythonName("getlower")]
        public static object GetLower(object val, object encoding) {
            int encInt = Converter.ConvertToInt32(val);
            int charVal = Converter.ConvertToInt32(val);

            if (encInt == (int)PythonRegex.UNICODE) {
                return (int)Char.ToLower((char)charVal);
            } else {
                return (int)Char.ToLowerInvariant((char)charVal);
            }
        }

        [PythonName("compile")]
        public static object Compile(object a, object b, object c, object d, object e, object f) {
            return null;
        }
    }
}




See more files for this project here

p4shelf

A feature in Visual Studio Team Studio that was immediately appealing to me was shelving. The goal of this tool is replicate that general functionality in Perforce.

Project homepage: http://code.google.com/p/p4shelf/
Programming language(s): C#,C++,Python
License: gpl2

  Builtin.Generated.cs
  Builtin.cs
  Exceptions.Generated.cs
  Exceptions.cs
  IterTools.cs
  _random.cs
  _sre.cs
  _weakref.Generated.cs
  _weakref.cs
  binascii.cs
  cPickle.cs
  cStringIO.cs
  clr.cs
  codecs.cs
  collections.cs
  copy_reg.cs
  datetime.cs
  errno.cs
  gc.cs
  imp.cs
  locale.cs
  marshal.cs
  math.Generated.cs
  math.cs
  md5.cs
  nt.cs
  operator.cs
  re.cs
  select.cs
  sha.cs
  socket.cs
  struct.cs
  thread.cs
  time.cs