Get character name.

@param bool $isKanji

@return string
327366
private function getName($isKanji = false)
    {
        $html = $this->_parser->find('#content table tr', 0);
        $html = $html->find('td', 0)->next_sibling()->find('div[class=normal_header]', 0);

        $name_kanji = $html->find('small', 0);
        $name_kanji = $name_kanji ? $name_kanji->plaintext : '';

        if ($isKanji) {
            return preg_replace('/(\(|\))/', '', $name_kanji);
        }

        return trim(str_replace($name_kanji, '', $html->plaintext));
    }
687109
function tableCharsetName( $charset )
    {
        $charset = eZCharsetInfo::realCharsetCode( $charset );
        // Convert charset names into something MySQL will understand
        $charsetMapping = array( 'iso-8859-1' => 'latin1',
                                 'iso-8859-2' => 'latin2',
                                 'iso-8859-8' => 'hebrew',
                                 'iso-8859-7' => 'greek',
                                 'iso-8859-9' => 'latin5',
                                 'iso-8859-13' => 'latin7',
                                 'windows-1250' => 'cp1250',
                                 'windows-1251' => 'cp1251',
                                 'windows-1256' => 'cp1256',
                                 'windows-1257' => 'cp1257',
                                 'utf-8' => 'utf8',
                                 'koi8-r' => 'koi8r',
                                 'koi8-u' => 'koi8u' );
        $charset = strtolower( $charset );
        if ( isset( $charsetMapping[$charset] ) )
            return $charsetMapping[$charset];
        return $charset;
    }
344540
public function getName($ucfirst = false)
    {
        $name = $this->name;

        if (strrchr($name, '\\') !== false) {
            $name = str_replace('\\', '', strrchr($name, '\\'));
        }
        $name = $this->camelCase($name);
        if (true === $ucfirst) {
            return ucfirst($name);
        } else {
            return $name;
        }
    }
1093420
private function getCharacterIntelView(Collection $universe_name, int $character_id) : string
    {
        if ($universe_name->has('unknown_id'))
            return $this->getUnknownIntelView($universe_name);

        if (! $universe_name->has('character_id'))
            return '';

        $character = CharacterInfo::find($universe_name['character_id']) ?: $universe_name['character_id'];

        return view('web::partials.character', compact('character', 'character_id'));
    }
15952
public function getCharacter($morse) {
        $key = strtr($morse, '.-', '01');
        return isset($this->reversedTable[$key]) ? $this->reversedTable[$key] : false;
    }
1290137
public function getAllCharactersWithAffiliations(bool $get = true)
    {

        // TODO : rewrite the method according to the new ACL mechanic

        // Get the User for permissions and affiliation
        // checks
        $user = auth()->user();

        // Which characters does the currently logged in user have?
        $user_character_ids = auth()->user()->associatedCharacterIds();

        // Start the character information query
        $characters = new CharacterInfo;

        // If the user is not a super user, return only the characters the
        // user has access to.
        if (! $user->hasSuperUser()) {

            $characters = $characters->where(function ($query) use ($user, $user_character_ids) {

                // If the user has any affiliations and can
                // list those characters, add them
                if ($user->has('character.list', false))
                    $query->orWhereIn('character_id',
                        array_keys($user->getAffiliationMap()['char']));

                $query->orWhereIn('character_id', $user_character_ids);
            });

        }

        if ($get)
            return $characters
                ->orderBy('name')
                ->get();

        return $characters->getQuery();
    }
1066560
private function getSecuredName(string $name, bool $isDomain = false): string
    {
        $index = strpos($name, '@');

        \assert(false !== $index && -1 !== $index);

        if ($isDomain) {
            $name = substr($name, $index + 1);
        } else {
            $name = substr($name, 0, $index);
        }

        return str_replace('.', $this->mailDotText[array_rand($this->mailDotText)], $name ?: '');
    }
630483
public function getName($languageCode = null)
    {
        if ($languageCode === null) {
            $languageCode = $this->initialLanguageCode;
        }

        return $this->names[$languageCode];
    }
857922
func IsKanji(s string) bool {
	return isChar(s, []*unicode.RangeTable{unicode.Ideographic})
}
1056276
protected function getEmbedTemplateName($resourceType, $isInline, $isDenied)
    {
        $configurationReference = $this->embedConfigurationNamespace;

        if ($resourceType === static::RESOURCE_TYPE_CONTENT) {
            $configurationReference .= '.content';
        } else {
            $configurationReference .= '.location';
        }

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($isDenied) {
            $configurationReference .= '_denied';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag configuration '{$configurationReference}' was not found"
        );

        $configurationReference = $this->embedConfigurationNamespace;

        $configurationReference .= '.default';

        if ($isInline) {
            $configurationReference .= '_inline';
        }

        if ($this->configResolver->hasParameter($configurationReference)) {
            $configuration = $this->configResolver->getParameter($configurationReference);

            return $configuration['template'];
        }

        $this->logger->warning(
            "Embed tag default configuration '{$configurationReference}' was not found"
        );

        return null;
    }
838470
public function charName($archar)
    {
        $key = array_search($archar, $this->_chars);

        $name = $this->_charArNames["$key"];
        
        return $name;
    }
721384
public static function current(Bool $isPath = true) : String
    {
        $currentPagePath = str_replace(Lang::get().'/', '', Base::currentPath());

        if( ($currentPagePath[0] ?? NULL) === '/' )
        {
            $currentPagePath = substr($currentPagePath, 1, strlen($currentPagePath) - 1);
        }

        if( $isPath === true )
        {
            return $currentPagePath;
        }
        else
        {
            $str = explode('/', $currentPagePath);

            if( count($str) > 1 )
            {
                return $str[count($str) - 1];
            }

            return $str[0];
        }
    }
1075830
private function transliterateGerman($s)
    {
        $table = array(
            //'ä' => 'ae', //messes up with slovak -> they have ä -> a
            'ë' => 'e',
            'ï' => 'i',
            'ö' => 'oe',
            'ü' => 'ue',
            'Ä' => 'Ae',
            'Ë' => 'E',
            'Ï' => 'I',
            'Ö' => 'Oe',
            'Ü' => 'Ue',
            'ß' => 'ss',
        );
        return strtr($s, $table);
    }
144775
protected function _getAnimateChar() {
		if ($this->_animateCharNum >= count($this->_animateChars)) {
			$this->_animateCharNum = 0;
		}

		return $this->_animateChars[$this->_animateCharNum++];
	}
407314
public java.lang.String getCharactersToSkip() {
    java.lang.Object ref = "";
    if (charactersCase_ == 1) {
      ref = characters_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (charactersCase_ == 1) {
        characters_ = s;
      }
      return s;
    }
  }
621936
public function getCode(bool $upper = false): string
    {
        $this->checkLocale();
        if (isset($this->locales[$this->selectLocale]['code'])) {
            $code = $this->locales[$this->selectLocale]['code'];
            return ($upper ? strtoupper($code) : $code);
        }
        return '';
    }
477711
public function getFullNativeName(): string
    {
        if (!$this->nativeName) {
            $this->nativeName = $this->getNames()['nativeName'];
        }

        return $this->nativeName;
    }