Method
FoundryLanguageGuesserguess
Declaration [src]
DexFuture*
foundry_language_guesser_guess (
FoundryLanguageGuesser* self,
GFile* file,
const char* content_type,
GBytes* contents
)
Description [src]
Guess the language for a file, content_type, or contents.
One of file, content_type, or contents must be set.
Parameters
file-
Type:
GFileA
GFileorNULL.The argument can be NULL.The data is owned by the caller of the method. content_type-
Type:
const char*A 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:
GBytesA
GBytesof file contents orNULL.The argument can be NULL.The data is owned by the caller of the method.