Ignore:
Timestamp:
Jun 7, 2002, 10:02:20 AM (23 years ago)
Author:
sandervl
Message:

resynced with latest Wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/string.c

    r7820 r8584  
     1/*
     2 * Shlwapi string functions
     3 *
     4 * Copyright 1998 Juergen Schmied
     5 *
     6 * This library is free software; you can redistribute it and/or
     7 * modify it under the terms of the GNU Lesser General Public
     8 * License as published by the Free Software Foundation; either
     9 * version 2.1 of the License, or (at your option) any later version.
     10 *
     11 * This library is distributed in the hope that it will be useful,
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14 * Lesser General Public License for more details.
     15 *
     16 * You should have received a copy of the GNU Lesser General Public
     17 * License along with this library; if not, write to the Free Software
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     19 */
     20
    121#include <ctype.h>
    2 #include <stdlib.h> 
     22#include <stdlib.h>
    323#include <stdio.h>
    424#include <string.h>
     
    1030#include "winuser.h"
    1131#include "winreg.h"
    12 #ifdef __WIN32OS2__
    13 #include "shlobj.h"
    14 #define NO_SHLWAPI_STREAM
    15 #include "shlwapi.h"
    16 #else
    1732#define NO_SHLWAPI_STREAM
    1833#include "shlwapi.h"
    1934#include "shlobj.h"
    20 #endif
    2135#include "wine/unicode.h"
    22 #include "debugtools.h"
    23 
    24 DEFAULT_DEBUG_CHANNEL(shell);
     36#include "wine/debug.h"
     37
     38WINE_DEFAULT_DEBUG_CHANNEL(shell);
    2539
    2640/*************************************************************************
     
    255269        int len = strlen(lpSrc);
    256270        LPSTR lpDest = (LPSTR) LocalAlloc(LMEM_FIXED, len+1);
    257        
     271
    258272        TRACE("%s\n", lpSrc);
    259273
     
    269283        int len = strlenW(lpSrc);
    270284        LPWSTR lpDest = (LPWSTR) LocalAlloc(LMEM_FIXED, sizeof(WCHAR) * (len+1));
    271        
     285
    272286        TRACE("%s\n", debugstr_w(lpSrc));
    273287
     
    295309            }
    296310          }
    297         }     
     311        }
    298312        TRACE("-- %u\n", pos);
    299         return pos;     
     313        return pos;
    300314}
    301315
     
    319333            }
    320334          }
    321         }     
     335        }
    322336        TRACE("-- %u\n", pos);
    323         return pos;     
     337        return pos;
    324338}
    325339
     
    342356        if (dbcs && lpStart[1] != HIBYTE(wMatch)) continue;
    343357        lpGotIt = lpStart;
    344     }   
     358    }
    345359    return (LPSTR)lpGotIt;
    346360}
     
    390404            if (toupper(*lpStart) == toupper(wMatch)) lpGotIt = lpStart;
    391405        }
    392     }   
     406    }
    393407    return (LPSTR)lpGotIt;
    394408}
     
    452466/*************************************************************************
    453467 * StrRetToBufA                                 [SHLWAPI.@]
    454  * 
     468 *
    455469 * converts a STRRET to a normal string
    456470 *
     
    497511/*************************************************************************
    498512 * StrRetToBufW                                 [SHLWAPI.@]
    499  * 
     513 *
    500514 * converts a STRRET to a normal string
    501515 *
     
    564578        }
    565579        lstrcpynA (pszBuf, buf, cchBuf);
    566         return pszBuf; 
     580        return pszBuf;
    567581}
    568582
     
    621635    return trimmed;
    622636}
    623 
    624 /*************************************************************************
    625  *      wnsprintfA      [SHLWAPI.@]
    626  */
    627 int WINAPIV wnsprintfA(LPSTR lpOut, int cchLimitIn, LPCSTR lpFmt, ...)
    628 {
    629     va_list valist;
    630     INT res;
    631 
    632     va_start( valist, lpFmt );
    633     res = wvsnprintfA( lpOut, cchLimitIn, lpFmt, valist );
    634     va_end( valist );
    635     return res;
    636 }
    637 
    638 /*************************************************************************
    639  *      wnsprintfW      [SHLWAPI.@]
    640  */
    641 int WINAPIV wnsprintfW(LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, ...)
    642 {
    643     va_list valist;
    644     INT res;
    645 
    646     va_start( valist, lpFmt );
    647     res = wvsnprintfW( lpOut, cchLimitIn, lpFmt, valist );
    648     va_end( valist );
    649     return res;
    650 }
Note: See TracChangeset for help on using the changeset viewer.