|
Hi all,
(I apparently put this in wrong forum the first time, sorry for the double post.)
I just wanted to share a tool I recently developed. Over the years I've gotten so sick of manually building concatenated strings and / or Stingbuilder objects from queries and other blocks of text. Last week I created a tool that automatically generates concatenated strings and Stringbuilder code from blocks of text.
www.buildmystring.com
Enjoy. I'd appreciate any feedback as well.
|
|
|
|
|
If the string is a constant, you do not need a StringBuilder . The string would be "interned", which is a bit more efficient.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Correct which is why there is also an option to build a concatenated string instead of a Stringbuilder. It's to automate all the escaping of quotes and backslashes more than anything which has annoyed me over the years.
|
|
|
|
|
great tool.
Just a small hiccup. If i put a semicolon at the end of text , your program should remove it first and then convert it to string .
for example i wrote this.
select * from table where abc = 'wah wah';
and it is converted like this.
StringBuilder sb = new StringBuilder();
sb.Append("select * from saad where abc = 'wah wah';");
which is not correct.
Other than that it is really a great tool.
|
|
|
|