Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

quote

 
kavins
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say for example I have a very large string "A........................Z"
Within the string I have several " ie
"A........."..........".........Z".
What should I do so that the compiler ignores the quotes present WITHIN the string.
My first option was to actually place \ infront of the quote within the string.
But since my actuall string is large it is not feasible to put \ manually.

Is there an example which I can refer to?
 
Ray Stojonic
Ranch Hand
Posts: 326
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use your editor to do a find and replace: find ", replace with \"
 
kavins
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ray Stojonic:
use your editor to do a find and replace: find ", replace with \"


I dont think so thats feasible for a very large environment where the number of files is humangous.
I am working on the code for it right now.
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kavins:

I dont think so thats feasible for a very large environment where the number of files is humangous.
I am working on the code for it right now.


This problem only exist for Java files, as the compiler needs to figure out when a string starts and stops. It should be okay, for text files of strings. It should just be any other character read from a file.

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic