Skip to content. Skip to navigation

ICTP Portal

Sections
You are here: Home Manuals on-line PGI Compiler pgC_lib toupper
Personal tools
Document Actions

toupper



Click on the banner to return to the class reference home page.

toupper


Locale Convenience Function

Summary

Converts a character to upper case.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

Synopsis

#include <locale>

template <class charT> 
charT toupper (charT c, const locale& loc) const;

Description

The toupper returns the parameter c converted to upper case. The conversion is made using the ctype facet from the locale parameter.

Example

// 
// toupper.cpp
//
#include <iostream>

int main ()
{
  using namespace std;

  locale loc;

  cout << 'a' << toupper('c') << tolower('F') << endl;
 
  return 0;
}

See Also

tolower, locale, ctype


©Copyright 1996, Rogue Wave Software, Inc.

Weather
No information available
 

Powered by Plone This site conforms to the following standards: