473,794 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

string tokenizer.

This must be a classical topic -- C++ stgring tokenizer.
I just switched from C to C++ ( in Unix ). It turns out that there is no
existing C++ string tokenizer. Searching on the Web, I found several and
tried one or two of them. Not very satisfied.
Any suggestions? Thx!
Jul 22 '05 #1
4 6446
"Java Guy" <ja********@com cast.net> wrote...
This must be a classical topic -- C++ stgring tokenizer.
I just switched from C to C++ ( in Unix ). It turns out that there is no
existing C++ string tokenizer. Searching on the Web, I found several and
tried one or two of them. Not very satisfied.
Any suggestions? Thx!


Found some. Not satisfied. Suggestions? Find more and see if
you like any. Or roll out your own. Somehow I have a sneaky
suspicion that I'm not saying anything new here...
Jul 22 '05 #2

"Java Guy" <ja********@com cast.net> wrote in message
news:ie******** ************@co mcast.com...
This must be a classical topic -- C++ stgring tokenizer.
I just switched from C to C++ ( in Unix ). It turns out that there is no
existing C++ string tokenizer. Searching on the Web, I found several and
tried one or two of them. Not very satisfied.
Any suggestions? Thx!


http://www.boost.org/libs/tokenizer/index.html, or is that one you've tried
already?

john
Jul 22 '05 #3
On Wed, 16 Jun 2004 23:22:42 -0400 in comp.lang.c++, "Java Guy" <ja********@com cast.net> wrote,
existing C++ string tokenizer. Searching on the Web, I found several and
tried one or two of them. Not very satisfied.


In what way did they fail to satisfy you?
http://groups.google.com/gr*********....earthlink.net

Jul 22 '05 #4

"Java Guy" <ja********@com cast.net> schrieb im Newsbeitrag
news:ie******** ************@co mcast.com...
This must be a classical topic -- C++ stgring tokenizer.
I just switched from C to C++ ( in Unix ). It turns out that there is no
existing C++ string tokenizer.
This is simply not true - I've got one right in front of me, but it's my own
implementation. What actually is true is that there is none supplied by the
standard C++ implementation.
Searching on the Web, I found several and
tried one or two of them. Not very satisfied.
Any suggestions? Thx!


Yes, tell us what bothered you with them and - even better - fix them to
suit your needs or kick off your own.

Cheers
Chris

BTW.: You do know that you can use the C standard-lib functions, so it is
possible to use strtok() although there are some issues with it that should
be considered with care.
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9119
by: blrmaani | last post by:
Here is what I want: string s1 = "This is a list of string"; list<string> s2 = s1.some_method(); Now, I should be able to traverse list s2 and get each member ( which is of type 'string' ). I know that this can be achieved using strtok. But I was wondering
12
2620
by: Generic Usenet Account | last post by:
Is it that I am blurry eyed, or is it indeed that the C++ string class has no tokenizer method defined? I have defined my own functions , but I would prefer to use the standard functions, if available. Thanks Bhat
28
5312
by: Andre | last post by:
Hi, Does anyone know whether the ECMA, or an other standard document, specifies a maximum for the value that can be pass to the setTimeOut() function in Javascript? Andre
7
8588
by: Felix85 | last post by:
I am trying to make a command interpreter for a mud that i am working on the problem i am having right now is that i cannot convert the string into a char array. This is the error I am getting now: In file included from src/mud.cpp:3: src/command.h: In static member function `static void command::getCommand(std::string)': src/command.h:38: error: incompatible types in assignment of `const
10
6049
by: Bilal | last post by:
Hello, I'm trying to perform some string manipulations in my stylesheet and have gotten stuck on the issue below so hopefully can elicit some useful hints. Namely, the problem is that I need to convert an unqualified Xpath to a fully qualified Xpath in an identity transform, i.e. /AAA/BBB/CCC/@DDD
4
1478
by: nnguyec | last post by:
Hi, I'm trying to write a small code for an assignment which the void String Tokenizer will get a line input, and take out those delimiters from the original string. Then pass each string without the delimiters back to the struct. For an example: Line in is: Today, Friday 23, is a crazy day. Delimiters is: " ,." /*space, comma and period/* The stuct will get total of 7 words: "Today", "Friday", "23", "is" ..... "day". This is the codes...
1
3440
by: JamesHoward | last post by:
I have searched the board and noticed that there isn't really any sort of good implementation of a string tokenizer that will tokenize based on a custom set of tokens and return both the tokens and the parts between the tokens. For example, if I have the string: "Hello, World! How are you?" And my splitting points are comma, and exclamation point then I would
2
1540
by: laksh2007 | last post by:
i want to search and replace strings present in a file (entire file).. i have wirtten cod eto do this.. but it is not working as expected.. code is : import java.io.*; import java.util.*;
1
3965
by: xetulul | last post by:
my problem is that im unable to match a user input word to a word in a string. the strings are in a file and then placed in nodes. i have to go through each token in each node to find the 'word'. but my code doesn't work. how can i make my code to understand that word: "night" == token in node: "night." . import java.util.*; import java.io.*; import java.util.StringTokenizer; class edit
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.