tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nultrans.cpp (1201B)


      1 // © 2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html
      3 /*
      4 **********************************************************************
      5 *   Copyright (c) 2000-2005, International Business Machines
      6 *   Corporation and others.  All Rights Reserved.
      7 **********************************************************************
      8 *   Date        Name        Description
      9 *   01/11/2000  aliu        Creation.
     10 **********************************************************************
     11 */
     12 
     13 #include "unicode/utypes.h"
     14 
     15 #if !UCONFIG_NO_TRANSLITERATION
     16 
     17 #include "nultrans.h"
     18 
     19 U_NAMESPACE_BEGIN
     20 
     21 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
     22 
     23 NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE("Any-Null"), nullptr) {}
     24 
     25 NullTransliterator::~NullTransliterator() {}
     26 
     27 NullTransliterator* NullTransliterator::clone() const {
     28    return new NullTransliterator();
     29 }
     30 
     31 void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
     32                                             UBool /*isIncremental*/) const {
     33    offsets.start = offsets.limit;
     34 }
     35 
     36 U_NAMESPACE_END
     37 
     38 #endif /* #if !UCONFIG_NO_TRANSLITERATION */