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">
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) {
53 Views
no comments
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);
247 Views
no comments
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>
160 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
