prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\AssetMappe... | tusCode());
$this->assertInstanceOf(BinaryFileResponse::class, $response);
$this->assertSame(<<<EOF
/* file1.css */
body {}
EOF,
$response->getFile()->getContent()
);
$this->a | n testGettingAssetWorks()
{
$client = static::createClient();
$client->request('GET', '/assets/file1-s0Rct6h.css');
$response = $client->getResponse();
$this->assertSame(200, $response->getSta | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperDevServerSubscriberFunctionalTest.php",
"language": "php",
"file_size": 3043,
"cut_index": 563,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\... | ame, string $expectedExtension)
{
$asset = new MappedAsset('anything', publicPathWithoutDigest: $filename);
$this->assertSame($expectedExtension, $asset->publicExtension);
}
public static function getExtensionTests(): iterable | estGetLogicalPath()
{
$asset = new MappedAsset('foo.css');
$this->assertSame('foo.css', $asset->logicalPath);
}
#[DataProvider('getExtensionTests')]
public function testGetExtension(string $filen | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/MappedAssetTest.php",
"language": "php",
"file_size": 2011,
"cut_index": 537,
"middle_length": 229
} |
This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Compressor;
use PHPUnit\Framework\TestCase;
use... | liCompressor())->getUnsupportedReason()) {
$this->markTestSkipped($reason);
}
$this->filesystem = new Filesystem();
if (!file_exists(self::WRITABLE_ROOT)) {
$this->filesystem->mkdir(self::WRITABLE_ROOT);
| s TestCase
{
private const WRITABLE_ROOT = __DIR__.'/../Fixtures/brotli_compressor_filesystem';
private ?Filesystem $filesystem = null;
protected function setUp(): void
{
if (null !== $reason = (new Brot | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/BrotliCompressorTest.php",
"language": "php",
"file_size": 1417,
"cut_index": 524,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Path;
use PHPUnit\Framework\TestCase;
use Symfony\Component\AssetMapper\Compressor\Gzi... | ile_exists(__DIR__.'/../Fixtures/local_public_assets_filesystem')) {
$this->filesystem->mkdir(self::$writableRoot);
}
}
protected function tearDown(): void
{
$this->filesystem->remove(self::$writableRoot);
}
| ate Filesystem $filesystem;
private static string $writableRoot = __DIR__.'/../Fixtures/local_public_assets_filesystem';
protected function setUp(): void
{
$this->filesystem = new Filesystem();
if (!f | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php",
"language": "php",
"file_size": 2758,
"cut_index": 563,
"middle_length": 229
} |
\Component\AssetMapper\AssetMapperInterface;
use Symfony\Component\AssetMapper\Compiler\AssetCompilerInterface;
use Symfony\Component\AssetMapper\Compiler\CssAssetUrlCompiler;
use Symfony\Component\AssetMapper\MappedAsset;
class CssAssetUrlCompilerTest extends TestCase
{
#[DataProvider('provideCompileTests')]
... | o.png',
publicPathWithoutDigest: '/assets/images/foo.png',
publicPath: '/assets/images/foo.123456.png',
),
'/project/assets/more-styles.css' => new MappedAsset('more-st | r
->method('getAssetFromSourcePath')
->willReturnCallback(static function ($path) {
return match ($path) {
'/project/assets/images/foo.png' => new MappedAsset('images/fo | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/CssAssetUrlCompilerTest.php",
"language": "php",
"file_size": 13616,
"cut_index": 921,
"middle_length": 229
} |
buted with this source code.
*/
namespace Symfony\Component\AssetMapper\Command;
use Symfony\Component\AssetMapper\ImportMap\ImportMapAuditor;
use Symfony\Component\AssetMapper\ImportMap\ImportMapPackageAuditVulnerability;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Comma... | ories for dependencies')]
class ImportMapAuditCommand extends Command
{
private const SEVERITY_COLORS = [
'critical' => 'red',
'high' => 'red',
'medium' => 'yellow',
'low' => 'default',
'unknown' => 'default',
| mponent\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
#[AsCommand(name: 'importmap:audit', description: 'Check for security vulnerability advis | {
"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapAuditCommand.php",
"language": "php",
"file_size": 7125,
"cut_index": 716,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Command;
use Symfony\Component\AssetMapper\ImportMap\ImportMapEntry;
use Symfony\Component\A... | @author Kévin Dunglas <kevin@dunglas.dev>
*/
#[AsCommand(name: 'importmap:update', description: 'Update JavaScript packages to their latest versions')]
final class ImportMapUpdateCommand extends Command
{
use VersionProblemCommandTrait;
public fu | mand\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
/**
* | {
"filepath": "src/Symfony/Component/AssetMapper/Command/ImportMapUpdateCommand.php",
"language": "php",
"file_size": 2698,
"cut_index": 563,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Sy... | ->willReturn('2.0');
$assetMapperPackage = new MapperAwareAssetPackage($inner, $this->createStub(AssetMapperInterface::class));
$this->assertSame('2.0', $assetMapperPackage->getVersion('foo'));
}
#[DataProvider('getUrlTests') | tends TestCase
{
public function testGetVersion()
{
$inner = $this->createMock(PackageInterface::class);
$inner->expects($this->once())
->method('getVersion')
->with('foo')
| {
"filepath": "src/Symfony/Component/AssetMapper/Tests/MapperAwareAssetPackageTest.php",
"language": "php",
"file_size": 2492,
"cut_index": 563,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Compressor;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Symfony\C... | $this->filesystem = new Filesystem();
if (!file_exists(self::WRITABLE_ROOT)) {
$this->filesystem->mkdir(self::WRITABLE_ROOT);
}
}
protected function tearDown(): void
{
$this->filesystem->remove(self:: | @dunglas.dev>
*/
class GzipCompressorTest extends TestCase
{
private const WRITABLE_ROOT = __DIR__.'/../Fixtures/gzip_compressor_filesystem';
private Filesystem $filesystem;
protected function setUp(): void
{
| {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Compressor/GzipCompressorTest.php",
"language": "php",
"file_size": 2038,
"cut_index": 563,
"middle_length": 229
} |
buted with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Factory;
use PHPUnit\Framework\TestCase;
use Symfony\Component\AssetMapper\AssetMapperCompiler;
use Symfony\Component\AssetMapper\AssetMapperInterface;
use Symfony\Component\AssetMapper\Compiler\AssetCompilerInterface;
use Symfony\Componen... | lverInterface;
class MappedAssetFactoryTest extends TestCase
{
private const FIXTURES_DIR = __DIR__.'/../Fixtures';
private const VENDOR_FIXTURES_DIR = self::FIXTURES_DIR.'/assets/vendor';
private AssetMapperInterface $assetMapper;
publi | mfony\Component\AssetMapper\Factory\MappedAssetFactory;
use Symfony\Component\AssetMapper\ImportMap\ImportMapConfigReader;
use Symfony\Component\AssetMapper\MappedAsset;
use Symfony\Component\AssetMapper\Path\PublicAssetsPathReso | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Factory/MappedAssetFactoryTest.php",
"language": "php",
"file_size": 8545,
"cut_index": 716,
"middle_length": 229
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Symfony\Component\AssetMapper\AssetMapper;
use Symfony\... | eAssetMapper();
$file1Asset = new MappedAsset('file1.css');
$this->mappedAssetFactory->expects($this->once())
->method('createMappedAsset')
->with('file1.css', realpath(__DIR__.'/Fixtures/dir1/file1.css'))
| ny\Component\AssetMapper\MappedAsset;
class AssetMapperTest extends TestCase
{
private MappedAssetFactoryInterface&MockObject $mappedAssetFactory;
public function testGetAsset()
{
$assetMapper = $this->creat | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/AssetMapperTest.php",
"language": "php",
"file_size": 3905,
"cut_index": 614,
"middle_length": 229
} |
buted with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Compiler;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\AssetMapper\AssetMapperInterface;
use Symfony\Component\AssetMapper\Compiler\SourceMappingUrlsCompiler;
use Symfony\Component\As... | static function ($path) {
return match ($path) {
'/project/assets/foo.js.map' => new MappedAsset('foo.js.map',
publicPathWithoutDigest: '/assets/foo.js.map',
publicPath: '/ | ut, string $expectedOutput, $expectedDependencies)
{
$assetMapper = $this->createStub(AssetMapperInterface::class);
$assetMapper
->method('getAssetFromSourcePath')
->willReturnCallback( | {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Compiler/SourceMappingUrlsCompilerTest.php",
"language": "php",
"file_size": 5864,
"cut_index": 716,
"middle_length": 229
} |
This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\AssetMapper\Tests\Fixtures;
use Psr\Log\NullLogger;
use Symfony\B... | return __DIR__;
}
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(static function (ContainerBuilder $container) {
$container->loadFromExtension('framework', [
' |
class ImportMapTestAppKernel extends Kernel
{
public function registerBundles(): iterable
{
return [
new FrameworkBundle(),
];
}
public function getProjectDir(): string
{
| {
"filepath": "src/Symfony/Component/AssetMapper/Tests/Fixtures/ImportMapTestAppKernel.php",
"language": "php",
"file_size": 1367,
"cut_index": 524,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Exception\MissingResourceException;
/**
* G... | try {
self::readEntry(['Names', $script]);
return true;
} catch (MissingResourceException) {
return false;
}
}
/**
* @throws MissingResourceException if the script code does not exist
| dle
{
/**
* @return string[]
*/
public static function getScriptCodes(): array
{
return self::readEntry(['Scripts'], 'meta');
}
public static function exists(string $script): bool
{
| {
"filepath": "src/Symfony/Component/Intl/Scripts.php",
"language": "php",
"file_size": 1539,
"cut_index": 537,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\Util;
/**
* @internal
*/
class GzipStreamWrapper
{
/** @var resource|null */
public $cont... | ache_is_script_cached') || !@opcache_is_script_cached($path)) {
stream_wrapper_unregister('file');
stream_wrapper_register('file', self::class);
}
return require $path;
}
public function stream_open(string | throw new \LogicException(\sprintf('The "zlib" extension is required to load the "%s/%s" map, please enable it in your php.ini file.', basename(\dirname($path)), basename($path)));
}
if (!\function_exists('opc | {
"filepath": "src/Symfony/Component/Intl/Util/GzipStreamWrapper.php",
"language": "php",
"file_size": 2225,
"cut_index": 563,
"middle_length": 229
} |
ibuteSanitizerInterface;
/**
* @author Titouan Galopin <galopintitouan@gmail.com>
*/
class HtmlSanitizerConfig
{
private HtmlSanitizerAction $defaultAction = HtmlSanitizerAction::Drop;
/**
* Elements that should be removed.
*
* @var array<string, true>
*/
private array $droppedElemen... | d to certain elements.
*
* @var array<string, array<string, string>>
*/
private array $forcedAttributes = [];
/**
* Links schemes that should be retained, other being dropped.
*
* @var list<string>
*/
private |
* Elements that should be retained, with their allowed attributes.
*
* @var array<string, array<string, true>>
*/
private array $allowedElements = [];
/**
* Attributes that should always be adde | {
"filepath": "src/Symfony/Component/HtmlSanitizer/HtmlSanitizerConfig.php",
"language": "php",
"file_size": 16095,
"cut_index": 921,
"middle_length": 229
} |
php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Parser;
/**
* Transforms an untrusted HT... | ethod must return null if the string cannot be parsed as HTML.
*
* @param string $context The name of the context element in which the HTML is parsed
*/
public function parse(string $html, string $context = 'body'): \Dom\Node|\DOMNode|nu |
* This m | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Parser/ParserInterface.php",
"language": "php",
"file_size": 790,
"cut_index": 514,
"middle_length": 14
} |
fault-configuration
*
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @internal
*/
final class W3CReference
{
/**
* Sanitizer supported contexts.
*
* A parent element name can be passed as an argument to {@see HtmlSanitizer::sanitizeFor()}.
* When doing so, depending on the given c... | * Elements allowed by the Sanitizer standard in <head> as keys, including whether
* they are safe or not as values (safe meaning no global display/audio/video impact).
*/
public const HEAD_ELEMENTS = [
'head' => true,
'link' = | t to apply depending on the passed parent element name
public const CONTEXTS_MAP = [
'head' => self::CONTEXT_HEAD,
'textarea' => self::CONTEXT_TEXT,
'title' => self::CONTEXT_TEXT,
];
/**
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Reference/W3CReference.php",
"language": "php",
"file_size": 10890,
"cut_index": 921,
"middle_length": 229
} |
lSanitizer($config))->sanitizeFor('head', '<div style="width: 100px">Hello world</div>')
);
}
public function testSanitizeForTextarea()
{
$config = (new HtmlSanitizerConfig())
->allowElement('div')
;
$this->assertSame(
'<div style="width: ... | (new HtmlSanitizer($config))->sanitizeFor('title', '<div style="width: 100px">Hello</div> world')
);
}
public function testSanitizeDeepNestedString()
{
$config = (new HtmlSanitizerConfig())
->allowElemen | estSanitizeForTitle()
{
$config = (new HtmlSanitizerConfig())
->allowElement('div')
;
$this->assertSame(
'<div style="width: 100px">Hello</div> world',
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php",
"language": "php",
"file_size": 20674,
"cut_index": 1331,
"middle_length": 229
} |
This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Tests\Reference;
use PHPUnit\Framework\TestCase;
us... | ertSame(
$this->getResourceData(__DIR__.'/../Fixtures/baseline-element-allow-list.json'),
$referenceElements
);
}
public function testAttributes()
{
$this->assertSame(
$this->getResourceData( | public function testElements()
{
$referenceElements = array_values(array_merge(array_keys(W3CReference::HEAD_ELEMENTS), array_keys(W3CReference::BODY_ELEMENTS)));
sort($referenceElements);
$this->ass | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/Reference/W3CReferenceTest.php",
"language": "php",
"file_size": 1361,
"cut_index": 524,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Tests\TextSanitizer;
use PHPUnit\Framework\Attributes\DataProvid... | es as $input => $expected) {
yield $input => [$input, $expected];
}
}
#[DataProvider('provideHtmlLower')]
public function testHtmlLower(string $input, string $expected)
{
$this->assertSame($expected, StringSanit | ()
{
$cases = [
'exampleAttr' => 'exampleattr',
'aTTrΔ' => 'attrΔ',
'data-attr' => 'data-attr',
'test with space' => 'test with space',
];
foreach ($cas | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/TextSanitizer/StringSanitizerTest.php",
"language": "php",
"file_size": 2024,
"cut_index": 537,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\TextSanitizer;
/**
* @internal
*/
final class StringSanitizer
... | in a non-UTF8 field
'<' => '<',
'>' => '>',
'+' => '+',
'=' => '=',
'@' => '@',
'`' => '`',
];
/**
* Applies a transformation to lowercase following W3C | s
'+' => '+',
'=' => '=',
'@' => '@',
'`' => '`',
// Some DB engines will transform UTF8 full-width characters with
// their classical version if the data is saved | {
"filepath": "src/Symfony/Component/HtmlSanitizer/TextSanitizer/StringSanitizer.php",
"language": "php",
"file_size": 1560,
"cut_index": 537,
"middle_length": 229
} |
ony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\Node;
/**
* @author Titouan Galopin <galopintitouan@gmail.com>
*/
final class BlockedNode implements NodeInterface
{
pr... | getParent(): ?NodeInterface
{
return $this->parentNode;
}
public function render(): string
{
$rendered = '';
foreach ($this->children as $child) {
$rendered .= $child->render();
}
return | his->children[] = $node;
}
public function | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/BlockedNode.php",
"language": "php",
"file_size": 934,
"cut_index": 606,
"middle_length": 52
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\Node;
use Symfony\Component\HtmlSanitizer\TextSanitizer\StringSanitizer;
/**
* @author Titouan Galopin <galopintitouan@gmail.com>
... | 'source' => true,
'track' => true,
'wbr' => true,
];
private array $attributes = [];
private array $children = [];
public function __construct(
private NodeInterface $parent,
private string $tagName,
| true,
'col' => true,
'embed' => true,
'hr' => true,
'img' => true,
'input' => true,
'keygen' => true,
'link' => true,
'meta' => true,
'param' => true,
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/Node.php",
"language": "php",
"file_size": 3604,
"cut_index": 614,
"middle_length": 229
} |
ony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\Node;
use Symfony\Component\HtmlSanitizer\TextSanitizer\StringSanitizer;
/**
* @author Titouan Galopin <galopintitouan@gmai... | throw new \LogicException('Text nodes cannot have children.');
}
public function getParent(): ?NodeInterface
{
return $this->parentNode;
}
public function render(): string
{
return StringSanitizer::encodeHtml | unction addChild(NodeInterface $node): void
{
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/TextNode.php",
"language": "php",
"file_size": 945,
"cut_index": 606,
"middle_length": 52
} |
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\AttributeSanitizer;
use Symfony\Compo... | ist of attributes names supported, or null to support all attributes.
*
* @return list<string>|null
*/
public function getSupportedAttributes(): ?array;
/**
* Returns the sanitized value of a given attribute for the given eleme | face
{
/**
* Returns the list of element names supported, or null to support all elements.
*
* @return list<string>|null
*/
public function getSupportedElements(): ?array;
/**
* Returns the l | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/AttributeSanitizerInterface.php",
"language": "php",
"file_size": 1145,
"cut_index": 518,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\AttributeSanitizer;
use Symfony\Component\HtmlSanitizer\... | return ['src', 'href', 'lowsrc', 'background', 'ping', 'action', 'formaction', 'poster', 'cite', 'data', 'codebase', 'archive', 'longdesc'];
}
public function sanitizeAttribute(string $element, string $attribute, string $value, HtmlSanitizerCon | AttributeSanitizerInterface
{
public function getSupportedElements(): ?array
{
// Check all elements for URL attributes
return null;
}
public function getSupportedAttributes(): ?array
{
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/UrlAttributeSanitizer.php",
"language": "php",
"file_size": 1717,
"cut_index": 537,
"middle_length": 229
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
/**
* Gives access to internationalization data.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
final class Intl
{
/**
* The num... | f the script data.
*/
public const SCRIPT_DIR = 'scripts';
/**
* The directory name of the locale data.
*/
public const LOCALE_DIR = 'locales';
/**
* The directory name of the region data.
*/
public const REGI | y name of the currency data.
*/
public const CURRENCY_DIR = 'currencies';
/**
* The directory name of the language data.
*/
public const LANGUAGE_DIR = 'languages';
/**
* The directory name o | {
"filepath": "src/Symfony/Component/Intl/Intl.php",
"language": "php",
"file_size": 3175,
"cut_index": 614,
"middle_length": 229
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
if (!class_exists(\Locale::class)) {
throw new \LogicException(\sprintf('You cannot use the "%s\Locale" class as the "intl" extension is not inst... | erwise.
*
* @see getFallback()
*/
public static function setDefaultFallback(?string $locale): void
{
self::$defaultFallback = $locale;
}
/**
* Returns the default fallback locale.
*
* @see setDefaultFa | le extends \Locale
{
private static ?string $defaultFallback = 'en';
/**
* Sets the default fallback locale.
*
* The default fallback locale is used as fallback for locales that have no
* fallback oth | {
"filepath": "src/Symfony/Component/Intl/Locale.php",
"language": "php",
"file_size": 3203,
"cut_index": 614,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Data\Bundle\Reader\BufferedBundleReader;
use Symfony\Component\Intl\Dat... | try from a resource bundle.
*
* @see BundleEntryReaderInterface::readEntry()
*
* @param string[] $indices The indices to read from the bundle
* @param string|null $locale The locale to read
* @param bool $fallback | nd Franssen <franssen.roland@gmail.com>
*
* @internal
*/
abstract class ResourceBundle
{
private static BundleEntryReader $entryReader;
abstract protected static function getPath(): string;
/**
* Reads an en | {
"filepath": "src/Symfony/Component/Intl/ResourceBundle.php",
"language": "php",
"file_size": 2684,
"cut_index": 563,
"middle_length": 229
} |
zer\Visitor\AttributeSanitizer\AttributeSanitizerInterface;
class HtmlSanitizerConfigTest extends TestCase
{
public function testCreateEmpty()
{
$config = new HtmlSanitizerConfig();
$this->assertSame([], $config->getAllowedElements());
$this->assertSame([], $config->getBlockedElements()... | $config = new HtmlSanitizerConfig();
$this->assertSame(['http', 'https', 'mailto', 'tel'], $config->getAllowedLinkSchemes());
$this->assertNull($config->getAllowedLinkHosts());
$this->assertSame(['http', 'https', 'data'], $con | , 'https', 'data'], $config->getAllowedMediaSchemes());
$this->assertNull($config->getAllowedMediaHosts());
$this->assertFalse($config->getForceHttpsUrls());
}
public function testSimpleOptions()
{
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerConfigTest.php",
"language": "php",
"file_size": 12175,
"cut_index": 921,
"middle_length": 229
} |
' => [
'AOK',
'Angolijska kvanza (1977–1991)',
],
'AON' => [
'AON',
'Angolijska nova kvanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolijska kvanza reajustado (1995–1999)',
],
'ARA' => [
'AR... | 'AWG',
'Arubanski florin',
],
'AZM' => [
'AZM',
'Azerbejdžanski manat (1993–2006)',
],
'AZN' => [
'AZN',
'Azerbejdžanski manat',
],
'BAD' => [
| 'Argentinski pezos',
],
'ATS' => [
'ATS',
'Austrijski šiling',
],
'AUD' => [
'AUD',
'Australijski dolar',
],
'AWG' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bs.php",
"language": "php",
"file_size": 24667,
"cut_index": 1331,
"middle_length": 229
} |
N' => [
'AON',
'Анголијска нова кванза (1990–2000)',
],
'AOR' => [
'AOR',
'Анголска кванза реађустадо (1995–1999)',
],
'ARA' => [
'ARA',
'Аргентински аустрал',
],
'ARP' => [
'ARP',
... | 'Азербејџански манат (1993–2006)',
],
'AZN' => [
'AZN',
'Азербејџански манат',
],
'BAD' => [
'BAD',
'Босанско-Херцеговачки динар',
],
'BAM' => [
| шилинг',
],
'AUD' => [
'A$',
'Аустралијски долар',
],
'AWG' => [
'AWG',
'Арубански флорин',
],
'AZM' => [
'AZM',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bs_Cyrl.php",
"language": "php",
"file_size": 27124,
"cut_index": 1331,
"middle_length": 229
} |
',
'kwanza angolès (1977–1991)',
],
'AON' => [
'AON',
'nou kwanza angolès (1990–2000)',
],
'AOR' => [
'AOR',
'kwanza angolès reajustat (1995–1999)',
],
'ARA' => [
'ARA',
'austral argentí',... | tríac',
],
'AUD' => [
'AU$',
'dòlar australià',
],
'AWG' => [
'AWG',
'florí d’Aruba',
],
'AZM' => [
'AZM',
'manat azerbaidjanès (1993–20 | ,
'ARP' => [
'ARP',
'peso argentí (1983–1985)',
],
'ARS' => [
'ARS',
'peso argentí',
],
'ATS' => [
'ATS',
'xíling aus | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ca.php",
"language": "php",
"file_size": 24148,
"cut_index": 1331,
"middle_length": 229
} |
идерландин Антилин гульден',
],
'AOA' => [
'AOA',
'Анголан кванза',
],
'ARS' => [
'ARS',
'Аргентинан песо',
],
'AUD' => [
'A$',
'Австралин доллар',
],
'AWG' => [
'AWG',
... | GN',
'Болгарин лев',
],
'BHD' => [
'BHD',
'Бахрейнан динар',
],
'BIF' => [
'BIF',
'Бурундин франк',
],
'BMD' => [
'BMD',
'Бе | ан а хийцалун марка',
],
'BBD' => [
'BBD',
'Барбадосан доллар',
],
'BDT' => [
'BDT',
'Бангладешан така',
],
'BGN' => [
'B | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ce.php",
"language": "php",
"file_size": 15233,
"cut_index": 921,
"middle_length": 229
} |
'angolská kwanza (1977–1991)',
],
'AON' => [
'AON',
'angolská kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'angolská kwanza (1995–1999)',
],
'ARA' => [
'ARA',
'argentinský austral',
],
... | šilink',
],
'AUD' => [
'AU$',
'australský dolar',
],
'AWG' => [
'AWG',
'arubský zlatý',
],
'AZM' => [
'AZM',
'ázerbájdžánský manat (199 | 'ARP' => [
'ARP',
'argentinské peso (1983–1985)',
],
'ARS' => [
'ARS',
'argentinské peso',
],
'ATS' => [
'ATS',
'rakouský | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cs.php",
"language": "php",
"file_size": 25155,
"cut_index": 1331,
"middle_length": 229
} |
'AOK',
'Ангола кванзи (1977–1991)',
],
'AON' => [
'AON',
'Ангола ҫӗнӗ кванзи (1990–2000)',
],
'AOR' => [
'AOR',
'Ангола реюстадо кванзӗ (1995–1999)',
],
'ARA' => [
'ARA',
'Аргенти... | 'Австри шиллингӗ',
],
'AUD' => [
'A$',
'Австрали долларӗ',
],
'AWG' => [
'AWG',
'Аруба флоринӗ',
],
'AZM' => [
'AZM',
'Азерба | –1970)',
],
'ARP' => [
'ARP',
'Аргентина песи (1983–1985)',
],
'ARS' => [
'ARS',
'Аргентина песи',
],
'ATS' => [
'ATS',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cv.php",
"language": "php",
"file_size": 28751,
"cut_index": 1331,
"middle_length": 229
} |
],
'AOR' => [
'AOR',
'Kwanza Ailgymhwysedig Angola (1995–1999)',
],
'ARA' => [
'ARA',
'Austral yr Ariannin',
],
'ARL' => [
'ARL',
'Peso Ley yr Ariannin (1970–1983)',
],
'ARM' => [
... | 'AWG',
'Fflorin Aruba',
],
'AZM' => [
'AZM',
'Manat Azerbaijan (1993–2006)',
],
'AZN' => [
'AZN',
'Manat Azerbaijan',
],
'BAM' => [
| RS',
'Peso yr Ariannin',
],
'ATS' => [
'ATS',
'Swllt Awstria',
],
'AUD' => [
'A$',
'Doler Awstralia',
],
'AWG' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/cy.php",
"language": "php",
"file_size": 21175,
"cut_index": 1331,
"middle_length": 229
} |
'AON' => [
'AON',
'Angolansk nye kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolansk kwanza (1995–1999)',
],
'ARA' => [
'ARA',
'Argentinsk austral',
],
'ARP' => [
'ARP',
'A... | jdsjansk manat (1993–2006)',
],
'AZN' => [
'AZN',
'aserbajdsjansk manat',
],
'BAD' => [
'BAD',
'Bosnien-Hercegovinsk dinar',
],
'BAM' => [
'BAM',
| ],
'AUD' => [
'AU$',
'australsk dollar',
],
'AWG' => [
'AWG',
'arubansk florin',
],
'AZM' => [
'AZM',
'Aserba | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/da.php",
"language": "php",
"file_size": 22272,
"cut_index": 1331,
"middle_length": 229
} |
K' => [
'AOK',
'Angolanischer Kwanza (1977–1990)',
],
'AON' => [
'AON',
'Angolanischer Neuer Kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolanischer Kwanza Reajustado (1995–1999)',
],
'ARA' => [
... | Peso',
],
'ATS' => [
'öS',
'Österreichischer Schilling',
],
'AUD' => [
'AU$',
'Australischer Dollar',
],
'AWG' => [
'AWG',
'Aruba-Flori | 'ARM',
'Argentinischer Peso (1881–1970)',
],
'ARP' => [
'ARP',
'Argentinischer Peso (1983–1985)',
],
'ARS' => [
'ARS',
'Argentinischer | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/de.php",
"language": "php",
"file_size": 25310,
"cut_index": 1331,
"middle_length": 229
} |
ྱི་དངུལ་ ཨཕ་ག་ནི',
],
'AUD' => [
'AU$',
'ཨཱོས་ཊྲེ་ལི་ཡ་གི་དངུལ་ ཌོ་ལར',
],
'BDT' => [
'BDT',
'བྷང་ལ་དེཤ་གི་དངུལ་ ཏ་ཀ',
],
'BMD' => [
'BMD',
'བར་མུ་ཌ་གི་དངུལ་ ཌོ་ལར',
],
'BRL' => [
... | 'CN¥',
'རྒྱ་ནག་གི་དངུལ་ ཡུ་ཝཱན',
],
'COP' => [
'COP',
'ཀོ་ལོམ་བྷི་ཡ་གི་དངུལ་ པེ་སོ',
],
'CUP' => [
'CUP',
'ཀིའུ་བྷ་གི་དངུལ་ པེ་སོ',
],
'DKK' => [ | ཌ་གི་དངུལ་ ཌོ་ལར',
],
'CHF' => [
'CHF',
'སུ་ཡིས་ཀྱི་དངུལ་ ཕྲངཀ',
],
'CLP' => [
'CLP',
'ཅི་ལི་གི་དངུལ་ པེ་སོ',
],
'CNY' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/dz.php",
"language": "php",
"file_size": 10062,
"cut_index": 716,
"middle_length": 229
} |
'AOK' => [
'AOK',
'angolaga kwanza (1977–1991)',
],
'AON' => [
'AON',
'angolaga kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'angolaga kwanza xoxotɔ (1995–1999)',
],
'ARA' => [
'ARA',
... | > [
'ATS',
'ɔstriaga schilling',
],
'AUD' => [
'AU$',
'Australiaga dollar',
],
'AWG' => [
'AWG',
'arubaga lorin',
],
'AZM' => [
| gentinaga peso (1881–1970)',
],
'ARP' => [
'ARP',
'argentinaga peso (1983–1985)',
],
'ARS' => [
'ARS',
'argentinaga peso',
],
'ATS' = | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ee.php",
"language": "php",
"file_size": 23852,
"cut_index": 1331,
"middle_length": 229
} |
N' => [
'AON',
'Νέα Κουάνζα Ανγκόλας (1990–2000)',
],
'ARA' => [
'ARA',
'Ωστράλ Αργετινής',
],
'ARP' => [
'ARP',
'Πέσο Αργεντινής (1983–1985)',
],
'ARS' => [
'ARS',
'Πέσο Αργεν... | ϊτζάν',
],
'BAD' => [
'BAD',
'Δηνάριο Βοσνίας-Ερζεγοβίνης',
],
'BAM' => [
'BAM',
'Μετατρέψιμο Μάρκο Βοσνίας-Ερζεγοβίνης',
],
'BBD' => [
'BBD',
| G' => [
'AWG',
'Φλορίνι Αρούμπας',
],
'AZM' => [
'AZM',
'Μανάτ Αζερμπαϊτζάν (1993–2006)',
],
'AZN' => [
'AZN',
'Μανάτ Αζερμπα | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/el.php",
"language": "php",
"file_size": 26588,
"cut_index": 1331,
"middle_length": 229
} |
'AOK',
'Angolan Kwanza (1977–1991)',
],
'AON' => [
'AON',
'Angolan New Kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolan Readjusted Kwanza (1995–1999)',
],
'ARA' => [
'ARA',
'Argentin... | 'Austrian Schilling',
],
'AUD' => [
'A$',
'Australian Dollar',
],
'AWG' => [
'AWG',
'Aruban Florin',
],
'AZM' => [
'AZM',
'Azerb | 70)',
],
'ARP' => [
'ARP',
'Argentine Peso (1983–1985)',
],
'ARS' => [
'ARS',
'Argentine Peso',
],
'ATS' => [
'ATS',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en.php",
"language": "php",
"file_size": 24771,
"cut_index": 1331,
"middle_length": 229
} |
'Bermudian Dollar',
],
'BYB' => [
'BYB',
'Belarusian New Rouble (1994–1999)',
],
'BYN' => [
'BYN',
'Belarusian Rouble',
],
'BYR' => [
'BYR',
'Belarusian Rouble (2000–2016)',
],
... | R' => [
'RUR',
'Russian Rouble (1991–1998)',
],
'SHP' => [
'SHP',
'St Helena Pound',
],
'TJR' => [
'TJR',
'Tajikistani Rouble',
],
'USD' | 'Russian Rouble',
],
'RU | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en_001.php",
"language": "php",
"file_size": 968,
"cut_index": 582,
"middle_length": 52
} |
'$',
'Australian Dollar',
],
'BAM' => [
'BAM',
'Bosnia-Herzegovina Convertible Marka',
],
'BBD' => [
'BBD',
'Barbados Dollar',
],
'BMD' => [
'BMD',
'Bermuda Dollar',
]... | 'GBP',
'British Pound',
],
'HKD' => [
'HKD',
'Hong Kong Dollar',
],
'ILS' => [
'ILS',
'Israeli Shekel',
],
'INR' => [
'INR',
| 'CAD',
'Canadian Dollar',
],
'CNY' => [
'CNY',
'Chinese Yuan',
],
'EUR' => [
'EUR',
'Euro',
],
'GBP' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/en_AU.php",
"language": "php",
"file_size": 2479,
"cut_index": 563,
"middle_length": 229
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\Util;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Intl\Intl;
/**
* Helper class for preparing test cases that rely on the Intl component.
... | r
{
/**
* Should be called before tests that work fine with the stub implementation.
*/
public static function requireIntl(TestCase $testCase, ?string $minimumIcuVersion = null): void
{
$minimumIcuVersion ??= Intl::getIcuStubV | }. Calling
* {@link requireFullIntl()} is only necessary if you use functionality in the
* test that is not provided by the stub intl implementation.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class IntlTestHelpe | {
"filepath": "src/Symfony/Component/Intl/Util/IntlTestHelper.php",
"language": "php",
"file_size": 3536,
"cut_index": 614,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\Util;
/**
* Facilitates the comparison of version strings.
*
* @author Bernhard Schussek <bschus... | , '1.2.4', '==', 2)
* // => true
*
* @param int|null $precision The number of components to compare. Pass
* NULL to compare the versions unchanged.
*
* @see normalize()
*/
public static | he number of regarded version components in the last argument
* $precision.
*
* Examples:
*
* Version::compare('1.2.3', '1.2.4', '==')
* // => false
*
* Version::compare('1.2.3' | {
"filepath": "src/Symfony/Component/Intl/Util/Version.php",
"language": "php",
"file_size": 2336,
"cut_index": 563,
"middle_length": 229
} |
ጊልደር',
],
'AOA' => [
'AOA',
'የአንጎላ ኩዋንዛ',
],
'ARS' => [
'ARS',
'የአርጀንቲና ፔሶ',
],
'AUD' => [
'AU$',
'የአውስትራሊያ ዶላር',
],
'AWG' => [
'AWG',
'አሩባን ፍሎሪን',
],
... | D',
'የባኽሬን ዲናር',
],
'BIF' => [
'BIF',
'የብሩንዲ ፍራንክ',
],
'BMD' => [
'BMD',
'የቤርሙዳ ዶላር',
],
'BND' => [
'BND',
'የብሩኔ ዶላር',
| 'BBD',
'የባርቤዶስ ዶላር',
],
'BDT' => [
'BDT',
'የባንግላዲሽ ታካ',
],
'BGN' => [
'BGN',
'የቡልጋሪያ ሌቭ',
],
'BHD' => [
'BH | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/am.php",
"language": "php",
"file_size": 15919,
"cut_index": 921,
"middle_length": 229
} |
1990-2000',
],
'AOR' => [
'AOR',
'كوانزا أنجولي معدلة - 1995 - 1999',
],
'ARA' => [
'ARA',
'استرال أرجنتيني',
],
'ARP' => [
'ARP',
'بيزو أرجنتيني - 1983-1985',
],
'ARS' => [
... | ان',
],
'BAD' => [
'BAD',
'دينار البوسنة والهرسك',
],
'BAM' => [
'BAM',
'مارك البوسنة والهرسك قابل للتحويل',
],
'BBD' => [
'BBD',
'دولار | ],
'AWG' => [
'AWG',
'فلورن أروبي',
],
'AZM' => [
'AZM',
'مانات أذريبجاني',
],
'AZN' => [
'AZN',
'مانات أذربيج | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ar.php",
"language": "php",
"file_size": 23195,
"cut_index": 1331,
"middle_length": 229
} |
'AOK',
'Ангола кванзаһы (1977–1991)',
],
'AON' => [
'AON',
'Ангола яңы кванзаһы (1990–2000)',
],
'AOR' => [
'AOR',
'Ангола көйләнгән кванзаһы (1995–1999)',
],
'ARA' => [
'ARA',
'Арг... | ATS',
'Австрия шиллингы',
],
'AUD' => [
'A$',
'Австралия доллары',
],
'AWG' => [
'AWG',
'Аруба флорины',
],
'AZM' => [
'AZM',
| 881–1970)',
],
'ARP' => [
'ARP',
'Аргентина песоһы (1983–1985)',
],
'ARS' => [
'ARS',
'Аргентина песоһы',
],
'ATS' => [
' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ba.php",
"language": "php",
"file_size": 29252,
"cut_index": 1331,
"middle_length": 229
} |
[
'AON',
'Анголска нова кванца (1990–2000)',
],
'AOR' => [
'AOR',
'Анголска нова кванца (1995–1999)',
],
'ARA' => [
'ARA',
'Аржентински австрал',
],
'ARP' => [
'ARP',
'Арженти... | нски манат (1993–2006)',
],
'AZN' => [
'AZN',
'Азербайджански манат',
],
'BAD' => [
'BAD',
'Босна и Херцеговина-динар',
],
'BAM' => [
'BAM',
| ],
'AUD' => [
'AUD',
'Австралийски долар',
],
'AWG' => [
'AWG',
'Арубски флорин',
],
'AZM' => [
'AZM',
'Азербайджа | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bg.php",
"language": "php",
"file_size": 25883,
"cut_index": 1331,
"middle_length": 229
} |
N' => [
'AON',
'এ্যাঙ্গোলান নতুন কওয়ানজা (১৯৯৫–২০০০)',
],
'AOR' => [
'AOR',
'এ্যাঙ্গোলান কওয়ানজা (১৯৯৫–১৯৯৯)',
],
'ARA' => [
'ARA',
'আর্জেন্টিনা অস্ট্রাল',
],
'ARP' => [
'ARP',
... | জারবাইজান মানাত (১৯৯৩–২০০৬)',
],
'AZN' => [
'AZN',
'আজারবাইজান মানাত',
],
'BAD' => [
'BAD',
'বসনিয়া এবং হার্জেগোভিনা দিনার',
],
'BAM' => [
'BAM',
| লিং',
],
'AUD' => [
'A$',
'অস্ট্রেলিয়ান ডলার',
],
'AWG' => [
'AWG',
'আরুবা ফ্লোরিন',
],
'AZM' => [
'AZM',
'আ | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bn.php",
"language": "php",
"file_size": 32091,
"cut_index": 1331,
"middle_length": 229
} |
'kwanza Angola (1977–1991)',
],
'AON' => [
'AON',
'kwanza nevez Angola (1990–2000)',
],
'ARM' => [
'ARM',
'peso Arcʼhantina (1881–1970)',
],
'ARP' => [
'ARP',
'peso Arcʼhantina (1983–1985)',
... | ],
'AZN' => [
'AZN',
'manat Azerbaidjan',
],
'BAD' => [
'BAD',
'dinar Bosnia ha Herzegovina (1992–1994)',
],
'BAM' => [
'BAM',
'mark kemmadus B |
'$A',
'dollar Aostralia',
],
'AWG' => [
'AWG',
'florin Aruba',
],
'AZM' => [
'AZM',
'manat Azerbaidjan (1993–2006)',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/br.php",
"language": "php",
"file_size": 21156,
"cut_index": 1331,
"middle_length": 229
} |
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Tests\Parser;
use PHPUnit\Framework\TestCase;... | 0)->nodeName);
}
public function testParseHtml()
{
$html = '<div><p>Hello <strong>World</strong>!</p></div>';
$node = (new NativeParser())->parse($html);
$this->assertInstanceOf(\Dom\Node::class, $node);
$this-> | v></div>');
$this->assertInstanceOf(\Dom\Node::class, $node);
$this->assertSame('BODY', $node->nodeName);
$this->assertCount(1, $node->childNodes);
$this->assertSame('DIV', $node->childNodes->item( | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/Parser/NativeParserTest.php",
"language": "php",
"file_size": 1170,
"cut_index": 518,
"middle_length": 229
} |
ted' => 'http://trusted.com/link.php',
];
yield [
'input' => 'https://trusted.com/link.php',
'allowedSchemes' => null,
'allowedHosts' => null,
'forceHttps' => false,
'allowRelative' => false,
'expected' => 'https://trusted.com/link... | d [
'input' => 'https://trusted.com/link.php',
'allowedSchemes' => ['https'],
'allowedHosts' => null,
'forceHttps' => false,
'allowRelative' => false,
'expected' => 'https://trusted.co | allowedHosts' => null,
'forceHttps' => false,
'allowRelative' => false,
'expected' => 'data:text/plain;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
];
yiel | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/TextSanitizer/UrlSanitizerTest.php",
"language": "php",
"file_size": 50649,
"cut_index": 2151,
"middle_length": 229
} |
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\Node;
/**
* @author Titouan Galopin <galo... | nt(): ?NodeInterface
{
return null;
}
public function render(): string
{
$rendered = '';
foreach ($this->children as $child) {
$rendered .= $child->render();
}
return $rendered;
}
}
| ildren[] = $node;
}
public function getPare | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/DocumentNode.php",
"language": "php",
"file_size": 831,
"cut_index": 523,
"middle_length": 52
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\AttributeSanitizer;
use Symfony\Component\HtmlSanitizer\... | nal class MetaRefreshAttributeSanitizer implements AttributeSanitizerInterface
{
public function getSupportedElements(): ?array
{
return ['meta'];
}
public function getSupportedAttributes(): ?array
{
return ['content']; | nce the http-equiv value is not visible from a per-attribute sanitizer.
*
* The content attribute carries an unrelated value for other meta types (description,
* keywords, generator…), which is passed through unchanged.
*/
fi | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/MetaRefreshAttributeSanitizer.php",
"language": "php",
"file_size": 1683,
"cut_index": 537,
"middle_length": 229
} |
Schussek <bschussek@gmail.com>
* @author Roland Franssen <franssen.roland@gmail.com>
*/
final class Currencies extends ResourceBundle
{
private const INDEX_SYMBOL = 0;
private const INDEX_NAME = 1;
private const INDEX_FRACTION_DIGITS = 0;
private const INDEX_ROUNDING_INCREMENT = 1;
private const ... | } catch (MissingResourceException) {
return false;
}
}
/**
* @throws MissingResourceException if the currency code does not exist
*/
public static function getName(string $currency, ?string $displayLocale | return self::readEntry(['Currencies'], 'meta');
}
public static function exists(string $currency): bool
{
try {
self::readEntry(['Names', $currency, self::INDEX_NAME]);
return true;
| {
"filepath": "src/Symfony/Component/Intl/Currencies.php",
"language": "php",
"file_size": 10462,
"cut_index": 921,
"middle_length": 229
} |
part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Exception\MissingResourceException;
/**
* G... | Aliases(): array
{
return self::readEntry(['Aliases'], 'meta');
}
public static function exists(string $locale): bool
{
try {
self::readEntry(['Names', $locale]);
return true;
} catch (Missi | dle
{
/**
* @return string[]
*/
public static function getLocales(): array
{
return self::readEntry(['Locales'], 'meta');
}
/**
* @return string[]
*/
public static function get | {
"filepath": "src/Symfony/Component/Intl/Locales.php",
"language": "php",
"file_size": 2000,
"cut_index": 537,
"middle_length": 229
} |
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Exception\MissingResourceException;
use Symfony\Component\Intl\Exception\RuntimeException;
/**
* Gives access to timezon... | urn true;
} catch (MissingResourceException) {
try {
new \DateTimeZone($timezone);
return true;
} catch (\Exception) {
return false;
}
}
}
/**
| ion getIds(): array
{
return self::readEntry(['Zones'], 'meta');
}
public static function exists(string $timezone): bool
{
try {
self::readEntry(['Names', $timezone]);
ret | {
"filepath": "src/Symfony/Component/Intl/Timezones.php",
"language": "php",
"file_size": 3562,
"cut_index": 614,
"middle_length": 229
} |
This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer;
/**
* Sanitizes an untrusted HTML input for safe ... | ing
* will be injected in a "body" context, and therefore will drop tags only
* allowed in the "head" element. To sanitize a string for injection
* in the "head" element, use {@see HtmlSanitizerInterface::sanitizeFor()}.
*/
public f | Galopin <galopintitouan@gmail.com>
*/
interface HtmlSanitizerInterface
{
/**
* Sanitizes an untrusted HTML input for a <body> context.
*
* This method is NOT context sensitive: it assumes the returned HTML str | {
"filepath": "src/Symfony/Component/HtmlSanitizer/HtmlSanitizerInterface.php",
"language": "php",
"file_size": 1433,
"cut_index": 524,
"middle_length": 229
} |
'Nederlands-Antilliaanse gulde',
],
'AOA' => [
'AOA',
'Angolese kwanza',
],
'ARS' => [
'ARS',
'Argentynse peso',
],
'AUD' => [
'A$',
'Australiese dollar',
],
'AWG' => [
... | ' => [
'BGN',
'Bulgaarse lev',
],
'BHD' => [
'BHD',
'Bahreinse dinar',
],
'BIF' => [
'BIF',
'Burundiese frank',
],
'BMD' => [
| snies-Herzegowiniese omskakelbare marka',
],
'BBD' => [
'BBD',
'Barbados-dollar',
],
'BDT' => [
'BDT',
'Bangladesjiese taka',
],
'BGN | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/af.php",
"language": "php",
"file_size": 14311,
"cut_index": 921,
"middle_length": 229
} |
'নেডাৰলেণ্ডছ এণ্টিলিয়েন গিল্ডাৰ',
],
'AOA' => [
'AOA',
'এংগোলান কোৱাঞ্জা',
],
'ARS' => [
'ARS',
'আৰ্জেণ্টাইন পেছো',
],
'AUD' => [
'A$',
'অষ্ট্ৰেলিয়ান ডলাৰ',
],
'AWG' => [
... | 'BGN',
'বুলগেৰীয় লেভ',
],
'BHD' => [
'BHD',
'বাহৰেইনী ডিনাৰ',
],
'BIF' => [
'BIF',
'বুৰুণ্ডিয়ান ফ্ৰেংক',
],
'BMD' => [
'BMD | ৰু হাৰ্জেগ’ভিনা কনভাৰ্টিব্ল মাৰ্ক',
],
'BBD' => [
'BBD',
'বাৰ্বাডিয়ান ডলাৰ',
],
'BDT' => [
'BDT',
'বাংলাদেশী টাকা',
],
'BGN' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/as.php",
"language": "php",
"file_size": 18187,
"cut_index": 921,
"middle_length": 229
} |
'AOK' => [
'AOK',
'Anqola Kvanzasi (1977–1990)',
],
'AON' => [
'AON',
'Anqola Yeni Kvanzası (1990–2000)',
],
'AOR' => [
'AOR',
'Anqola Kvanzası (1995–1999)',
],
'ARA' => [
'ARA',
... | 'Aruba Florini',
],
'AZM' => [
'AZM',
'Azərbaycan Manatı (1993–2006)',
],
'AZN' => [
'₼',
'Azərbaycan Manatı',
],
'BAD' => [
'BAD',
| Pesosu',
],
'ATS' => [
'ATS',
'Avstriya Şillinqi',
],
'AUD' => [
'A$',
'Avstraliya Dolları',
],
'AWG' => [
'AWG',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/az.php",
"language": "php",
"file_size": 22559,
"cut_index": 1331,
"middle_length": 229
} |
Diram',
],
'AOA' => [
'AOA',
'angola Kwanza',
],
'AUD' => [
'A$',
'ositirali Dolar',
],
'BHD' => [
'BHD',
'bareyini Dinar',
],
'BIF' => [
'BIF',
'burundi Fraŋ',... | 'CVE',
'capivɛrdi Esekudo',
],
'DJF' => [
'DJF',
'jibuti Fraŋ',
],
'DZD' => [
'DZD',
'alizeri Dinar',
],
'EGP' => [
'EGP',
| 'CDF',
'kongole Fraŋ',
],
'CHF' => [
'CHF',
'suwisi Fraŋ',
],
'CNY' => [
'CN¥',
'siniwa Yuwan',
],
'CVE' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bm.php",
"language": "php",
"file_size": 4747,
"cut_index": 614,
"middle_length": 229
} |
buted with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\TextSanitizer;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\UriString;
/**
* @internal
*/
final class UrlSanitizer
{
/**
* Characters with no legitimate place in a URL: explicit-direction BiDi
* formatting marks plus ... | sanitizer checks that:
* * the URL's host is allowed ;
* * the URL's scheme is allowed ;
* * the URL is allowed to be relative if it is ;
*
* It also transforms the URL to HTTPS if requested.
*/
public static functio | 0A0}\x{1680}\x{2000}-\x{200A}\x{2028}\x{2029}\x{202F}\x{205F}\x{3000}\x{FEFF}\x{202A}-\x{202E}\x{2066}-\x{2069}]/u';
/**
* Sanitizes a given URL string.
*
* In addition to ensuring $input is a valid URL, this | {
"filepath": "src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php",
"language": "php",
"file_size": 6985,
"cut_index": 716,
"middle_length": 229
} |
ony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor\Node;
/**
* Represents the sanitized version of a DOM node in the sanitized tree.
*
* Once the sanitization is done, nodes... | * Return the parent node of this node, or null if it has no parent node.
*/
public function getParent(): ?self;
/**
* Render this node as a string, recursively rendering its children as well.
*/
public function render(): stri | lic function addChild(self $node): void;
/**
| {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/Node/NodeInterface.php",
"language": "php",
"file_size": 920,
"cut_index": 606,
"middle_length": 52
} |
buted with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Exception\MissingResourceException;
/**
* Gives access to region-related ICU data.
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Roland Franssen <franssen.roland@gmail.com>
*/
final class Countries exte... | try codes.
*
* @return string[]
*/
public static function getCountryCodes(): array
{
if (!self::withUserAssigned()) {
return self::readEntry(['Regions'], 'meta');
}
return array_merge(self::readEn | odes.
*
* A full table of ISO 3166 country codes can be found here:
* https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
*
* This list only contains "officially assigned ISO 3166-1 alpha-2" coun | {
"filepath": "src/Symfony/Component/Intl/Countries.php",
"language": "php",
"file_size": 7981,
"cut_index": 716,
"middle_length": 229
} |
->allowMediaHosts(['trusted.com', 'external.com'])
->allowRelativeLinks()
->allowRelativeMedias()
->forceHttpsUrls()
);
}
#[DataProvider('provideSanitizeHead')]
public function testSanitizeHead(string $input, string $expected)
{
... | sheet" href="http://trusted.com" />',
'<link rel="stylesheet" href="https://trusted.com" />',
],
[
'<link rel="stylesheet" href="http://untrusted.com" />',
'<link rel="stylesheet" />', | ts
[
'<LINK REL="stylesheet" HREF="javascript:alert(\'XSS\');">',
'<link rel="stylesheet" />',
],
// Normal tags
[
'<link rel="style | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerAllTest.php",
"language": "php",
"file_size": 22343,
"cut_index": 1331,
"middle_length": 229
} |
Nɛdɛlande Antɛlia guuda',
],
'AOA' => [
'AOA',
'Angola Kwanza',
],
'ARS' => [
'ARS',
'Agɛntina peso',
],
'AUD' => [
'A$',
'Ɔstrelia Dɔla',
],
'AWG' => [
'AWG',
... | ɛv',
],
'BHD' => [
'BHD',
'Baren Dina',
],
'BIF' => [
'BIF',
'Burundi Frank',
],
'BMD' => [
'BMD',
'Bɛɛmuda dɔla',
],
'B | ],
'BBD' => [
'BBD',
'Babadɔso dɔla',
],
'BDT' => [
'BDT',
'Bangladehye taka',
],
'BGN' => [
'BGN',
'Bɔɔgaria l | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ak.php",
"language": "php",
"file_size": 13400,
"cut_index": 921,
"middle_length": 229
} |
php
return [
'Names' => [
'ANG' => [
'ANG',
'নেদারল্যান্ডস অ্যান্টিলিয়ান গিল্ডার',
],
'AWG' => [
'AWG',
'আরুবান গিল্ডার',
],
'BMD' => [
'BMD',
'বারমুডান ডলার',
],
'GTQ' => [
... | ],
'MXN' => [
'MX$',
'মেক্সিকান পেসো',
],
'USD' => [
'$',
'মার্কিন ডলার',
],
'XCD' => [
'EC$',
'পূর্ব ক্যারিবিয়ান ডলার',
],
] | ়ান গুর্দ',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/bn_IN.php",
"language": "php",
"file_size": 1093,
"cut_index": 514,
"middle_length": 14
} |
buted with this source code.
*/
namespace Symfony\Component\Intl;
use Symfony\Component\Intl\Exception\MissingResourceException;
/**
* Gives access to language-related ICU data.
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Roland Franssen <franssen.roland@gmail.com>
*/
final class Languages ex... | * @return string[] an array of canonical ISO 639-1 language codes
*/
public static function getLanguageCodes(): array
{
return self::readEntry(['Languages'], 'meta');
}
public static function exists(string $language): bool
| guages that don't have a two-letter code, the ISO 639-2
* three-letter code is used instead.
*
* A full table of ISO 639 language codes can be found here:
* http://www-01.sil.org/iso639-3/codes.asp
*
| {
"filepath": "src/Symfony/Component/Intl/Languages.php",
"language": "php",
"file_size": 5622,
"cut_index": 716,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\Util;
/**
* Facilitates the comparison of ICU version strings.
*
* @author Bernhard Schussek <bs... | If no major version
* is given, it is substituted by zero.
*
* Examples:
*
* IcuVersion::compare('1.2.3', '1.2.4', '==')
* // => false
*
* IcuVersion::compare('1.2.3', '1.2.4', '==', 2)
* // => | can pass the number of regarded version components in the last argument
* $precision.
*
* Also, a single digit release version and a single digit major version
* are contracted to a two digit release version. | {
"filepath": "src/Symfony/Component/Intl/Util/IcuVersion.php",
"language": "php",
"file_size": 2853,
"cut_index": 563,
"middle_length": 229
} |
buted with this source code.
*/
namespace Symfony\Component\HtmlSanitizer\Visitor;
use Symfony\Component\HtmlSanitizer\HtmlSanitizerAction;
use Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig;
use Symfony\Component\HtmlSanitizer\TextSanitizer\StringSanitizer;
use Symfony\Component\HtmlSanitizer\Visitor\Attribute... | the parsed DOM tree to build the sanitized tree.
*
* The DomVisitor iterates over the parsed DOM tree, visits its nodes and build
* a sanitized tree with their attributes and content.
*
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @inte | er\Visitor\Node\DocumentNode;
use Symfony\Component\HtmlSanitizer\Visitor\Node\Node;
use Symfony\Component\HtmlSanitizer\Visitor\Node\NodeInterface;
use Symfony\Component\HtmlSanitizer\Visitor\Node\TextNode;
/**
* Iterates over | {
"filepath": "src/Symfony/Component/HtmlSanitizer/Visitor/DomVisitor.php",
"language": "php",
"file_size": 7660,
"cut_index": 716,
"middle_length": 229
} |
ge.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Intl\Util;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Intl\Exception\RuntimeExce... | $filesystem->remove($targetDir);
$filesystem->mkdir($targetDir);
self::exec(\sprintf('git clone %s %s', escapeshellarg($remote), escapeshellarg($targetDir)));
}
return new self(realpath($targetDir));
}
| oad(string $remote, string $targetDir): self
{
self::exec('which git', 'The command "git" is not installed.');
$filesystem = new Filesystem();
if (!$filesystem->exists($targetDir.'/.git')) {
| {
"filepath": "src/Symfony/Component/Intl/Util/GitRepository.php",
"language": "php",
"file_size": 2766,
"cut_index": 563,
"middle_length": 229
} |
тыльскі гульдэн',
],
'AOA' => [
'AOA',
'ангольская кванза',
],
'ARS' => [
'ARS',
'аргенцінскае песа',
],
'AUD' => [
'A$',
'аўстралійскі долар',
],
'AWG' => [
'AWG',
... | BGN',
'балгарскі леў',
],
'BHD' => [
'BHD',
'бахрэйнскі дынар',
],
'BIF' => [
'BIF',
'бурундзійскі франк',
],
'BMD' => [
'BMD',
| осніі і Герцагавіны',
],
'BBD' => [
'BBD',
'барбадаскі долар',
],
'BDT' => [
'BDT',
'бангладэшская така',
],
'BGN' => [
' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/be.php",
"language": "php",
"file_size": 15982,
"cut_index": 921,
"middle_length": 229
} |
'AON',
'Angolese nieuwe kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolese kwanza reajustado (1995–1999)',
],
'ARA' => [
'ARA',
'Argentynske austral',
],
'ARL' => [
'ARL',
'A... | 'AU$',
'Australyske dollar',
],
'AWG' => [
'AWG',
'Arubaanske gulden',
],
'AZM' => [
'AZM',
'Azerbeidzjaanske manat (1993–2006)',
],
'AZN' = | entynske peso (1983–1985)',
],
'ARS' => [
'ARS',
'Argentynske peso',
],
'ATS' => [
'ATS',
'Eastenrykse schilling',
],
'AUD' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/fy.php",
"language": "php",
"file_size": 24231,
"cut_index": 1331,
"middle_length": 229
} |
],
'AON' => [
'AON',
'アンゴラ 新クワンザ (1990–2000)',
],
'AOR' => [
'AOR',
'アンゴラ 旧クワンザ (1995–1999)',
],
'ARA' => [
'ARA',
'アルゼンチン アゥストラール',
],
'ARL' => [
'ARL',
'アルゼンチン・ペソ・レ... | 'AWG' => [
'AWG',
'アルバ フロリン',
],
'AZM' => [
'AZM',
'アゼルバイジャン マナト (1993–2006)',
],
'AZN' => [
'AZN',
'アゼルバイジャン マナト',
],
'BAD' => | ],
'ARS' => [
'ARS',
'アルゼンチン ペソ',
],
'ATS' => [
'ATS',
'オーストリア シリング',
],
'AUD' => [
'A$',
'オーストラリア ドル',
],
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ja.php",
"language": "php",
"file_size": 27369,
"cut_index": 1331,
"middle_length": 229
} |
ilder Antilla Walanda',
],
'AOA' => [
'AOA',
'Kwanza Angola',
],
'ARS' => [
'ARS',
'Peso Argentina',
],
'AUD' => [
'A$',
'Dolar Australia',
],
'AWG' => [
'AWG',
... | Lev Bulgaria',
],
'BHD' => [
'BHD',
'Bahrain Dinar',
],
'BIF' => [
'BIF',
'Franc Burundi',
],
'BMD' => [
'BMD',
'Dolar Bermuda',
| vina',
],
'BBD' => [
'BBD',
'Dolar Barbadian',
],
'BDT' => [
'BDT',
'Taka Bangladesh',
],
'BGN' => [
'BGN',
' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/jv.php",
"language": "php",
"file_size": 12860,
"cut_index": 921,
"middle_length": 229
} |
=> [
'AON',
'ანგოლური ახალი კვანზა (1990–2000)',
],
'AOR' => [
'AOR',
'ანგოლური მიტოლებული კვანზა (1995–1999)',
],
'ARA' => [
'ARA',
'არგენტინული აუსტრალი',
],
'ARP' => [
'ARP',
... | 'აზერბაიჯანული მანათი (1993–2006)',
],
'AZN' => [
'AZN',
'აზერბაიჯანული მანათი',
],
'BAD' => [
'BAD',
'ბოსნია-ჰერცოგოვინას დინარი',
],
'BAM' => [
| გი',
],
'AUD' => [
'AUD',
'ავსტრალიური დოლარი',
],
'AWG' => [
'AWG',
'არუბანული გულდენი',
],
'AZM' => [
'AZM',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ka.php",
"language": "php",
"file_size": 28442,
"cut_index": 1331,
"middle_length": 229
} |
Kiarabu',
],
'AOA' => [
'AOA',
'Kwanza ya Angola',
],
'AUD' => [
'A$',
'Dola ya Australia',
],
'BHD' => [
'BHD',
'Dinari ya Bahareni',
],
'BIF' => [
'BIF',
'Fa... | a China',
],
'CVE' => [
'CVE',
'Eskudo ya Kepuvede',
],
'DJF' => [
'DJF',
'Faranga ya Jibuti',
],
'DZD' => [
'DZD',
'Dinari ya Aljeria', | 'CDF' => [
'CDF',
'Faranga ya Kongo',
],
'CHF' => [
'CHF',
'Faranga ya Uswisi',
],
'CNY' => [
'CN¥',
'Yuan Renminbi y | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ki.php",
"language": "php",
"file_size": 4842,
"cut_index": 614,
"middle_length": 229
} |
'Нидерланд антиль гульдені',
],
'AOA' => [
'AOA',
'Ангола кванзасы',
],
'ARS' => [
'ARS',
'Аргентина песосы',
],
'AUD' => [
'A$',
'Аустралия доллары',
],
'AWG' => [
... | => [
'BGN',
'Болгария леві',
],
'BHD' => [
'BHD',
'Бахрейн динары',
],
'BIF' => [
'BIF',
'Бурунди франкі',
],
'BMD' => [
'BM | және Герцеговина айырбасталмалы маркасы',
],
'BBD' => [
'BBD',
'Барбадос доллары',
],
'BDT' => [
'BDT',
'Бангладеш такасы',
],
'BGN' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kk.php",
"language": "php",
"file_size": 15810,
"cut_index": 921,
"middle_length": 229
} |
'نيدەرلاند انتيل گۋلدەنى',
],
'AOA' => [
'AOA',
'انگولا كۆانزاسى',
],
'ARS' => [
'ARS',
'ارگەنتينا پەسوسى',
],
'AUD' => [
'A$',
'اۋستراليا دوللارى',
],
'AWG' => [
... | => [
'BGN',
'ڭولگاريا لەۆى',
],
'BHD' => [
'BHD',
'باحرەين دينارى',
],
'BIF' => [
'BIF',
'بۋرۋندي فرانكى',
],
'BMD' => [
'BM | انە گەرتسەگوۆينا ايىرباستالمالى ماركاسى',
],
'BBD' => [
'BBD',
'باربادوس دوللارى',
],
'BDT' => [
'BDT',
'بانگلادەش تاكاسى',
],
'BGN' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kk_Arab.php",
"language": "php",
"file_size": 15119,
"cut_index": 921,
"middle_length": 229
} |
'ហ្គីលឌ័រអាំងទីលហូឡង់',
],
'AOA' => [
'AOA',
'ក្វាន់ហ្សាអង់ហ្គោឡា',
],
'ARS' => [
'ARS',
'ប៉េសួអាហ្សង់ទីន',
],
'AUD' => [
'A$',
'ដុល្លារអូស្ត្រាលី',
],
'AWG' => [
'AWG... | 'លីវប៊ុលហ្គារី',
],
'BHD' => [
'BHD',
'ឌីណាបារ៉ែន',
],
'BIF' => [
'BIF',
'ហ្វ្រង់ប៊ូរុនឌី',
],
'BMD' => [
'BMD',
'ដុល្លារ | បម្លែងបានបូស្នី',
],
'BBD' => [
'BBD',
'ដុល្លារបាបាដុស',
],
'BDT' => [
'BDT',
'តាកាបង់ក្លាដែស',
],
'BGN' => [
'BGN',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/km.php",
"language": "php",
"file_size": 18447,
"cut_index": 921,
"middle_length": 229
} |
',
'ನೆದರ್ಲೆಂಡ್ಸ್ ಆಂಟಿಲಿಯನ್ ಗಿಲ್ಡರ್',
],
'AOA' => [
'AOA',
'ಅಂಗೋಲಾದ ಕ್ವಾನ್ಝಾ',
],
'ARS' => [
'ARS',
'ಅರ್ಜೆಂಟಿನಾ ಪೆಸೊ',
],
'AUD' => [
'A$',
'ಆಸ್ಟ್ರೇಲಿಯನ್ ಡಾಲರ್',
],
'AWG' =>... | 'BGN' => [
'BGN',
'ಬಲ್ಗೇರಿಯನ್ ಲೆವ್',
],
'BHD' => [
'BHD',
'ಬಹ್ರೈನಿ ದಿನಾರ್',
],
'BIF' => [
'BIF',
'ಬುರುಂದಿಯನ್ ಫ್ರಾಂಕ್',
],
'BMD' => [
| 'ಬೋಸ್ನಿಯಾ-ಹರ್ಜ್ಗೋವಿನ ಪರಿವರ್ತನೀಯ ಗುರುತು',
],
'BBD' => [
'BBD',
'ಬರ್ಬಾಡಿಯನ್ ಡಾಲರ್',
],
'BDT' => [
'BDT',
'ಬಾಂಗ್ಲಾದೇಶದ ಟಾಕಾ',
],
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/kn.php",
"language": "php",
"file_size": 18774,
"cut_index": 921,
"middle_length": 229
} |
'AOR',
'앙골라 재조정 콴자 (1995–1999)',
],
'ARA' => [
'ARA',
'아르헨티나 오스트랄',
],
'ARL' => [
'ARL',
'아르헨티나 페소 레이 (1970–1983)',
],
'ARM' => [
'ARM',
'아르헨티나 페소 (18810–1970)',
],
... | 젠 마나트(1993–2006)',
],
'AZN' => [
'AZN',
'아제르바이잔 마나트',
],
'BAD' => [
'BAD',
'보스니아-헤르체고비나 디나르',
],
'BAM' => [
'BAM',
'보스니아-헤르체고비나 태환 마르크', | '호주 실링',
],
'AUD' => [
'AU$',
'호주 달러',
],
'AWG' => [
'AWG',
'아루바 플로린',
],
'AZM' => [
'AZM',
'아제르바이 | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ko.php",
"language": "php",
"file_size": 24927,
"cut_index": 1331,
"middle_length": 229
} |
'أرجَنٹیٖن پِسو',
],
'ATS' => [
'ATS',
'آسٹریَن شِلِنگ',
],
'AUD' => [
'A$',
'آسٹریلِیَن ڈالَر',
],
'AWG' => [
'AWG',
'اَروبَن فِلورِن',
],
'AZN' => [
'AZN',
... | 'BEF',
'بَلجِیَن فرینک',
],
'BGN' => [
'BGN',
'بیلگیرِیَن ہاڑ لِو',
],
'BHD' => [
'BHD',
'بحریٖنی دیٖنار',
],
'BIF' => [
'BIF',
| ِگووِنا کَنوٲٹیبٕل مارٕک',
],
'BBD' => [
'BBD',
'بابیڑِیَن ڈالَر',
],
'BDT' => [
'BDT',
'بَنگلادیٖشی ٹَکا',
],
'BEF' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ks.php",
"language": "php",
"file_size": 23717,
"cut_index": 1331,
"middle_length": 229
} |
'AOK' => [
'AOK',
'kwanzayê angolayî (1977–1991)',
],
'AON' => [
'AON',
'kwanzayê nû ya angolayî (1990–2000)',
],
'AOR' => [
'AOR',
'kwanza reajustadoyê angolayî (1995–1999)',
],
'ARA' => [
... | 'ATS' => [
'ATS',
'şîllîngê awistiryayî',
],
'AUD' => [
'A$',
'dolarê awistralyayî',
],
'AWG' => [
'AWG',
'florînê arubayî',
],
' | 'pesoyê arjantînî (1881–1970)',
],
'ARP' => [
'ARP',
'pesoyê arjantînî (1983–1985)',
],
'ARS' => [
'ARS',
'pesoyê arjantînî',
],
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ku.php",
"language": "php",
"file_size": 26120,
"cut_index": 1331,
"middle_length": 229
} |
'нидерланд-антил гулдени',
],
'AOA' => [
'AOA',
'Ангола кванзасы',
],
'ARS' => [
'ARS',
'аргентина песосу',
],
'AUD' => [
'AUD',
'Австралия доллары',
],
'AWG' => [
... |
'BGN',
'болгар левиси',
],
'BHD' => [
'BHD',
'Бахрейн динары',
],
'BIF' => [
'BIF',
'Бурунди франкы',
],
'BMD' => [
'BMD',
| цоговина конвертациялануучу маркасы',
],
'BBD' => [
'BBD',
'барбадос доллары',
],
'BDT' => [
'BDT',
'Бангладеш такасы',
],
'BGN' => [ | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ky.php",
"language": "php",
"file_size": 15704,
"cut_index": 921,
"middle_length": 229
} |
'AON',
'Angolaneschen Neie Kwanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolanesche Kwanza Reajustado (1995–1999)',
],
'ARA' => [
'ARA',
'Argentineschen Austral',
],
'ARP' => [
'ARP',
'Ar... | 'Aserbaidschan-Manat (1993–2006)',
],
'AZN' => [
'AZN',
'Aserbaidschan-Manat',
],
'BAD' => [
'BAD',
'Bosnien an Herzegowina Dinar (1992–1994)',
],
'BAM' => | hilling',
],
'AUD' => [
'AU$',
'Australeschen Dollar',
],
'AWG' => [
'AWG',
'Aruba-Florin',
],
'AZM' => [
'AZM',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lb.php",
"language": "php",
"file_size": 22868,
"cut_index": 1331,
"middle_length": 229
} |
ti',
],
'AOA' => [
'AOA',
'Kwanza ey’Angola',
],
'AUD' => [
'A$',
'Doola ey’Awusiturelya',
],
'BHD' => [
'BHD',
'Dinaali ey’eBaareeni',
],
'BIF' => [
'BIF',
'Fa... | ni Reniminibi ey’eCayina',
],
'CVE' => [
'CVE',
'Esikudo ey’Keepu Veredi',
],
'DJF' => [
'DJF',
'Faranga ey’eJjibuti',
],
'DZD' => [
'DZD',
| ],
'CDF' => [
'CDF',
'Faranga ey’eKongo',
],
'CHF' => [
'CHF',
'Faranga ey’eSwitizirandi',
],
'CNY' => [
'CN¥',
'Yuwa | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lg.php",
"language": "php",
"file_size": 5167,
"cut_index": 614,
"middle_length": 229
} |
alabo',
],
'AOA' => [
'AOA',
'Kwanza ya Angóla',
],
'AUD' => [
'A$',
'Dolarɛ ya Ositali',
],
'BHD' => [
'BHD',
'Dinarɛ ya Bahrɛnɛ',
],
'BIF' => [
'BIF',
'Falán... | nɛ',
],
'CVE' => [
'CVE',
'Esikudo ya Kapevɛrɛ',
],
'DJF' => [
'DJF',
'Falánga ya Dzibuti',
],
'DZD' => [
'DZD',
'Dinarɛ ya Alizeri',
| 'CDF' => [
'FC',
'Falánga ya Kongó',
],
'CHF' => [
'CHF',
'Falánga ya Swisɛ',
],
'CNY' => [
'CN¥',
'Yuanɛ Renminbi ya Si | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/ln.php",
"language": "php",
"file_size": 4994,
"cut_index": 614,
"middle_length": 229
} |
'AON' => [
'AON',
'ກວານຊາ ແອງໂກລາ ໃໝ່ (1995–1999)',
],
'AOR' => [
'AOR',
'ກວານຊາກທີ່ແກ້ໄຂໃໝ່ ແອງກູລາ (1995–1999)',
],
'ARA' => [
'ARA',
'ອອສຕຣານ ອາກຊັງຕິນ',
],
'ARL' => [
'ARL',
... | 'A$',
'ອອສເຕຣລຽນ ໂດລ່າ',
],
'AWG' => [
'AWG',
'ອະຣູແບນ ຟລໍຣິນ',
],
'AZM' => [
'AZM',
'ມານັດ ອາແຊກບາຍຊານ (1993–2006)',
],
'AZN' => [
| ປໂຊ ອາກຊັງຕິນ (1983–1985)',
],
'ARS' => [
'ARS',
'ອາເຈນທິນາ ເປໂຊ',
],
'ATS' => [
'ATS',
'ຊິລລິງ ອົດສະຕາລີ',
],
'AUD' => [
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lo.php",
"language": "php",
"file_size": 32792,
"cut_index": 1331,
"middle_length": 229
} |
'AOK' => [
'AOK',
'Angolos kvanza (1977–1990)',
],
'AON' => [
'AON',
'Angolos naujoji kvanza (1990–2000)',
],
'AOR' => [
'AOR',
'Angolos patikslinta kvanza (1995–1999)',
],
'ARA' => [
'ARA... | 'ATS' => [
'ATS',
'Austrijos šilingas',
],
'AUD' => [
'AUD',
'Australijos doleris',
],
'AWG' => [
'AWG',
'Arubos guldenas',
],
'AZM' => | 'Argentinos pesai (1881–1970)',
],
'ARP' => [
'ARP',
'Argentinos pesas (1983–1985)',
],
'ARS' => [
'ARS',
'Argentinos pesas',
],
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lt.php",
"language": "php",
"file_size": 25219,
"cut_index": 1331,
"middle_length": 229
} |
alabu',
],
'AOA' => [
'AOA',
'Kwanza wa Angola',
],
'AUD' => [
'A$',
'Ndola wa Ositali',
],
'BHD' => [
'BHD',
'Ndina wa Bahrene',
],
'BIF' => [
'BIF',
'Nfalanga... | ne',
],
'CVE' => [
'CVE',
'Esikuludo wa Kapevere',
],
'DJF' => [
'DJF',
'Nfalanga wa Dzibuti',
],
'DZD' => [
'DZD',
'Ndina wa Alijeri',
| 'CDF' => [
'FC',
'Nfalanga wa Kongu',
],
'CHF' => [
'CHF',
'Nfalanga wa Swise',
],
'CNY' => [
'CN¥',
'Yuani Renminbi wa Shi | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lu.php",
"language": "php",
"file_size": 4913,
"cut_index": 614,
"middle_length": 229
} |
'Nīderlandes Antiļu guldenis',
],
'AOA' => [
'AOA',
'Angolas kvanza',
],
'ARS' => [
'ARS',
'Argentīnas peso',
],
'ATS' => [
'ATS',
'Austrijas šiliņš',
],
'AUD' => [
... | ],
'BBD' => [
'BBD',
'Barbadosas dolārs',
],
'BDT' => [
'BDT',
'Bangladešas taka',
],
'BEF' => [
'BEF',
'Beļģijas franks',
],
| rbaidžānas manats (1993–2006)',
],
'AZN' => [
'AZN',
'Azerbaidžānas manats',
],
'BAM' => [
'BAM',
'Bosnijas un Hercogovinas konvertējamā marka',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/lv.php",
"language": "php",
"file_size": 16765,
"cut_index": 921,
"middle_length": 229
} |
'SDD',
'SDG',
'SDP',
'SEK',
'SGD',
'SHP',
'SIT',
'SKK',
'SLE',
'SLL',
'SOS',
'SRD',
'SRG',
'SSP',
'STD',
'STN',
'SUR',
'SVC',
'SYP',
'SZL',
'THB',
... | 'VND',
'VNN',
'VUV',
'WST',
'XAF',
'XCD',
'XCG',
'XEU',
'XFO',
'XFU',
'XOF',
'XPF',
'XRE',
'YDD',
'YER',
'YUD',
'YUM',
| 'UAK',
'UGS',
'UGX',
'USD',
'USN',
'USS',
'UYI',
'UYP',
'UYU',
'UYW',
'UZS',
'VEB',
'VED',
'VEF',
'VES',
| {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/meta.php",
"language": "php",
"file_size": 89523,
"cut_index": 3790,
"middle_length": 229
} |
,
'AOA' => [
'AOA',
'kwanza angoley',
],
'AUD' => [
'A$',
'Dolara aostralianina',
],
'BHD' => [
'BHD',
'dinar bahreïni',
],
'BIF' => [
'BIF',
'Farantsa Borondi',
... | CVE' => [
'CVE',
'Escudo',
],
'DJF' => [
'DJF',
'Farantsa Djibotianina',
],
'DZD' => [
'DZD',
'Dinara alzerianina',
],
'EGP' => [
| 'CDF',
'Farantsa kôngôley',
],
'CHF' => [
'CHF',
'Farantsa soisa',
],
'CNY' => [
'CN¥',
'Yoan sinoa Renminbi',
],
' | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mg.php",
"language": "php",
"file_size": 4851,
"cut_index": 614,
"middle_length": 229
} |
tiri Hōrana',
],
'AOA' => [
'AOA',
'Kwanza Anakora',
],
'ARS' => [
'ARS',
'Peso Āketina',
],
'AUD' => [
'A$',
'Tāra Ahitereiria',
],
'AWG' => [
'AWG',
'Florin A... |
],
'BHD' => [
'BHD',
'Dinar Pāreina',
],
'BIF' => [
'BIF',
'Franc Puruniti',
],
'BMD' => [
'BMD',
'Tāra Pāmura',
],
'BN | ],
'BBD' => [
'BBD',
'Tāra Papatohe',
],
'BDT' => [
'BDT',
'Taka Pākaratēhi',
],
'BGN' => [
'BGN',
'Leva Purukāria', | {
"filepath": "src/Symfony/Component/Intl/Resources/data/currencies/mi.php",
"language": "php",
"file_size": 12739,
"cut_index": 921,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.