Code

Extensions. XAML export improvements.
[inkscape.git] / src / streq.h
1 #ifndef INKSCAPE_STREQ_H
2 #define INKSCAPE_STREQ_H
4 #include <cstring>
5 #include <string>
7 /** Convenience/readability wrapper for strcmp(a,b)==0. */
8 inline bool
9 streq(char const *a, char const *b)
10 {
11     return std::strcmp(a, b) == 0;
12 }
14 struct streq_rel {
15     bool operator()(char const *a, char const *b) const
16     {
17         return (std::strcmp(a, b) == 0);
18     }
19 };
21 #endif /* !INKSCAPE_STREQ_H */
23 /*
24   Local Variables:
25   mode:c++
26   c-file-style:"stroustrup"
27   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
28   indent-tabs-mode:nil
29   fill-column:99
30   End:
31 */
32 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :