Lines Matching refs:aWritable

225 test_SetLength( basic_nsAString<CharT>& aWritable )
229 string_class_traits<CharT>::implementation_t oldValue(aWritable);
232 size_t oldLength = aWritable.Length();
234 if ( oldValue != Substring(aWritable, 0, oldLength) )
242 aWritable.SetLength(newLength);
243 if ( aWritable.Length() != newLength )
249 if ( oldValue != Substring(aWritable, 0, oldLength) )
255 aWritable.SetLength(oldLength);
256 if ( aWritable.Length() != oldLength )
262 if ( oldValue != Substring(aWritable, 0, oldLength) )
274 test_insert( basic_nsAString<CharT>& aWritable )
278 string_class_traits<CharT>::implementation_t oldValue(aWritable);
280 if ( oldValue != aWritable )
289 aWritable.Insert(insertable, 0);
291 if ( aWritable != (insertable + oldValue) )
297 aWritable = oldValue;
305 test_cut( basic_nsAString<CharT>& aWritable )
309 aWritable.Cut(0, aWritable.Length()+5);
316 test_self_assign( basic_nsAString<CharT>& aWritable )
319 string_class_traits<CharT>::implementation_t oldValue(aWritable);
321 aWritable = aWritable;
322 if ( aWritable != oldValue )
328 aWritable = oldValue;
334 test_self_append( basic_nsAString<CharT>& aWritable )
337 string_class_traits<CharT>::implementation_t oldValue(aWritable);
339 aWritable += aWritable;
340 if ( aWritable != oldValue + oldValue )
346 aWritable = oldValue;
352 test_self_insert( basic_nsAString<CharT>& aWritable )
355 string_class_traits<CharT>::implementation_t oldValue(aWritable);
357 aWritable.Insert(aWritable, 0);
358 if ( aWritable != oldValue + oldValue )
364 aWritable = oldValue;
370 test_self_replace( basic_nsAString<CharT>& aWritable )
373 string_class_traits<CharT>::implementation_t oldValue(aWritable);
375 aWritable.Replace(0, 0, aWritable);
376 if ( aWritable != oldValue + oldValue )
382 aWritable = oldValue;
390 test_writable( basic_nsAString<CharT>& aWritable )
398 aWritable = literal_hello(CharT_ptr());
400 if ( aWritable != literal_hello(CharT_ptr()) )
406 tests_failed += test_readable_hello(aWritable);
409 tests_failed += test_SetLength(aWritable);
410 tests_failed += test_insert(aWritable);
411 tests_failed += test_cut(aWritable);
412 tests_failed += test_self_assign(aWritable);
413 tests_failed += test_self_append(aWritable);
414 tests_failed += test_self_insert(aWritable);
415 tests_failed += test_self_replace(aWritable);