Method
FoundryTextManagerguess_language
Declaration [src]
DexFuture*
foundry_text_manager_guess_language (
FoundryTextManager* self,
GFile* file,
const char* content_type,
GBytes* contents
)
Description [src]
Attempts to guess the language of file
, content_type
, or contents
.
One of file
, content_type, or contents
must be set.
Parameters
file
-
Type:
GFile
A
GFile
orNULL
.The argument can be NULL
.The data is owned by the caller of the method. content_type
-
Type:
const char*
The content-type as a string or
NULL
.The argument can be NULL
.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. contents
-
Type:
GBytes
A
GBytes
of file contents orNULL
.The argument can be NULL
.The data is owned by the caller of the method.