METHODS = {"m0":["Search and replace",[["text","Search what","searchReplace_search",true,"^.+$",""],["text","Replace with","searchReplace_replace",false,"",""],["bool","Case sensitive","searchReplace_case",false,"",false]],"Will replace all occurrences of what is found by replacement.","searchReplace"],"m1":["Regular expression search and replace",[["text","Search pattern","reSearchReplace_pattern",true,"^.+$",""],["text","Replace with","reSearchReplace_replace",false,"",""],["bool","Case sensitive","reSearchReplace_case",false,"",false],["bool","Treat all text as a single line","reSearchReplace_singleline",false,"",false]],"Will replace all occurrences of matching strings by replacement. See <a href=\"#\" onclick=\"window.open('http:\/\/en.wikipedia.org\/wiki\/Regular_expression', '_blank'); return false;\">regular expression help<\/a>. Replacement can contain variables <b>\\0<\/b> - the whole matched pattern, <b>\\1<\/b> - first group in parenthesis, etc up to <b>\\9<\/b>. You can also use <b>\\n<\/b> for new line and <b>\\t<\/b> for tab, <b>\\\\<\/b> will be replaced by single <b>\\<\/b>.","reSearchReplace"],"m2":["Reformat text width",[["int","New page width","formatTextWidth_width",true,"^[0-9]+$",76],["bool","Shrink whitespace","formatTextWidth_shrink",false,"",true]],"Will wrap and reformat text to fit width. This is useful when you need to format a .txt file for small screen devices, such as MP3 players or cell phones. Also can be useful for console applications and formatting email messages.","formatTextWidth"],"m3":["Remove email reply quotes",[["text","Quote symbol to get rid of:","removeEmailGarbage_symbol",true,"^.+$",">"]],"Useful when you want to get rid of quotation symbols at the beginning of lines like <b>&gt;<\/b>. You also can use this function to get rid of comments in software code. Then you can reformat text width of the result.","removeEmailGarbage"],"m4":["Add email reply quotes",[["text","Quote symbol to add:","addEmailQuote_symbol",true,"^.+$",">"]],"Will add a quote symbol to the beginning of each line. Before you run this it is recommended that you run 'Reformat text width' to set a smaller width.","addEmailQuote"],"m5":["Remove empty lines",[],"This will remove all empty lines from text","remEmptyLines"],"m6":["Remove duplicate lines",[["bool","Case sensitive","remDuplLines_case",false,"",false]],"This will remove all duplicate lines from text","remDuplLines"],"m7":["Sort lines",[["int","Sort type","sortLines_sortType",true,"^[0-9]+$",0],["bool","Case sensitive","sortLines_case",false,"",false],["bool","Inverse","sortLines_inverse",false,"",false]],"This will sort lines in accordance with the type selected. 'Case sensitive' flag applies only to alphabetical type of sorting.","sortLines"],"m8":["Randomize lines",[],"This will arrange lines in random order. It can be used, for instance, to shuffle a playlist like m3u file.","randomLines"],"m9":["Replace tabs by spaces",[["int","Number of spaces per tab","tabsToSpaces_spaces",true,"^[0-9]+$",8],["int","Conversion type","tabsToSpaces_smart",false,"",1]],"'Dumb' means if simply convert each tab into N spaces. 'Smart' means if to keep aligned tab offsets.","tabsToSpaces"],"m10":["Convert to uppercase",[],"Will convert all text to uppercase","upperCase"],"m11":["Convert to lowercase",[],"Will convert all text to lowercase","lowerCase"],"m12":["Escape HTML symbols",[],"It is needed if you want to include an HTML code example into an HTML page. You can wrap result into a PRE tag or put it inside a TEXTAREA tag.","escHTML"]};U={"searchReplace_search":null,"searchReplace_replace":null,"searchReplace_case":null,"reSearchReplace_pattern":null,"reSearchReplace_replace":null,"reSearchReplace_case":null,"reSearchReplace_singleline":null,"formatTextWidth_width":null,"formatTextWidth_shrink":null,"removeEmailGarbage_symbol":null,"addEmailQuote_symbol":null,"remDuplLines_case":null,"sortLines_sortType":null,"sortLines_case":null,"sortLines_inverse":null,"tabsToSpaces_spaces":null,"tabsToSpaces_smart":null};WINSOFT=0;BUF_MAX_SIZE=65536;