c++ Differentiating between string containing double quotes and normal strings -


i'm using visual studio 2015 enterprise run code. right now, i'm doing parser "processes" input.

so far have done manage split strings down want.

for e.g, uses(2, s)

will give me:

2 

and

s 

respectively.

however, if lets e.g uses(2, "x") want get:

2 

and

"x" 

("x" quotation marks)

what have been doing use std::string.find function

"\"" 

within strings differentiate between s , "x" , store in own object.

however, using std::string.find "\"" on s seems hold true well. i'm guessing because string, in visual studio 2015 enterprise when try debug it shows variable "s" instead of s.

is there way can use differentiate between s , "x" both strings before creating object? i've tried searching backslash if i'm correct, each string ends off \0 wouldn't work..


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -