ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mbsupr.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/msvcrt/mbstring/mbsupr.c
00005  * PURPOSE:
00006  * PROGRAMER:   Ariadne
00007  * UPDATE HISTORY:
00008  *              12/04/99: Created
00009  */
00010 
00011 #include <precomp.h>
00012 #include <mbstring.h>
00013 #include <ctype.h>
00014 
00015 unsigned int _mbbtoupper(unsigned int c)
00016 {
00017     if (!_ismbblead(c) )
00018         return toupper(c);
00019 
00020     return c;
00021 }
00022 
00023 /*
00024  * @implemented
00025  */
00026 unsigned int _mbctoupper(unsigned int c)
00027 {
00028     return _ismbclower (c) ? c - 0x21 : c;
00029 }
00030 
00031 unsigned char *_mbset (unsigned char *string, int c)
00032 {
00033     unsigned char *save = string;
00034 
00035     if (_MBIS16 (c)) {
00036 
00037     if (_MBLMASK (c) == 0) {
00038         *string++ = '\0';
00039         *string++ = '\0';
00040     }
00041     else {
00042         *string++ = _MBGETH (c);
00043         *string++ = _MBGETL (c);
00044     }
00045 
00046     }
00047     else {
00048 
00049     *string++ = c;
00050 
00051     }
00052 
00053     return save;
00054 }
00055 
00056 /*
00057  * @implemented
00058  */
00059 unsigned char *_mbsupr (unsigned char *string)
00060 {
00061     int c;
00062     unsigned char *save = string;
00063 
00064     while ((c = _mbsnextc (string))) {
00065 
00066     if (_MBIS16 (c) == 0)
00067         c = toupper (c);
00068 
00069     _mbset (string, c);
00070 
00071     string = _mbsinc (string);
00072 
00073     }
00074 
00075     return save;
00076 }

Generated on Sat May 26 2012 04:35:28 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.