INNER CODE UNIT · Rust

country_code

denialwm/denial · compositor/flutter-engine/src/lib.rs:529

    pub fn country_code(&self) -> Option<&CStr> {
        self.country_code.as_deref()
    }

    pub fn script_code(&self) -> Option<&CStr> {
        self.script_code.as_deref()
    }

    pub fn variant_code(&self) -> Option<&CStr> {
        self.variant_code.as_deref()
    }

    fn as_flutter_locale(&self) -> sys::FlutterLocale {
        sys::FlutterLocale {
            struct_size: mem::size_of::<sys::FlutterLocale>(),
            language_code: self.language_code.as_ptr(),
            country_code: self
                .country_code

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…