Used By
Used By | Description |
---|---|
wp-includes/pomo/po.php: PO::read_entry() | |
wp-includes/pomo/po.php: PO::import_from_file() |
(resource) (Required)
(string) (Optional)
Default value: 'read'
(boolean)
File: wp-includes/pomo/po.php
function read_line( $f, $action = 'read' ) { static $last_line = ''; static $use_last_line = false; if ( 'clear' === $action ) { $last_line = ''; return true; } if ( 'put-back' === $action ) { $use_last_line = true; return true; } $line = $use_last_line ? $last_line : fgets( $f ); $line = ( "\r\n" === substr( $line, -2 ) ) ? rtrim( $line, "\r\n" ) . "\n" : $line; $last_line = $line; $use_last_line = false; return $line; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/po/read_line