extensions/spellcheck/src/mozGenericWordUtils.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/extensions/spellcheck/src/mozGenericWordUtils.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +#include "mozGenericWordUtils.h"
     1.9 +
    1.10 +NS_IMPL_ISUPPORTS(mozGenericWordUtils, mozISpellI18NUtil)
    1.11 +
    1.12 +  // do something sensible but generic ... eventually.  For now whine.
    1.13 +
    1.14 +mozGenericWordUtils::mozGenericWordUtils()
    1.15 +{
    1.16 +  /* member initializers and constructor code */
    1.17 +}
    1.18 +
    1.19 +mozGenericWordUtils::~mozGenericWordUtils()
    1.20 +{
    1.21 +  /* destructor code */
    1.22 +}
    1.23 +
    1.24 +/* readonly attribute wstring language; */
    1.25 +NS_IMETHODIMP mozGenericWordUtils::GetLanguage(char16_t * *aLanguage)
    1.26 +{
    1.27 +    return NS_ERROR_NOT_IMPLEMENTED;
    1.28 +}
    1.29 +
    1.30 +/* void GetRootForm (in wstring word, in uint32_t type, [array, size_is (count)] out wstring words, out uint32_t count); */
    1.31 +NS_IMETHODIMP mozGenericWordUtils::GetRootForm(const char16_t *word, uint32_t type, char16_t ***words, uint32_t *count)
    1.32 +{
    1.33 +    return NS_ERROR_NOT_IMPLEMENTED;
    1.34 +}
    1.35 +
    1.36 +/* void FromRootForm (in wstring word, [array, size_is (icount)] in wstring iwords, in uint32_t icount, [array, size_is (ocount)] out wstring owords, out uint32_t ocount); */
    1.37 +NS_IMETHODIMP mozGenericWordUtils::FromRootForm(const char16_t *word, const char16_t **iwords, uint32_t icount, char16_t ***owords, uint32_t *ocount)
    1.38 +{
    1.39 +    return NS_ERROR_NOT_IMPLEMENTED;
    1.40 +}
    1.41 +
    1.42 +/* void FindNextWord (in wstring word, in uint32_t length, in uint32_t offset, out uint32_t begin, out uint32_t end); */
    1.43 +NS_IMETHODIMP mozGenericWordUtils::FindNextWord(const char16_t *word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end)
    1.44 +{
    1.45 +    return NS_ERROR_NOT_IMPLEMENTED;
    1.46 +}
    1.47 +

mercurial