示例#1
0
        void lowerBtn_Click(object sender, RoutedEventArgs e)
        {
            clearRTB(afterTb);
            string beforeStr = getRTBValue(this.beforeTb);
            string ret       = StrUtils.lower(beforeStr);

            setRTBValue(afterTb, ret);
        }
示例#2
0
        void decXBtn_Click(object sender, RoutedEventArgs e)
        {
            clearRTB(afterTb);
            string beforeStr = getRTBValue(this.beforeTb);
            string ret       = Base64Helper.Base64Decode(StrUtils.urlDec(beforeStr, false));

            setRTBValue(afterTb, ret);
        }
示例#3
0
        void urlDecBtn_Click(object sender, RoutedEventArgs e)
        {
            clearRTB(afterTb);
            string beforeStr = getRTBValue(this.beforeTb);
            string ret       = StrUtils.urlDec(beforeStr, false);

            setRTBValue(afterTb, ret);
        }
示例#4
0
        void encXBtn_Click(object sender, RoutedEventArgs e)
        {
            clearRTB(afterTb);
            string beforeStr = getRTBValue(this.beforeTb);
            string ret       = StrUtils.urlEnc(Base64Helper.Base64Encode(beforeStr), false);

            setRTBValue(afterTb, ret);
        }
示例#5
0
        void urlEncBtn_Click(object sender, RoutedEventArgs e)
        {
            clearRTB(afterTb);
            string beforeStr = getRTBValue(this.beforeTb);
            string ret       = StrUtils.urlEnc(beforeStr, false);

            ret = ret.Replace("%0d%0a", "%0a");
            setRTBValue(afterTb, ret);
        }