From 413f4d0108620a45f7965c1dd46f0ea2e8052dc2 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Wed, 9 Nov 2022 15:57:05 +0000 Subject: [PATCH] Adapt links --- ext/stringio/stringio.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 07c76526..9fa32991 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -719,7 +719,7 @@ strio_copy(VALUE copy, VALUE orig) * lineno -> current_line_number * * Returns the current line number in +self+; - * see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. + * see {Line Number}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+Number]. */ static VALUE strio_get_lineno(VALUE self) @@ -732,7 +732,7 @@ strio_get_lineno(VALUE self) * lineno = new_line_number -> new_line_number * * Sets the current line number in +self+ to the given +new_line_number+; - * see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. + * see {Line Number}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+Number]. */ static VALUE strio_set_lineno(VALUE self, VALUE lineno) @@ -807,7 +807,7 @@ strio_reopen(int argc, VALUE *argv, VALUE self) * pos -> stream_position * * Returns the current position (in bytes); - * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. + * see {Position}[https://docs.ruby-lang.org/en/master/IO.html#label-Position]. * * StringIO#tell is an alias for StringIO#pos. */ @@ -822,7 +822,7 @@ strio_get_pos(VALUE self) * pos = new_position -> new_position * * Sets the current position (in bytes); - * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. + * see {Position}[https://docs.ruby-lang.org/en/master/IO.html#label-Position]. */ static VALUE strio_set_pos(VALUE self, VALUE pos) @@ -841,8 +841,8 @@ strio_set_pos(VALUE self, VALUE pos) * rewind -> 0 * * Sets the current position and line number to zero; - * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position] - * and {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. + * see {Position}[https://docs.ruby-lang.org/en/master/IO.html#label-Position] + * and {Line Number}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+Number]. */ static VALUE strio_rewind(VALUE self) @@ -859,7 +859,7 @@ strio_rewind(VALUE self) * * Sets the current position to the given integer +offset+ (in bytes), * with respect to a given constant +whence+; - * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. + * see {Position}[https://docs.ruby-lang.org/en/master/IO.html#label-Position]. */ static VALUE strio_seek(int argc, VALUE *argv, VALUE self) @@ -915,7 +915,7 @@ strio_get_sync(VALUE self) * each_byte {|byte| ... } -> self * * With a block given, calls the block with each remaining byte in the stream; - * see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO]. + * see {Byte IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Byte+IO]. * * With no block given, returns an enumerator. */ @@ -938,7 +938,7 @@ strio_each_byte(VALUE self) * getc -> character or nil * * Reads and returns the next character from the stream; - * see {Character IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Character+IO]. + * see {Character IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Character+IO]. */ static VALUE strio_getc(VALUE self) @@ -964,7 +964,7 @@ strio_getc(VALUE self) * getbyte -> byte or nil * * Reads and returns the next 8-bit byte from the stream; - * see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO]. + * see {Byte IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Byte+IO]. */ static VALUE strio_getbyte(VALUE self) @@ -1003,7 +1003,7 @@ strio_extend(struct StringIO *ptr, long pos, long len) * ungetc(character) -> nil * * Pushes back ("unshifts") a character or integer onto the stream; - * see {Character IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Character+IO]. + * see {Character IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Character+IO]. */ static VALUE strio_ungetc(VALUE self, VALUE c) @@ -1041,7 +1041,7 @@ strio_ungetc(VALUE self, VALUE c) * ungetbyte(byte) -> nil * * Pushes back ("unshifts") an 8-bit byte onto the stream; - * see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO]. + * see {Byte IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Byte+IO]. */ static VALUE strio_ungetbyte(VALUE self, VALUE c) @@ -1104,7 +1104,7 @@ strio_unget_bytes(struct StringIO *ptr, const char *cp, long cl) * readchar -> string * * Like +getc+, but raises an exception if already at end-of-stream; - * see {Character IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Character+IO]. + * see {Character IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Character+IO]. */ static VALUE strio_readchar(VALUE self) @@ -1119,7 +1119,7 @@ strio_readchar(VALUE self) * readbyte -> byte * * Like +getbyte+, but raises an exception if already at end-of-stream; - * see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO]. + * see {Byte IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Byte+IO]. */ static VALUE strio_readbyte(VALUE self) @@ -1134,7 +1134,7 @@ strio_readbyte(VALUE self) * each_char {|c| ... } -> self * * With a block given, calls the block with each remaining character in the stream; - * see {Character IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Character+IO]. + * see {Character IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Character+IO]. * * With no block given, returns an enumerator. */ @@ -1156,7 +1156,7 @@ strio_each_char(VALUE self) * each_codepoint {|codepoint| ... } -> self * * With a block given, calls the block with each remaining codepoint in the stream; - * see {Codepoint IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Codepoint+IO]. + * see {Codepoint IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Codepoint+IO]. * * With no block given, returns an enumerator. */ @@ -1374,7 +1374,7 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr) * * Reads and returns a line from the stream; * assigns the return value to $_; - * see {Line IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+IO]. + * see {Line IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+IO]. */ static VALUE strio_gets(int argc, VALUE *argv, VALUE self) @@ -1399,7 +1399,7 @@ strio_gets(int argc, VALUE *argv, VALUE self) * readline(sep, limit, chomp: false) -> string * * Reads a line as with IO#gets, but raises EOFError if already at end-of-file; - * see {Line IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+IO]. + * see {Line IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+IO]. */ static VALUE strio_readline(int argc, VALUE *argv, VALUE self) @@ -1418,7 +1418,7 @@ strio_readline(int argc, VALUE *argv, VALUE self) * Calls the block with each remaining line read from the stream; * does nothing if already at end-of-file; * returns +self+. - * See {Line IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+IO]. + * See {Line IO}[https://docs.ruby-lang.org/en/master/IO.html#label-Line+IO]. * * StringIO#each is an alias for StringIO#each_line. */ @@ -1850,7 +1850,7 @@ strio_set_encoding_by_bom(VALUE self) /* * \IO streams for strings, with access similar to * {IO}[https://docs.ruby-lang.org/en/master/IO.html]; - * see {IO Streams}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html]. + * see {IO}[https://docs.ruby-lang.org/en/master/IO.html]. * * === About the Examples *