Questions tagged [separator]

A character that separates parts of a string.

A character that separates parts of a string. It's usually one (or more) characters used to separate tokens or may be the regex expression used by the String#split().

Strings in Java can be parsed using the split method of the String class. ( StringTokenizer can also be used to parse a string). For more detailed information see the Java API documentation for split.

See also

961 questions
279
votes
39 answers

Hide separator line on one UITableViewCell

I'm customizing a UITableView. I want to hide the line separating on the last cell ... can i do this? I know I can do tableView.separatorStyle = UITableViewCellStyle.None but that would affect all the cells of the tableView. I want it to only affect…
Safari
  • 11,437
  • 24
  • 91
  • 191
190
votes
3 answers

GROUP_CONCAT comma separator - MySQL

I have a query where I am using GROUP_CONCAT and a custom separator as my results may contain commas: '----' This all works well, however it is still comma separated, so my output is: Result A----,Result B----,Result C---- How can I make it so the…
user984580
  • 2,001
  • 2
  • 14
  • 5
142
votes
12 answers

How to add a vertical Separator?

I want to add a vertical Separator to a Grid, but i can only find the horizontal. Isn't there a Property, where you can enter if the line of the separator should be horizontal or vertical? I searched a lot, but didn't find a short and easy solution…
Martin Weber
  • 3,892
  • 4
  • 20
  • 23
115
votes
9 answers

Separators for Navigation

I need to add separators between elements of navigation. Separators are images. My HTML structure is like: ol > li > a > img. Here I come to two possible solutions: To add more li tags for separation (boo!), Include separator in image of each…
daGrevis
  • 21,014
  • 37
  • 100
  • 139
115
votes
8 answers

How to add a separator to a WinForms ContextMenu?

Inside my control, I have: ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add(new MenuItem("&Add Item", onAddSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Edit Item", onEditSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Delete…
Adam Pierce
  • 33,531
  • 22
  • 69
  • 89
91
votes
5 answers

Convert commas decimal separators to dots within a Dataframe

I am importing a CSV file like the one below, using pandas.read_csv: df = pd.read_csv(Input, delimiter=";") Example of CSV file: 10;01.02.2015 16:58;01.02.2015 16:58;-0.59;0.1;-4.39;NotApplicable;0.79;0.2 11;01.02.2015 16:58;01.02.2015…
Nautilius
  • 1,581
  • 2
  • 12
  • 14
79
votes
12 answers

Idiom for iterating "between each consecutive pair of elements"

Everyone encounters this issue at some point: for(const auto& item : items) { cout << item << separator; } ... and you get an extra separator you don't want at the end. Sometime it's not printing, but, say, performing some other action, but…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
77
votes
7 answers

Adding Thousand Separator to Int in Swift

I am fairly new to Swift and having a great deal of trouble finding a way to add a space as a thousand separator. What I am hoping to achieve is taking the result of a calculation and displaying it in a textfield so that the format is: 2 358…
alionthego
  • 8,508
  • 9
  • 52
  • 125
68
votes
36 answers

How can I print a list of elements separated by commas?

I know how to do this in other languages, but not in C++, which I am forced to use here. I have a set of strings (keywords) that I'm printing to out as a list, and the strings need a comma between them, but not a trailing comma. In Java, for…
quandrum
  • 1,608
  • 1
  • 11
  • 14
63
votes
9 answers

HTML + CSS: Ordered List without the Period?

I think the answer to this question is no... but does anyone know of a an HTML/CSS way to create an ordered list without a period after the numbers? Or, alternatively, to specify the separator character? Ideally I don't want to do list-style-image…
Andrew
  • 42,517
  • 51
  • 181
  • 281
54
votes
2 answers

A vertical Separator control in a Menu, Toolbar, StackPanel, etc. - Is it possible?

I want to use the Separator control in a vertical way (Lets say in a horizontal StackPanel). Searching around I found this method but it doesn't use the Separator control rather it uses borders and…
Randall Flagg
  • 4,834
  • 9
  • 33
  • 45
43
votes
9 answers

Java: join array of primitives with separator

Suppose, I have an array: int[] arr = new int[] {1, 2, 3, 4, 5, 6, 7}; And I need to join its elements using separator, for example, " - ", so as the result I should get string like this: "1 - 2 - 3 - 4 - 5 - 6 - 7" How could I do this? PS: yes, I…
spirit
  • 3,265
  • 2
  • 14
  • 29
39
votes
10 answers

When to use the terms "delimiter," "terminator," and "separator"

What are the semantics behind usage of the words "delimiter," "terminator," and "separator"? For example, I believe that a terminator would occur after each token and a separator between each token. Is a delimiter the same as either of these, or…
Tim Lehner
  • 14,813
  • 4
  • 59
  • 76
37
votes
3 answers

Escaping separator within double quotes, in awk

I am using awk to parse my data with "," as separator as the input is a csv file. However, there are "," within the data which is escaped by double quotes ("..."). Example filed1,filed2,field3,"field4,FOO,BAR",field5 How can i ignore the comma ","…
joomanji
  • 473
  • 1
  • 4
  • 6
36
votes
3 answers

MySQL : left part of a string split by a separator string?

I need a MySQL function to get the left part of a string with variable length, before the separator. For example, with separator string '==' : abcdef==12345 should return abcdef abcdefgh==12 should return abcdefgh Also the same thing, but…
Dylan
  • 9,129
  • 20
  • 96
  • 153
1
2 3
63 64