CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Input
(function ($) {
 
$.fn.timeKeys = function (options) {
    /// <summary>
    /// Attaches a set of hotkeys to time fields
    /// + Add minute - subtract minute
    /// H Subtract Hour R Add houR
    /// ? Show keys
    /// </summary>
    /// <param name="options" type="object">
by Rick Strahl   November 28, 2011 @ 5:21am
Tags: Time, jQuery, Input
323 Views
no comments
 
public String httpResponseAsString(InputStream is, String charset) throws IOException{
        if(is==null){
            return "";
        }
        
        StringBuffer out=new StringBuffer();
        String line ;
        try {
            BufferedReader reader=new BufferedReader(new InputStreamReader(is, charset));
            while ((line=reader.readLine())!=null) {
by x03570227   November 28, 2011 @ 12:16am
53 Views
no comments
 
C#
public string CleanInput(string input)
{
   IDictionary<char, char> replaceDictionary = BuildReplaceDictionary();
   char[] cleanedArray = Array.ConvertAll<char, char>(input.ToCharArray(),
                                                      delegate(char c)
                                                         {
                                                            return replaceDictionary.ContainsKey(c)
                                                                      ? replaceDictionary[c] : c;
                                                         });
   return new string(cleanedArray);
by Noam Gal   August 10, 2009 @ 12:21am
Tags: c#, CleanInput
247 Views
no comments
 
C#
public string CleanInput(string input)
{
   Converter<char, char> cleaner = CreateCleaner();
   char[] cleanedArray = Array.ConvertAll(input.ToCharArray(), cleaner);
   return new string(cleanedArray);
}
 
/// <summary>
/// Returns a delegate that replaces bad chars with their right values
/// </summary>
by Noam Gal   August 10, 2009 @ 12:01am
Tags: c#, CleanInput
160 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate