mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add UniformResourceLocator::empty
This commit is contained in:
@@ -69,6 +69,11 @@ UniformResourceLocator& UniformResourceLocator::operator= (UniformResourceLocato
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
bool UniformResourceLocator::empty () const
|
||||||
|
{
|
||||||
|
return m_scheme == String::empty;
|
||||||
|
}
|
||||||
|
|
||||||
String UniformResourceLocator::scheme () const
|
String UniformResourceLocator::scheme () const
|
||||||
{
|
{
|
||||||
return m_scheme;
|
return m_scheme;
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ public:
|
|||||||
/** Copy assign a URL. */
|
/** Copy assign a URL. */
|
||||||
UniformResourceLocator& operator= (UniformResourceLocator const& other);
|
UniformResourceLocator& operator= (UniformResourceLocator const& other);
|
||||||
|
|
||||||
|
/** Returns `true` if this is an empty URL. */
|
||||||
|
bool empty () const;
|
||||||
|
|
||||||
/** Returns the scheme of the URL.
|
/** Returns the scheme of the URL.
|
||||||
If no scheme was specified, the string will be empty.
|
If no scheme was specified, the string will be empty.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user