Home
last modified time | relevance | path

Searched refs:wcstring (Results 1 – 25 of 251) sorted by relevance

1234567891011

/dports/shells/fish/fish-3.3.1/src/
H A Dpath.h20 bool path_get_config(wcstring &path);
30 bool path_get_data(wcstring &path);
54 bool path_get_path(const wcstring &cmd, wcstring *out_path, const environment_t &vars);
71 maybe_t<wcstring> path_get_cdpath(const wcstring &dir, const wcstring &wd,
75 wcstring_list_t path_apply_cdpath(const wcstring &dir, const wcstring &wd,
80 maybe_t<wcstring> path_as_implicit_cd(const wcstring &path, const wcstring &wd,
89 bool paths_are_equivalent(const wcstring &p1, const wcstring &p2);
91 bool path_is_valid(const wcstring &path, const wcstring &working_directory);
94 bool paths_are_same_file(const wcstring &path1, const wcstring &path2);
98 wcstring path_apply_working_directory(const wcstring &path, const wcstring &working_directory);
[all …]
H A Dfunction.h36 std::map<wcstring, wcstring_list_t> inherit_vars;
45 void function_add(wcstring name, wcstring description, function_properties_ref_t props,
49 void function_remove(const wcstring &name);
57 bool function_get_definition(const wcstring &name, wcstring &out_definition);
62 bool function_get_desc(const wcstring &name, wcstring &out_desc);
65 void function_set_desc(const wcstring &name, const wcstring &desc, parser_t &parser);
75 bool function_exists_no_autoload(const wcstring &cmd);
83 bool function_is_autoloaded(const wcstring &name);
96 int function_get_definition_lineno(const wcstring &name);
100 bool function_copy(const wcstring &name, const wcstring &new_name);
[all …]
H A Dcomplete.h52 using description_func_t = std::function<wcstring(const wcstring &)>;
67 wcstring completion;
69 wcstring description;
80 explicit completion_t(wcstring comp, wcstring desc = wcstring(),
146 __warn_unused bool add(wcstring &&comp, wcstring desc, complete_flags_t flags = 0,
240 void complete_remove(const wcstring &cmd, bool cmd_is_path, const wcstring &option,
252 wcstring complete_print(const wcstring &cmd = L"");
255 int complete_is_valid_option(const wcstring &str, const wcstring &opt,
259 bool complete_is_valid_argument(const wcstring &str, const wcstring &opt, const wcstring &arg);
267 void append_completion(completion_list_t *completions, wcstring comp, wcstring desc = wcstring(),
[all …]
H A Denv_universal_common.h20 wcstring key;
23 maybe_t<wcstring> val;
26 callback_data_t(wcstring k, maybe_t<wcstring> v) : key(std::move(k)), val(std::move(v)) {} in callback_data_t()
38 bool get_hostname_identifier(wcstring &result);
56 bool remove(const wcstring &key);
96 wcstring vars_path_;
103 std::unordered_set<wcstring> modified;
127 autoclose_fd_t open_temporary_file(const wcstring &directory, wcstring *out_path);
129 bool move_new_vars_file_into_place(const wcstring &src, const wcstring &dst);
148 bool save(const wcstring &directory, const wcstring &vars_path);
[all …]
H A Dwcstringutil.h14 bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value);
21 bool string_suffixes_string(const wcstring &proposed_suffix, const wcstring &value);
35 size_t ifind(const wcstring &haystack, const wcstring &needle, bool fuzzy = false);
130 wcstring_list_t split_string_tok(const wcstring &val, const wcstring &seps,
136 inline wcstring to_string(long x) { in to_string()
139 return wcstring(buff); in to_string()
145 return wcstring(buff); in to_string()
212 wcstring truncate(const wcstring &input, int max_len,
214 wcstring trim(wcstring input);
215 wcstring trim(wcstring input, const wchar_t *any_of);
[all …]
H A Dcomplete.cpp76 static const wcstring &C_(const wcstring &s) { return s; } in C_()
93 wcstring option;
97 wcstring comp;
99 wcstring desc;
387 void complete_from_args(const wcstring &str, const wcstring &args, const wcstring &desc,
574 static void parse_cmd_string(const wcstring &str, wcstring *path, wcstring *cmd, in parse_cmd_string()
640 wcstring cmd; in complete_cmd_desc()
680 std::unordered_map<wcstring, wcstring> lookup; in complete_cmd_desc()
718 static wcstring complete_function_desc(const wcstring &fn) { in complete_function_desc()
1783 static void append_switch(wcstring &out, const wcstring &opt, const wcstring &arg) { in append_switch()
[all …]
H A Dwcstringutil.cpp13 wcstring truncate(const wcstring &input, int max_len, ellipsis_type etype) { in truncate()
30 wcstring trim(wcstring input) { return trim(std::move(input), L"\t\v \r\n"); } in trim()
32 wcstring trim(wcstring input, const wchar_t *any_of) { in trim()
35 if (suffix == wcstring::npos) { in trim()
36 return wcstring{}; in trim()
46 wcstring wcstolower(wcstring input) { in wcstolower()
65 bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value) { in string_prefixes_string()
98 bool string_suffixes_string(const wcstring &proposed_suffix, const wcstring &value) { in string_suffixes_string()
119 static bool subsequence_in_string(const wcstring &needle, const wcstring &haystack) { in subsequence_in_string()
238 size_t ifind(const wcstring &haystack, const wcstring &needle, bool fuzzy) { in ifind()
[all …]
H A Dwutil.h26 DIR *wopendir(const wcstring &name);
38 int wunlink(const wcstring &file_name);
50 wcstring wgetcwd();
54 maybe_t<wcstring> wrealpath(const wcstring &pathname);
60 wcstring normalize_path(const wcstring &path, bool allow_leading_double_slashes = true);
66 wcstring path_normalize_for_cd(const wcstring &wd, const wcstring &path);
95 int wrename(const wcstring &oldName, const wcstring &newv);
125 int fish_wcswidth(const wcstring &str);
160 wcstring dump() const;
170 bool read(wcstring &name) const;
[all …]
H A Dparse_util.h32 int parse_util_locate_cmdsubst_range(const wcstring &str, size_t *inout_cursor_offset,
84 int parse_util_get_line_from_offset(const wcstring &str, size_t pos);
87 size_t parse_util_get_offset_from_line(const wcstring &str, int line);
90 size_t parse_util_get_offset(const wcstring &str, int line, long line_offset);
94 wcstring parse_util_unescape_wildcards(const wcstring &str);
97 bool parse_util_argument_is_help(const wcstring &s);
113 wcstring parse_util_escape_string_with_quote(const wcstring &cmd, wchar_t quote,
118 std::vector<int> parse_util_compute_indents(const wcstring &src);
124 parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src,
135 maybe_t<wcstring> parse_util_detect_errors_in_argument_list(const wcstring &arg_list_src,
[all …]
H A Dfunction.cpp41 wcstring description;
65 bool remove(const wcstring &name);
130 wcstring name; in autoload_names()
152 void function_add(wcstring name, wcstring description, function_properties_ref_t props, in function_add()
225 bool function_get_definition(const wcstring &name, wcstring &out_definition) { in function_get_definition()
243 bool function_get_desc(const wcstring &name, wcstring &out_desc) { in function_get_desc()
253 void function_set_desc(const wcstring &name, const wcstring &desc, parser_t &parser) { in function_set_desc()
263 bool function_copy(const wcstring &name, const wcstring &new_name) { in function_copy()
342 wcstring functions_def(const wcstring &name) { in functions_def()
344 wcstring out; in functions_def()
[all …]
H A Dwildcard.cpp62 return wcstring::npos; in wildcard_find()
164 static wcstring resolve_description(const wcstring &full_completion, wcstring *completion, in resolve_description()
177 return wcstring{}; in resolve_description()
508 wcstring desc; in wildcard_test_flags_then_complete()
554 void expand_trailing_slash(const wcstring &base_dir, const wcstring &prefix);
599 wcstring descend_unique_hierarchy(const wcstring &start_point) { in descend_unique_hierarchy()
745 wcstring next; in expand_trailing_slash()
760 wcstring name_str; in expand_intermediate_segment()
798 wcstring name_str; in expand_literal_intermediate_segment_with_fuzz()
853 wcstring name_str; in expand_last_segment()
[all …]
H A Dreader.h32 wcstring old, replacement;
47 void apply_edit(wcstring *target, const edit_t &edit);
80 wcstring text_;
93 const wcstring &text() const { return text_; } in text()
121 void insert_coalesce(const wcstring &str);
150 void reader_change_history(const wcstring &name);
208 maybe_t<wcstring> reader_readline(int nchars);
213 wcstring left_prompt_cmd{};
216 wcstring right_prompt_cmd{};
265 wcstring combine_command_and_autosuggestion(const wcstring &cmdline,
[all …]
H A Dpath.cpp39 static bool path_get_path_core(const wcstring &cmd, wcstring *out_path, in path_get_path_core()
93 bool path_get_path(const wcstring &cmd, wcstring *out_path, const environment_t &vars) { in path_get_path()
170 wcstring_list_t path_apply_cdpath(const wcstring &dir, const wcstring &wd, in path_apply_cdpath()
214 maybe_t<wcstring> path_get_cdpath(const wcstring &dir, const wcstring &wd, in path_get_cdpath()
235 maybe_t<wcstring> path_as_implicit_cd(const wcstring &path, const wcstring &wd, in path_as_implicit_cd()
237 wcstring exp_path = path; in path_as_implicit_cd()
251 wcstring path_apply_working_directory(const wcstring &path, const wcstring &working_directory) { in path_apply_working_directory()
445 bool paths_are_equivalent(const wcstring &p1, const wcstring &p2) { in paths_are_equivalent()
475 bool path_is_valid(const wcstring &path, const wcstring &working_directory) { in path_is_valid()
496 bool paths_are_same_file(const wcstring &path1, const wcstring &path2) { in paths_are_same_file()
[all …]
H A Dautoload.h30 const wcstring env_var_name_;
33 std::unordered_map<wcstring, file_id_t> autoloaded_files_;
36 std::unordered_set<wcstring> current_autoloading_;
49 maybe_t<wcstring> resolve_command(const wcstring &cmd, const wcstring_list_t &paths);
55 explicit autoload_t(wcstring env_var_name);
68 maybe_t<wcstring> resolve_command(const wcstring &cmd, const environment_t &env);
73 static void perform_autoload(const wcstring &path, parser_t &parser);
76 void mark_autoload_finished(const wcstring &cmd) { in mark_autoload_finished()
83 bool autoload_in_progress(const wcstring &cmd) const { in autoload_in_progress()
89 bool can_autoload(const wcstring &cmd);
H A Dexpand.cpp143 wcstring buff; in expand_escape_variable()
164 wcstring expand_escape_string(const wcstring &el) { in expand_escape_string()
165 wcstring buff; in expand_escape_string()
548 wcstring mod; in expand_braces()
583 wcstring item = wcstring(item_begin, item_len); in expand_braces()
621 wcstring subcmd; in expand_cmdsubst()
845 wcstring result = str; in replace_home_directory_with_tilde()
948 wcstring next; in stage_variables()
1279 std::map<wcstring, wcstring> get_abbreviations(const environment_t &vars) { in get_abbreviations()
1282 std::map<wcstring, wcstring> result; in get_abbreviations()
[all …]
H A Dexpand.h158 __warn_unused expand_result_t expand_string(wcstring input, completion_list_t *output,
163 __warn_unused expand_result_t expand_string(wcstring input, completion_receiver_t *output,
177 bool expand_one(wcstring &string, expand_flags_t flags, const operation_context_t &ctx,
187 expand_result_t expand_to_command_and_args(const wcstring &instr, const operation_context_t &ctx,
188 wcstring *out_cmd, wcstring_list_t *out_args,
194 wcstring expand_escape_variable(const env_var_t &var);
198 wcstring expand_escape_string(const wcstring &el);
203 void expand_tilde(wcstring &input, const environment_t &vars);
206 wcstring replace_home_directory_with_tilde(const wcstring &str, const environment_t &vars);
210 maybe_t<wcstring> expand_abbreviation(const wcstring &src, const environment_t &vars);
[all …]
H A Dinput.h19 wcstring describe_char(wint_t c);
78 wcstring seq;
79 wcstring mode;
102 bool erase(const wcstring &sequence, const wcstring &mode = DEFAULT_BIND_MODE,
107 bool get(const wcstring &sequence, const wcstring &mode, wcstring_list_t *out_cmds, bool user,
108 wcstring *out_sets_mode) const;
117 void add(wcstring sequence, const wchar_t *command, const wchar_t *mode = DEFAULT_BIND_MODE,
120 void add(wcstring sequence, const wchar_t *const *commands, size_t commands_len,
135 bool input_terminfo_get_sequence(const wcstring &name, wcstring *out_seq);
139 bool input_terminfo_get_name(const wcstring &seq, wcstring *out_name);
[all …]
H A Dhistory.h47 typedef std::vector<wcstring> path_list_t;
82 const wcstring &str() const { return contents; } in str()
107 wcstring contents;
151 void add(wcstring str);
154 explicit history_t(wcstring name);
175 void remove(const wcstring &str);
248 wcstring orig_term_;
251 wcstring canon_term_;
266 std::unordered_set<wcstring> deduper_;
285 const wcstring &current_string() const;
[all …]
H A Dparse_tree.cpp44 wcstring parse_error_t::describe_with_prefix(const wcstring &src, const wcstring &prefix, in describe_with_prefix()
46 wcstring result = prefix; in describe_with_prefix()
60 wcstring value = assignment_src.substr(*equals_pos + 1); in describe_with_prefix()
79 if (newline != wcstring::npos) { in describe_with_prefix()
89 if (line_end == wcstring::npos) { in describe_with_prefix()
109 wcstring caret_space_line; in describe_with_prefix()
132 wcstring parse_error_t::describe(const wcstring &src, bool is_interactive) const { in describe()
195 wcstring parse_token_t::describe() const { in describe()
196 wcstring result = token_type_description(type); in describe()
204 wcstring parse_token_t::user_presentable_description() const { in user_presentable_description()
[all …]
/dports/emulators/nestopia/nestopia-1.51.1/source/core/
H A DNstXml.hpp59 static wchar_t* SetType(wchar_t* NST_RESTRICT,wcstring,wcstring,Out);
62 static wchar_t* SetValue(wchar_t* NST_RESTRICT,wcstring,wcstring,Out);
89 wcstring value;
95 static bool IsEqual(wcstring,wcstring);
96 static bool IsEqualNonCase(wcstring,wcstring);
97 static long ToSigned(wcstring,uint,wcstring*);
98 static ulong ToUnsigned(wcstring,uint,wcstring*);
174 Node AddChild(wcstring,wcstring=NULL);
175 Node AddSibling(wcstring,wcstring=NULL);
176 Attribute AddAttribute(wcstring,wcstring);
[all …]
H A DNstPins.hpp49 void operator = (wcstring s) in operator =()
67 static wcstring Init(wcstring);
69 wcstring const component;
70 wcstring const end;
74 explicit ComponentProxy(wcstring);
76 bool operator == (wcstring) const;
80 static uint Init(wchar_t,wcstring);
86 LineProxy(wchar_t,wcstring);
109 bool operator != (wcstring s) const in operator !=()
130 ComponentProxy C(wcstring c) const in C()
/dports/games/libretro-nestopia/nestopia-2b0315c/source/core/
H A DNstXml.hpp59 static wchar_t* SetType(wchar_t* NST_RESTRICT,wcstring,wcstring,Out);
62 static wchar_t* SetValue(wchar_t* NST_RESTRICT,wcstring,wcstring,Out);
89 wcstring value;
95 static bool IsEqual(wcstring,wcstring);
96 static bool IsEqualNonCase(wcstring,wcstring);
97 static long ToSigned(wcstring,uint,wcstring*);
98 static ulong ToUnsigned(wcstring,uint,wcstring*);
174 Node AddChild(wcstring,wcstring=NULL);
175 Node AddSibling(wcstring,wcstring=NULL);
176 Attribute AddAttribute(wcstring,wcstring);
[all …]
H A DNstPins.hpp49 void operator = (wcstring s) in operator =()
67 static wcstring Init(wcstring);
69 wcstring const component;
70 wcstring const end;
74 explicit ComponentProxy(wcstring);
76 bool operator == (wcstring) const;
80 static uint Init(wchar_t,wcstring);
86 LineProxy(wchar_t,wcstring);
109 bool operator != (wcstring s) const in operator !=()
130 ComponentProxy C(wcstring c) const in C()
/dports/emulators/nestopia/nestopia-1.51.1/source/win32/
H A DNstWindowUser.hpp48 void Fail (wcstring,uint=0);
49 void Fail (wcstring,wcstring);
51 void Warn (wcstring,uint=0);
52 void Warn (wcstring,wcstring);
54 void Inform (wcstring,uint=0);
55 void Inform (wcstring,wcstring);
57 bool Confirm (wcstring,uint=0);
58 bool Confirm (wcstring,wcstring);
59 bool Input (HeapString&,wcstring,wcstring=NULL);
60 uint Choose (uint,uint,wcstring*,uint,const uint* = NULL);
H A DNstWindowUser.cpp41 wcstring const text;
42 wcstring const title;
74 InputDialog(wcstring const t,wcstring const i,HeapString& r) in InputDialog()
90 wcstring const title;
142 ChooseDialog(wcstring t,wcstring o,wcstring* c,const uint* d,uint n) in ChooseDialog()
156 static int Present(wcstring const text,wcstring const title,const uint flags) in Present()
167 void Fail(wcstring const text,wcstring const title) in Fail()
182 void Warn(wcstring const text,wcstring const title) in Warn()
197 void Inform(wcstring const text,wcstring const title) in Inform()
212 bool Confirm(wcstring const text,wcstring const title) in Confirm()
[all …]

1234567891011