blob: 10ac6144fe71d1ebf12e61350c6938a32beb6494 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <clocale>
#ifndef __linux__
#include <xlocale.h>
#endif
namespace vespalib::locale {
class Locale {
public:
Locale(); // Standard C locale, NOT default locale.
Locale(int category, const char *locale);
~Locale();
locale_t get() const { return _locale; }
private:
locale_t _locale;
};
}
|