Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Product Lifecycle
  3. Free Tools
  4. Free utility to automate concatenated string creation and Stringbuilder code generation

Free utility to automate concatenated string creation and Stringbuilder code generation

Scheduled Pinned Locked Moved Free Tools
comai-codingbeta-testingtoolscode-review
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Build String
    wrote on last edited by
    #1

    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.

    L J 2 Replies Last reply
    0
    • B Build String

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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 :suss: if you can't read my code, try converting it here[^]

      B 1 Reply Last reply
      0
      • L Lost User

        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 :suss: if you can't read my code, try converting it here[^]

        B Offline
        B Offline
        Build String
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • B Build String

          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.

          J Offline
          J Offline
          joinsaad
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups