Home
last modified time | relevance | path

Searched refs:char (Results 1 – 21 of 21) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md447 #### `int strlen(const char *s)`
459 #### `long strnlen(const char *src, unsigned long maxlen)`
475 #### `long strnlen_user(const char *src, unsigned long maxlen)`
493 #### `char *strncpy(char *dst, const char *src, long count)`
513 #### `char *strcpy(char *dst, const char *src)`
529 #### `long strncpy_from_user(char *dst, const char *src, unsigned long size)`
551 #### `int strcmp(char *FirstPart, char *SecondPart)`
575 #### `printk(const char* fmt, ...)`
591 #### `printk_color(unsigned int FRcolor, unsigned int BKcolor, const char* fmt, ...)`
615 #### `int vsprintf(char *buf, const char *fmt, va_list args)`
[all …]
/DragonOS/kernel/src/filesystem/fat/
H A Dutils.rs2 use core::char::REPLACEMENT_CHARACTER;
9 pub(super) fn decode_u8_ascii(value: u8) -> char { in decode_u8_ascii() argument
11 return value as char; in decode_u8_ascii()
H A Dentry.rs1955 let cp: char = match c { in copy_part()
1996 let num_suffix: Option<u32> = if name[prefix_len] as char == '~' {
1997 (name[prefix_len + 1] as char).to_digit(10)
2017 let num_suffix: Option<u32> = if name[prefix_len + 4] as char == '~' {
2018 (name[prefix_len + 1] as char).to_digit(10)
2095 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;
2103 let c1 = char::from_digit((x as u32 >> 12) & 0xf, 16)
2106 let c2 = char::from_digit((x as u32 >> 8) & 0xf, 16)
2109 let c3 = char::from_digit((x as u32 >> 4) & 0xf, 16)
2112 let c4 = char::from_digit((x as u32) & 0xf, 16)
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui_no_alloc.rs42 character: char, in no_init_textui_putchar_window() argument
64 let char = TextuiCharChromatic::new(Some(' '), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable
68 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window()
81 let char = TextuiCharChromatic::new(Some(' '), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable
82 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window()
102 let char = TextuiCharChromatic::new(Some(character), frcolor, bkcolor); in no_init_textui_putchar_window() localVariable
110 char.no_init_textui_render_chromatic( in no_init_textui_putchar_window()
H A Dtextui.rs287 c: Option<char>,
394 pub fn get_font(character: char) -> Font { in get_font()
409 pub fn new(c: Option<char>, frcolor: FontColor, bkcolor: FontColor) -> Self { in new() argument
753 character: char, in true_textui_putchar_window() argument
794 character: char, in textui_putchar_window() argument
1008 fn index(&self, c: char) -> usize; in index()
1013 F: Sync + Fn(char) -> usize,
1015 fn index(&self, c: char) -> usize { in index()
1037 character as char in rs_textui_putchar()
1049 character as char, in rs_textui_putchar()
[all …]
/DragonOS/kernel/crates/rbpf/src/
H A Dasm_parser.rs18 parser::char::{alpha_num, char, digit, hex_digit, spaces, string},
48 I: Stream<Token = char>, in ident()
56 I: Stream<Token = char>, in integer()
72 I: Stream<Token = char>, in register()
75 char('r') in register()
82 I: Stream<Token = char>, in operand()
87 let memory = between(char('['), char(']'), (register(), optional(integer()))) in operand()
94 I: Stream<Token = char>, in instruction()
97 let operands = sep_by(operand(), char(',').skip(spaces())); in instruction()
/DragonOS/kernel/src/driver/base/
H A Dmod.rs2 pub mod char; module
/DragonOS/kernel/src/libs/lib_ui/font/
H A Dspleen_font.rs9 fn index(&self, c: char) -> usize { in index()
H A Dmod.rs47 pub fn char_map(&self, character: char) -> &'a [u8] { in char_map()
/DragonOS/docs/community/code_contribution/
H A Dc-coding-style.md125 char *a;
126 void *func(char* s, int **p);
/DragonOS/docs/kernel/libs/lib_ui/
H A Dtextui.md24 character: char,
/DragonOS/kernel/src/driver/scsi/
H A Dmod.rs63 let x = (b'a' + id as u8) as char; in format_name()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs740 fn do_getpars(&mut self, c: char) { in do_getpars() argument
1340 match ch as u8 as char { in do_control()
1406 let c = ch as u8 as char; in do_control()
1436 let c = ch as u8 as char; in do_control()
1445 if ch as u8 as char == '8' { in do_control()
1461 let c = ch as u8 as char; in do_control()
1483 let c = ch as u8 as char; in do_control()
1501 let c = ch as u8 as char; in do_control()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs369 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard()
383 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard()
671 } else if (c as char).is_control() { in eraser()
682 if (c as char).is_control() && termios.local_mode.contains(LocalMode::ECHOCTL) { in eraser()
689 if !(c as char).is_control() || termios.local_mode.contains(LocalMode::ECHOCTL) in eraser()
849 && (c as char).is_control() in echo_char()
1187 match c as char { in process_output_block()
1217 if !(c as char).is_control() { in process_output_block()
1446 match c as char { in do_output_char()
1506 if !(c as char).is_control() { in do_output_char()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dmod.rs816 pub id: [char; 16],
855 pub const fn name2id(name: &str) -> [char; 16] { in name2id()
856 let mut id = [0u8 as char; 16];
860 id[i] = name.as_bytes()[i] as char;
/DragonOS/kernel/src/libs/
H A Dkeyboard_parser.rs354 return match ch as char { in to_ctrl()
/DragonOS/kernel/src/init/
H A Dcmdline.rs472 cmdline.split(move |c: char| { in split_args()
/DragonOS/kernel/src/driver/tty/
H A Dtty_driver.rs16 char::CharDevOps,
H A Dtty_device.rs12 char::CharDevice,
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber,
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs136 let x = (b'a' + id as u8) as char; in format_name()