Mercurial > hg > octave-lyh
diff liboctave/str-vec.cc @ 3504:5eef8a2294bd
[project @ 2000-02-01 10:06:51 by jwe]
author | jwe |
---|---|
date | Tue, 01 Feb 2000 10:07:26 +0000 |
parents | d14c483b3c12 |
children | c20a1e67cef6 |
line wrap: on
line diff
--- a/liboctave/str-vec.cc +++ b/liboctave/str-vec.cc @@ -42,7 +42,7 @@ // Create a string vector from a NULL terminated list of C strings. string_vector::string_vector (const char * const *s) - : Array<string> () + : Array<std::string> () { int n = 0; @@ -61,7 +61,7 @@ // nonnegative. string_vector::string_vector (const char * const *s, int n) - : Array<string> (n) + : Array<std::string> (n) { for (int i = 0; i < n; i++) elem (i) = s[i]; @@ -114,8 +114,8 @@ // Format a list in neat columns. -ostream& -string_vector::list_in_columns (ostream& os) const +std::ostream& +string_vector::list_in_columns (std::ostream& os) const { // Compute the maximum name length. @@ -159,7 +159,7 @@ while (1) { - string nm = elem (count); + std::string nm = elem (count); os << nm; int name_length = nm.length ();