зеркало из https://github.com/github/ruby.git
Fix reference path for strscan documentation
This commit is contained in:
Родитель
ba8e6e77fd
Коммит
1fa93fb948
|
@ -37,7 +37,7 @@ Some examples here assume that certain helper methods are defined:
|
|||
- `match_values_cleared?(scanner)`:
|
||||
Returns whether the scanner's [match values][9] are cleared.
|
||||
|
||||
See examples [here][ext/strscan/helper_methods_md.html].
|
||||
See examples [here][helper_methods_md.html].
|
||||
|
||||
## The `StringScanner` \Object
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ strscan_s_allocate(VALUE klass)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* StringScanner.new(string, fixed_anchor: false) -> string_scanner
|
||||
|
@ -279,7 +279,7 @@ check_strscan(VALUE obj)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* dup -> shallow_copy
|
||||
|
@ -327,7 +327,7 @@ strscan_s_mustc(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* reset -> self
|
||||
|
@ -364,7 +364,7 @@ strscan_reset(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* terminate -> self
|
||||
|
@ -426,7 +426,7 @@ strscan_clear(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* string -> stored_string
|
||||
|
@ -452,7 +452,7 @@ strscan_get_string(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* string = other_string -> other_string
|
||||
|
@ -499,7 +499,7 @@ strscan_set_string(VALUE self, VALUE str)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* concat(more_string) -> self
|
||||
|
@ -539,7 +539,7 @@ strscan_concat(VALUE self, VALUE str)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* pos -> byte_position
|
||||
|
@ -568,7 +568,7 @@ strscan_get_pos(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* charpos -> character_position
|
||||
|
@ -603,7 +603,7 @@ strscan_get_charpos(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* pos = n -> n
|
||||
|
@ -836,7 +836,7 @@ strscan_do_scan(VALUE self, VALUE pattern, int succptr, int getstr, int headonly
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* scan(pattern) -> substring or nil
|
||||
|
@ -899,7 +899,7 @@ strscan_scan(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* match?(pattern) -> updated_position or nil
|
||||
|
@ -961,7 +961,7 @@ strscan_match_p(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* skip(pattern) match_size or nil
|
||||
|
@ -1016,7 +1016,7 @@ strscan_skip(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* check(pattern) -> matched_substring or nil
|
||||
|
@ -1102,7 +1102,7 @@ strscan_scan_full(VALUE self, VALUE re, VALUE s, VALUE f)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* scan_until(pattern) -> substring or nil
|
||||
|
@ -1166,7 +1166,7 @@ strscan_scan_until(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* exist?(pattern) -> byte_offset or nil
|
||||
|
@ -1229,7 +1229,7 @@ strscan_exist_p(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* skip_until(pattern) -> matched_substring_size or nil
|
||||
|
@ -1290,7 +1290,7 @@ strscan_skip_until(VALUE self, VALUE re)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* check_until(pattern) -> substring or nil
|
||||
|
@ -1390,7 +1390,7 @@ adjust_registers_to_matched(struct strscanner *p)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* getch -> character or nil
|
||||
|
@ -1506,7 +1506,7 @@ strscan_peek_byte(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* get_byte -> byte_as_character or nil
|
||||
|
@ -1577,7 +1577,7 @@ strscan_getbyte(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* peek(length) -> substring
|
||||
|
@ -1628,7 +1628,7 @@ strscan_peep(VALUE self, VALUE vlen)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* unscan -> self
|
||||
|
@ -1680,7 +1680,7 @@ strscan_unscan(VALUE self)
|
|||
/*
|
||||
*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* beginning_of_line? -> true or false
|
||||
|
@ -1723,7 +1723,7 @@ strscan_bol_p(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* eos? -> true or false
|
||||
|
@ -1791,7 +1791,7 @@ strscan_rest_p(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* matched? -> true or false
|
||||
|
@ -1822,7 +1822,7 @@ strscan_matched_p(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* matched -> matched_substring or nil
|
||||
|
@ -1857,7 +1857,7 @@ strscan_matched(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* matched_size -> substring_size or nil
|
||||
|
@ -1911,7 +1911,7 @@ name_to_backref_number(struct re_registers *regs, VALUE regexp, const char* name
|
|||
/*
|
||||
*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* [](specifier) -> substring or nil
|
||||
|
@ -2015,7 +2015,7 @@ strscan_aref(VALUE self, VALUE idx)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* size -> captures_count
|
||||
|
@ -2049,7 +2049,7 @@ strscan_size(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* captures -> substring_array or nil
|
||||
|
@ -2102,7 +2102,7 @@ strscan_captures(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* values_at(*specifiers) -> array_of_captures or nil
|
||||
|
@ -2142,7 +2142,7 @@ strscan_values_at(int argc, VALUE *argv, VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* pre_match -> substring
|
||||
|
@ -2179,7 +2179,7 @@ strscan_pre_match(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* post_match -> substring
|
||||
|
@ -2216,7 +2216,7 @@ strscan_post_match(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* rest -> target_substring
|
||||
|
@ -2248,7 +2248,7 @@ strscan_rest(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* rest_size -> integer
|
||||
|
@ -2302,7 +2302,7 @@ strscan_restsize(VALUE self)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* inspect -> string
|
||||
|
@ -2406,7 +2406,7 @@ inspect2(struct strscanner *p)
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* fixed_anchor? -> true or false
|
||||
|
@ -2448,7 +2448,7 @@ named_captures_iter(const OnigUChar *name,
|
|||
|
||||
/*
|
||||
* :markup: markdown
|
||||
* :include: link_refs.txt
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
*
|
||||
* call-seq:
|
||||
* named_captures -> hash
|
||||
|
@ -2498,8 +2498,8 @@ strscan_named_captures(VALUE self)
|
|||
*
|
||||
* :markup: markdown
|
||||
*
|
||||
* :include: link_refs.txt
|
||||
* :include: strscan.md
|
||||
* :include: ../../doc/strscan/link_refs.txt
|
||||
* :include: ../../doc/strscan/strscan.md
|
||||
*
|
||||
*/
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче