java.lang.Character.toLowerCase C# (CSharp) Méthode

toLowerCase() private méthode

private toLowerCase ( char par0 ) : char
par0 char
Résultat char
        public static char toLowerCase(char par0)
        {
            global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.ThreadEnv;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 12)){
            return ((char)(@__env.CallStaticCharMethod(global::java.lang.Character.staticClass, global::java.lang.Character.j4n_toLowerCase21, global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par0))));
            }
        }

Same methods

Character::toLowerCase ( int par0 ) : int

Usage Example

Exemple #1
0
        public boolean regionMatches(boolean ignoreCase, int toffset,
                                     String other, int ooffset, int len)
        {
            char[] ta = value;
            int    to = toffset;

            char[] pa = other.value;
            int    po = ooffset;

            // Note: toffset, ooffset, or len might be near -1>>>1.
            if ((ooffset < 0) || (toffset < 0) ||
                (toffset > (long)value.Length - len) ||
                (ooffset > (long)other.value.Length - len))
            {
                return(false);
            }
            while (len-- > 0)
            {
                char c1 = ta[to++];
                char c2 = pa[po++];
                if (c1 == c2)
                {
                    continue;
                }
                if (ignoreCase)
                {
                    // If characters don't match but case may be ignored,
                    // try converting both characters to uppercase.
                    // If the results match, then the comparison scan should
                    // continue.
                    char u1 = Character.toUpperCase(c1);
                    char u2 = Character.toUpperCase(c2);
                    if (u1 == u2)
                    {
                        continue;
                    }
                    // Unfortunately, conversion to uppercase does not work properly
                    // for the Georgian alphabet, which has strange rules about case
                    // conversion.  So we need to make one last check before
                    // exiting.
                    if (Character.toLowerCase(u1) == Character.toLowerCase(u2))
                    {
                        continue;
                    }
                }
                return(false);
            }
            return(true);
        }