2015-05-03 19:32:37 +00: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 11:12:37 +00: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 19:44:17 +00:00
|
|
|
|
|
|
|
#ifndef nsDOMString_h___
|
|
|
|
#define nsDOMString_h___
|
|
|
|
|
2008-07-12 10:11:29 +00:00
|
|
|
#include "nsStringGlue.h"
|
2004-04-01 19:44:17 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
inline bool DOMStringIsNull(const nsAString& aString)
|
2004-04-01 19:44:17 +00:00
|
|
|
{
|
|
|
|
return aString.IsVoid();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void SetDOMStringToNull(nsAString& aString)
|
|
|
|
{
|
2011-10-17 14:59:28 +00:00
|
|
|
aString.SetIsVoid(true);
|
2004-04-01 19:44:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* nsDOMString_h___ */
|