KURL is a C++ library that provides a simple and versatile class for working with URLs in applications. The function isLocalFile() returns a boolean value indicating whether a given URL represents a local file on the filesystem.
Examples:
1. Check if a URL points to a local file:
KURL url("file:///home/user/example.txt"); if (url.isLocalFile()) { // The URL points to a local file }
2. Check if a URL refers to a remote resource:
KURL url("https://example.com/"); if (!url.isLocalFile()) { // The URL is not a local file }
Package library: KURL is part of the KDE Frameworks 5 library.
C++ (Cpp) KUrl::isLocalFile - 30 examples found. These are the top rated real world C++ (Cpp) examples of KUrl::isLocalFile extracted from open source projects. You can rate examples to help us improve the quality of examples.