enum Gio::DataStreamNewlineType

Overview

#GDataStreamNewlineType is used when checking for or setting the line endings for a given file.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/gio.cr

Enum Members

Lf = 0_u32

Selects "LF" line endings, common on most modern UNIX platforms.

Cr = 1_u32

Selects "CR" line endings.

CrLf = 2_u32

Selects "CR, LF" line ending, common on Microsoft Windows.

Any = 3_u32

Automatically try to handle any line ending type.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def any? #

def cr? #

def cr_lf? #

def lf? #