|
|
Sounds like a job for...
QStringList QStringList::split(...)
Sam
-----Original Message-----
From: owner-qt-interest@xxxxxxxxxxxxx
[mailto:owner-qt-interest@xxxxxxxxxxxxx] On Behalf Of Owen Franssen
Sent: 01 December 2004 12:33
To: QT Mailing List
Subject: Splitting up a QString into an array of strings
This is probably very obvious but i've spent the last 2 hours looking
and haven't got anywhere.
In PHP (the language I usually code in) there is a function explode()
that takes a string and a delimiter and splits the given string into an
array of strings. e.g.
explode ("/", "abc/def/ghi"); would return array("abc, "def", "ghi")
What is the function to achive this with a QString?
Sorry for asking probably silly questions.
Thanks in advance
Owen
--
List archive and information: http://lists.trolltech.com/qt-interest/
This email (and any attachments) is intended solely for the individual(s) to
whom addressed.
It may contain confidential and/or legally privileged information.
Any statement or opinions therein are not necessarily those of ITN unless
specifically stated.
Any unauthorised use, disclosure or copying is prohibited.
If you have received this email in error, please notify the sender and delete
it from your system.
Security and reliability of the e-mail and attachments are not guaranteed.
You must take full responsibility for virus checking.
Independent Television News Limited,
Registered No. 548648 England,
VAT Reg. No: GB 756 2995 81,
200 Gray's Inn Road, London WC1X 8XZ,
Telephone: 020 7833 3000.
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|