summaryrefslogtreecommitdiff
path: root/src/inc/clr/str.h
blob: 94c8ed46b56bdd39c65b3fa77ae788e1870e67ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//

//
// This header provides general standard string services.
//

#ifndef _clr_str_h_
#define _clr_str_h_

namespace clr
{
    namespace str
    {
        //-----------------------------------------------------------------------------------------
        // Returns true if the provided string is a null pointer or the empty string.
        static inline bool
        IsNullOrEmpty(LPCWSTR wzStr)
        {
            return wzStr == nullptr || *wzStr == W('\0');
        }
    }
}

#endif // _clr_str_h_