    001    package org.bouncycastle.util;
    002
    003    public final class Strings
    004    {
    005        /**
    006         * A locale independent version of toLowerCase that returns a US ASCII lowercase String.
    007         */
    008        public static String toLowerCase(String par0Str)
    009        {
    010            boolean var1 = false;
    011            char[] var2 = par0Str.toCharArray();
    012
    013            for (int var3 = 0; var3 != var2.length; ++var3)
    014            {
    015                char var4 = var2[var3];
    016
    017                if (65 <= var4 && 90 >= var4)
    018                {
    019                    var1 = true;
    020                    var2[var3] = (char)(var4 - 65 + 97);
    021                }
    022            }
    023
    024            if (var1)
    025            {
    026                return new String(var2);
    027            }
    028            else
    029            {
    030                return par0Str;
    031            }
    032        }
    033    }