A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes.

learn more… | top users | synonyms (3)

1
vote
1answer
22 views

Why are some Python strings are printed with quotes and some are printed without quotes?

I have a problem with string representations. I am trying to print my object and I sometimes get single quotes in the output. Please help me to understand why it happens and how can I print out the ...
0
votes
2answers
39 views

Thread receives string as empty

void *interpretWrapper(void* arg) { char* res = (char*) arg; cout << res[0] << endl; } void *recvConn(void * data) { char buffer[1024]; int buffer_len = 1024; ...
0
votes
1answer
13 views

Powershell string to array

In Powershell how would I convert a string with a varying length of characters to an array formatted to a specific number of characters per item? Example using 10 characters per item in the array: ...
2
votes
2answers
51 views

How would one trim all non-alphanumeric and numeric characters from the beginning and end of a string?

EDIT: I changed the title to reflect specifically what it is I'm trying to do. Is there a way to retrieve all alphanumeric (or preferably, just the alphabet) characters for the current culture in ...
-3
votes
4answers
65 views

check if integer is inputted in java and not string [closed]

I have a code below wherein a user must input numbers only, the program is working but the problem is the System.out.println("Mother's Age: ") is being printed 2 times during loading while (count ...
0
votes
2answers
46 views

Enum relating to a string array that was read from file

I've received a working code (in Java, 1.7) that does the following: load an array of strings (a list of blood test names) from a file into a string array member (using Properties and ...
0
votes
5answers
96 views

differences between char * and string

I want to know the differences between char * and string. for example in this code: char *a; string b; Can anyone help me please?
1
vote
2answers
24 views

Ruby: eval with string interpolation

I don't understand, why eval works like this: "123 #{456.to_s} 789" # => "123 456 789" eval('123 #{456.to_s} 789') # => 123 How can I interpolate into a string inside eval? Update: Thank ...
0
votes
2answers
52 views

Need help modifying a regex that once worked

I am trying to parse a string and build a dictionary that will contain the name of the field and its value as key / value. Here's the code: var dictPriceList = Regex.Matches(priceListToParse, ...
1
vote
3answers
97 views

How do i escape " in verbatim string?

I am a bit new to c#, and i am stuck at this point, I have a regular string, where i made use of \ to escape ", escape here means that to escape the compilers interpretation of ", and get " printed ...
2
votes
4answers
30 views

Unable to print russian characters

I have a russian string which i have encoded to UTF-8 String str = "\u041E\u041A"; System.out.println("String str : " + str); When i print the string in eclipse console i get ?? Can anyone suggest ...
1
vote
1answer
18 views

Turkish character in asp.net

I faced a strange problem while coding a turkish site... In my vb.net code I use a vb function StrConv(s, VbStrConv.ProperCase) where s is the string that needs to be propercased. For the turkish site ...
1
vote
4answers
121 views

List with string array (List<string[]>)

I have some strange problem where all my string arrays has the same value in the List. Here is my code: List<string[]> map_data = new List<string[]>(); string[] map_data_array = new ...
1
vote
4answers
35 views

print data in hashmap in a tabular format in log file

Hi here i want to print the data of hashmap in the tabular format.Below is my code to insert the data in hashmap. String foldername = item.getParent().substring(item.getParent().lastIndexOf("/") + ...
0
votes
0answers
7 views

Remove query strings from static resources - not wordpress

When using GTMETRIX.com to evaluate my site it returns: Remove query strings from static resources The offender is: http://www.xxxxxx.com/img/slide1.jpg?1371550256182 I know this occurs because of ...

1 2 3 4 5 2708
15 30 50 per page