Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
delimiters
- Page 1
Re: FStream question--delimiters
Programming
Software Development
16 Years Ago
by vijayan121
… the parameters, >> but how do I use both
delimiters
at the same time. as dragon has shown, using whitespaces… alone as
delimiters
is very easy; this is the default in c++. to… also use period, ; , :, ? etc as
delimiters
to separate words, you could read one line of text…
FStream question--delimiters
Programming
Software Development
16 Years Ago
by jrkeller27
… separate word. I'm guessing using whitespace and periods as
delimiters
as the parameters, but how do I use both…
delimiters
at the same time. I'm not too concerned about …
Split up text with mulitple delimiters
Programming
Software Development
15 Years Ago
by William Hemsworth
… how you can manually split up a sentence using multiple
delimiters
. In this example, I split up this sentence: [ICODE]"…] [ICODE]"william"[/ICODE] As you can see, the
delimiters
are not included ([ICODE]" ,!"[/ICODE])
Splitting a string, delimiters included
Programming
Software Development
10 Years Ago
by ddanbe
… list of substrings (consisting of digits and letters) and their
delimiters
. If it is practicaly a sin to manipulate the index… a for loop, then I'm a sinner. If two
delimiters
follow each other, an empty string is produced between the…
Re: Splitting a string, delimiters included
Programming
Software Development
10 Years Ago
by deceptikon
> Done :) The result set must *include*
delimiters
, not remove them. ;) Try this little one-liner: var parts = Regex.Split("abc,123.xyz;praise;end,file,clear", @"([\.,;])");
Re: Splitting a string, delimiters included
Programming
Software Development
10 Years Ago
by Ketsuekiame
Damn, I missed that part about keeping the
delimiters
in. That's actually an easy change to make, but not worth it. Regex is far superior at this task, but I know little Regex at all :) @Deceptikon: Out of interest, what's the performance difference between Regex and the LINQ statements I create?
Getline with multiple delimiters??
Programming
Software Development
17 Years Ago
by Peetah
… do I use the comma and the newline character as
delimiters
for the same read function?
String Parsing using known delimiters? [C++]
Programming
Software Development
14 Years Ago
by Shaitan00
…, specifically: string, string, long string int string double int The
delimiters
are therefore: Comma (,) for the first two fields Spaces for…
Some Java Assistance with Delimiters and scanner.
Programming
Software Development
14 Years Ago
by .11
… cant get rid of everything else, I have tried other
delimiters
but didnt work at all. I think I need multiple…
splitting a string with preg_split using multiple delimiters
Programming
Web Development
14 Years Ago
by baltazar
Hi, I'm trying to split a string with multiple
delimiters
using the PHP preg_split function. I am trying to separate …
4 python string delimiters
Programming
Software Development
13 Years Ago
by lewashby
I was told that there are four python string
delimiters
but I can only think of three, ', ", & """. What is that last one? I searched google but with no luck.
Re: 4 python string delimiters
Programming
Software Development
13 Years Ago
by d5e5
…;1452120]I was told that there are four python string
delimiters
but I can only think of three, ', ", & "…
split string into array with 2 delimiters
Programming
Web Development
12 Years Ago
by Thyvo
… chop a string into a array with 2 or more
delimiters
example: this is the text and I want to chop…
Re: split string into array with 2 delimiters
Programming
Web Development
12 Years Ago
by twiss
Oops, forgot the
delimiters
. [CODE] $arr = preg_split('/\[!(FIRST|LAST|OPTIONAL)!\]/', $text); [/CODE]
Re: split string into array with 2 delimiters
Programming
Web Development
12 Years Ago
by Thyvo
[QUOTE=twiss;1576874]Oops, forgot the
delimiters
. [CODE] $arr = preg_split('/\[!(FIRST|LAST|OPTIONAL)!\]/', $text); [/CODE][/QUOTE] Thanks :D
Help with delimiters
Programming
Software Development
11 Years Ago
by alissaw
…. I've got a bit of a loose grip on
delimiters
, which I'm trying to use in this code from…
Re: Help with delimiters
Programming
Software Development
11 Years Ago
by stultuske
…, ..., then [this](http://stackoverflow.com/questions/6244670/java-using-multiple-
delimiters
-in-a-scanner) is a good place to start your…
Code execution within delimiters
Programming
Software Development
10 Years Ago
by 3e0jUn
… a loop, like so: [ some code goes here ] Where the
delimiters
are "[" and "]", and also allowing for…
Re: How to split a string with certain delimiters in java
Programming
Software Development
11 Years Ago
by JamesCherrill
….] [M. Visscher], because there's nothing in the data or
delimiters
that answers that question.
Delimiters and ArrayLists
Programming
Software Development
14 Years Ago
by _dragonwolf_
I'm trying to create a boggle game. I have it so it will setup the board and accept user input. What I am trying to do now is get rid of the "[" braces "]" and the commas to give it a cleaner look and to hopefully make it easier when i try and run a solution check. Can someone please assist me in getting rid of the braces and…
Re: Delimiters and ArrayLists
Programming
Software Development
14 Years Ago
by javaAddict
Use a for loop, to loop through the ArrayList and print its elements instead of the System.out.println(row1)
Re: Delimiters and ArrayLists
Programming
Software Development
14 Years Ago
by ~s.o.s~
The commas and the brackets are a part of the ArrayList class's toString() implementation. If you need your own row representation, either write your own method which does so or better yet, create a custom class called BoggleRow which uses composition or inheritance to mimic the ArrayList class. Something like:[code] public class TestRun3 { …
Re: FStream question--delimiters
Programming
Software Development
16 Years Ago
by Ancient Dragon
very easy to read just words [code] #include <string> #include <fstream> using namespace std; int main() { ifstrem in("filename"); string word; while( in >> word ) { // do something with this word } } [/code]
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by ksc91u
The code above separate the file by '\n', than by the delimiter. Is it possible to separate the file only by delimiter? Eg: A B@ C@D Separate by @ => "A\nB" "\nC" "D" Thank you.
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by Ancient Dragon
yes -- getline has a third optional parameter that is the deliminator. This should work, but I haven't tested it. [icode]getline(fin, line, '@');[/icode]
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by ksc91u
Thank you, Dragon for the quick reply. Sorry I didn't describe my problem clearly. Actually, I am hoping to use a string delimiter instead of a char. Like this: @ @A @B @ @C DE Separate by "@\n@" => "A\nB\n" "C\nDE" :) I used to write Perl, which can use $/="@\n@" to do so, but …
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by Ancient Dragon
I'm still not sure what you want -- "@\n@" is the line terminator ? Instead of just '\n'? So that '\n' all by itself is not a line termiator. The only way I can think of at the moment to do that is to read the whole file as binary file into a character buffer then parse it yourself. Someone once mentioned that perl scripts can be …
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by jephthah
you can call Perl scripts from C/C++, but it's not particularly useful if you plan on distributing your code to any other machines. because you'll either need the full Perl installation (plus any obscure modules you might use) installed on (or networked to) every target machine, or you'll need a Perl Development Kit ($$) to build super-…
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by Duoas
You know that you can [b]getline[/b]() with any character as delimiter, so why not use that to test for a potential separator sequence? [code=C++] #include <iostream> #include <string> #include <vector> using namespace std; vector<string> read_lines( istream&ins, const string& separator ) { vector<…
Re: FStream question--delimiters
Programming
Software Development
15 Years Ago
by William Hemsworth
This may not be the best way to seperate each word, but heres how I managed it. You could read all the text out of the file first and then manually retrieve each word. [CODE] #include<iostream> using namespace std; #pragma warning(disable : 4018) char *SubStr(char *text, int beg, int end) { register int len = end - beg; …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC