aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
commit9992b8eb0e3366ff8a3948aa0b66a19c3c12c737 (patch)
tree6dda0fef85812016fbba9ea067c9d586092b506d /parse_util.h
parentbab69f26724028d16054a3daf5c78aad7c67bb2d (diff)
Apply new indentation, brace, and whitespace style
Diffstat (limited to 'parse_util.h')
-rw-r--r--parse_util.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/parse_util.h b/parse_util.h
index 4b8699f8..b8e370f7 100644
--- a/parse_util.h
+++ b/parse_util.h
@@ -22,10 +22,10 @@
\return -1 on syntax error, 0 if no subshells exist and 1 on sucess
*/
-int parse_util_locate_cmdsubst( const wchar_t *in,
- wchar_t **begin,
- wchar_t **end,
- int flags );
+int parse_util_locate_cmdsubst(const wchar_t *in,
+ wchar_t **begin,
+ wchar_t **end,
+ int flags);
/**
Find the beginning and end of the command substitution under the
@@ -39,10 +39,10 @@ int parse_util_locate_cmdsubst( const wchar_t *in,
\param a the start of the searched string
\param b the end of the searched string
*/
-void parse_util_cmdsubst_extent( const wchar_t *buff,
- size_t cursor_pos,
- const wchar_t **a,
- const wchar_t **b );
+void parse_util_cmdsubst_extent(const wchar_t *buff,
+ size_t cursor_pos,
+ const wchar_t **a,
+ const wchar_t **b);
/**
Find the beginning and end of the process definition under the cursor
@@ -52,10 +52,10 @@ void parse_util_cmdsubst_extent( const wchar_t *buff,
\param a the start of the searched string
\param b the end of the searched string
*/
-void parse_util_process_extent( const wchar_t *buff,
- size_t cursor_pos,
- const wchar_t **a,
- const wchar_t **b );
+void parse_util_process_extent(const wchar_t *buff,
+ size_t cursor_pos,
+ const wchar_t **a,
+ const wchar_t **b);
/**
@@ -66,10 +66,10 @@ void parse_util_process_extent( const wchar_t *buff,
\param a the start of the searched string
\param b the end of the searched string
*/
-void parse_util_job_extent( const wchar_t *buff,
- size_t cursor_pos,
- const wchar_t **a,
- const wchar_t **b );
+void parse_util_job_extent(const wchar_t *buff,
+ size_t cursor_pos,
+ const wchar_t **a,
+ const wchar_t **b);
/**
Find the beginning and end of the token under the cursor and the
@@ -83,46 +83,46 @@ void parse_util_job_extent( const wchar_t *buff,
\param prev_begin the start o the token before the current token
\param prev_end the end of the token before the current token
*/
-void parse_util_token_extent( const wchar_t *buff,
- size_t cursor_pos,
- const wchar_t **tok_begin,
- const wchar_t **tok_end,
- const wchar_t **prev_begin,
- const wchar_t **prev_end );
+void parse_util_token_extent(const wchar_t *buff,
+ size_t cursor_pos,
+ const wchar_t **tok_begin,
+ const wchar_t **tok_end,
+ const wchar_t **prev_begin,
+ const wchar_t **prev_end);
/**
Get the linenumber at the specified character offset
*/
-int parse_util_lineno( const wchar_t *str, size_t len );
+int parse_util_lineno(const wchar_t *str, size_t len);
/**
Calculate the line number of the specified cursor position
*/
-int parse_util_get_line_from_offset( const wcstring &str, size_t pos );
+int parse_util_get_line_from_offset(const wcstring &str, size_t pos);
/**
Get the offset of the first character on the specified line
*/
-size_t parse_util_get_offset_from_line( const wcstring &str, int line );
+size_t parse_util_get_offset_from_line(const wcstring &str, int line);
/**
Return the total offset of the buffer for the cursor position nearest to the specified poition
*/
-size_t parse_util_get_offset( const wcstring &str, int line, long line_offset );
+size_t parse_util_get_offset(const wcstring &str, int line, long line_offset);
/**
Set the argv environment variable to the specified null-terminated
array of strings.
*/
-void parse_util_set_argv( const wchar_t * const *argv, const wcstring_list_t &named_arguments );
+void parse_util_set_argv(const wchar_t * const *argv, const wcstring_list_t &named_arguments);
/**
Make a duplicate of the specified string, unescape wildcard
characters but not performing any other character transformation.
*/
-wchar_t *parse_util_unescape_wildcards( const wchar_t *in );
+wchar_t *parse_util_unescape_wildcards(const wchar_t *in);
/**
Calculates information on the parameter at the specified index.
@@ -133,12 +133,12 @@ wchar_t *parse_util_unescape_wildcards( const wchar_t *in );
\param offset If not NULL, get_param will store the offset to the beginning of the parameter.
\param type If not NULL, get_param will store the token type as returned by tok_last.
*/
-void parse_util_get_parameter_info( const wcstring &cmd, const size_t pos, wchar_t *quote, size_t *offset, int *type );
+void parse_util_get_parameter_info(const wcstring &cmd, const size_t pos, wchar_t *quote, size_t *offset, int *type);
/**
Attempts to escape the string 'cmd' using the given quote type, as determined by the quote character. The quote can be a single quote or double quote, or L'\0' to indicate no quoting (and thus escaping should be with backslashes).
*/
-wcstring parse_util_escape_string_with_quote( const wcstring &cmd, wchar_t quote);
+wcstring parse_util_escape_string_with_quote(const wcstring &cmd, wchar_t quote);
#endif