• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

kascii.cpp File Reference

#include "kascii.h"

Go to the source code of this file.

Functions

static unsigned char ASCIIToLower (unsigned char ch)
static unsigned char ASCIIToUpper (unsigned char ch)
int kasciistricmp (const char *str1, const char *str2)
char * kAsciiToLower (char *s)
char * kAsciiToUpper (char *s)

Function Documentation

static unsigned char ASCIIToLower ( unsigned char  ch  )  [static]

Convert a single ASCII character to lowercase.

Parameters:
ch Character to convert

For internal use only.

Definition at line 50 of file kascii.cpp.

static unsigned char ASCIIToUpper ( unsigned char  ch  )  [static]

Convert a single ASCII character to uppercase.

Parameters:
ch Character to convert

For internal use only.

Definition at line 71 of file kascii.cpp.

int kasciistricmp ( const char *  str1,
const char *  str2 
)

Locale-independent qstricmp.

Use this for comparing ascii keywords in a case-insensitive way. qstricmp fails with e.g. the Turkish locale where 'I'.toLower() != 'i'

Definition at line 22 of file kascii.cpp.

char* kAsciiToLower ( char *  str  ) 

Locale-independent function to convert ASCII strings to lower case ASCII strings.

This means that it affects only the ASCII characters A-Z.

Parameters:
str pointer to the string which should be converted to lower case
Returns:
pointer to the converted string (same as str)

Definition at line 58 of file kascii.cpp.

char* kAsciiToUpper ( char *  str  ) 

Locale-independent function to convert ASCII strings to upper case ASCII strings.

This means that it affects only the ASCII characters a-z.

Parameters:
str pointer to the string which should be converted to upper case
Returns:
pointer to the converted string (same as str)

Definition at line 79 of file kascii.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal