Mercurial > octave-nkf
comparison liboctave/str-vec.h @ 8678:e2b4c19c455c
redo changeset 4238f2600a17 with fixes to sorting
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 04 Feb 2009 16:05:01 +0100 |
parents | d7128ae51e44 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8677:095ae5e0a831 | 8678:e2b4c19c455c |
---|---|
82 | 82 |
83 std::string& operator[] (octave_idx_type i) { return Array<std::string>::elem (i); } | 83 std::string& operator[] (octave_idx_type i) { return Array<std::string>::elem (i); } |
84 | 84 |
85 std::string operator[] (octave_idx_type i) const { return Array<std::string>::elem (i); } | 85 std::string operator[] (octave_idx_type i) const { return Array<std::string>::elem (i); } |
86 | 86 |
87 string_vector& sort (bool make_uniq = false) | 87 string_vector& sort (bool make_uniq = false); |
88 { | |
89 Array<std::string>::sort (); | |
90 | |
91 if (make_uniq) | |
92 uniq (); | |
93 | |
94 return *this; | |
95 } | |
96 | 88 |
97 string_vector& uniq (void); | 89 string_vector& uniq (void); |
98 | 90 |
99 string_vector& append (const std::string& s); | 91 string_vector& append (const std::string& s); |
100 | 92 |