[gparted] Add comment to Utils::tokenize method
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Add comment to Utils::tokenize method
- Date: Fri, 3 Feb 2012 19:05:19 +0000 (UTC)
commit cb3aab77fc79e4cbcc20c87ec53e1fbeb3c8c6d0
Author: Curtis Gedak <gedakc gmail com>
Date: Fri Feb 3 11:38:51 2012 -0700
Add comment to Utils::tokenize method
src/Utils.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Utils.cc b/src/Utils.cc
index f97a3f2..e215201 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -523,6 +523,9 @@ Glib::ustring Utils::get_lang()
return lang ;
}
+//Extract a list of tokens from any number of background separator characters
+// E.g., tokenize(str=" word1 word2 ", tokens, delimiters=" ")
+// -> tokens=["word1","word2]
//The tokenize method copied and adapted from:
// http://www.linuxselfhelp.com/HOWTO/C++Programming-HOWTO-7.html
void Utils::tokenize( const Glib::ustring& str,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]