50 const Teuchos::ArrayView<const std::string>& array)
52 typedef Teuchos::ArrayView<std::string>::const_iterator iter_type;
55 for (iter_type iter = array.begin(); iter != array.end(); ++iter) {
56 out <<
"\"" << *iter <<
"\"";
57 if (iter + 1 != array.end()) {
66 const std::vector<std::string>& array)
68 Teuchos::ArrayView<const std::string> av;
69 if (array.size () == 0) {
70 av = Teuchos::ArrayView<const std::string> (NULL, 0);
73 av = Teuchos::ArrayView<const std::string> (&array[0], array.size ());
81 typedef std::string::value_type char_t;
82 typedef std::ctype<char_t> facet_type;
83 const facet_type& facet = std::use_facet<facet_type> (std::locale ());
85 const std::string::size_type len = s.size ();
87 for (std::string::size_type k = 0; k < len; ++k) {
88 s_uc[k] = facet.toupper (s[k]);
std::string upperCase(const std::string &s)
Return the upper-case version of s.
void printStringArray(std::ostream &out, const Teuchos::ArrayView< const std::string > &array)
Print the given array of strings, in YAML format, to out.