2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-04-01 23:44:17 +04:00
|
|
|
|
|
|
|
#ifndef nsDOMString_h___
|
|
|
|
#define nsDOMString_h___
|
|
|
|
|
2008-07-12 14:11:29 +04:00
|
|
|
#include "nsStringGlue.h"
|
2004-04-01 23:44:17 +04:00
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
inline bool DOMStringIsNull(const nsAString& aString)
|
2004-04-01 23:44:17 +04:00
|
|
|
{
|
|
|
|
return aString.IsVoid();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void SetDOMStringToNull(nsAString& aString)
|
|
|
|
{
|
2011-10-17 18:59:28 +04:00
|
|
|
aString.SetIsVoid(true);
|
2004-04-01 23:44:17 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* nsDOMString_h___ */
|