macspellimp.cxx (a285f30a) macspellimp.cxx (1e1ac450)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 252 unchanged lines hidden (view full) ---

261 {
262 NSString* aCountry = [[NSString alloc] initWithCharacters: rLocale.Country.getStr() length: rLocale.Country.getLength()];
263 NSString* aTag = @"_";
264 NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry];
265 [aLang autorelease];
266 aLang = [aLang stringByAppendingString:aTaggedCountry];
267 }
268
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 252 unchanged lines hidden (view full) ---

261 {
262 NSString* aCountry = [[NSString alloc] initWithCharacters: rLocale.Country.getStr() length: rLocale.Country.getLength()];
263 NSString* aTag = @"_";
264 NSString* aTaggedCountry = [aTag stringByAppendingString:aCountry];
265 [aLang autorelease];
266 aLang = [aLang stringByAppendingString:aTaggedCountry];
267 }
268
269 int aCount;
269 NSInteger aCount;
270 NSRange range = [macSpell checkSpellingOfString:aNSStr startingAt:0 language:aLang wrap:sal_False inSpellDocumentWithTag:macTag wordCount:&aCount];
271 int rVal = 0;
272 if(range.length>0)
273 {
274 rVal = -1;
275 }
276 else
277 {

--- 341 unchanged lines hidden ---
270 NSRange range = [macSpell checkSpellingOfString:aNSStr startingAt:0 language:aLang wrap:sal_False inSpellDocumentWithTag:macTag wordCount:&aCount];
271 int rVal = 0;
272 if(range.length>0)
273 {
274 rVal = -1;
275 }
276 else
277 {

--- 341 unchanged lines hidden ---