Update resource names
This commit is contained in:
parent
043b0f204c
commit
fab55afca5
|
|
@ -34,7 +34,10 @@ namespace Microsoft.Framework.WebEncoders
|
|||
private static uint[] CreateDefinedCharacterBitmap()
|
||||
{
|
||||
// The stream should be exactly 8KB in size.
|
||||
var stream = typeof(UnicodeHelpers).GetTypeInfo().Assembly.GetManifestResourceStream("compiler/resources/unicode-7.0.0-defined-characters.bin");
|
||||
var assembly = typeof(UnicodeHelpers).GetTypeInfo().Assembly;
|
||||
var resourceName = assembly.GetName().Name + ".compiler.resources.unicode-7.0.0-defined-characters.bin";
|
||||
|
||||
var stream = assembly.GetManifestResourceStream(resourceName);
|
||||
if (stream.Length != 8 * 1024)
|
||||
{
|
||||
Environment.FailFast("Corrupt data detected.");
|
||||
|
|
|
|||
|
|
@ -157,7 +157,10 @@ namespace Microsoft.Framework.WebEncoders
|
|||
HashSet<string> seenCategories = new HashSet<string>();
|
||||
|
||||
bool[] retVal = new bool[0x10000];
|
||||
string[] allLines = new StreamReader(typeof(UnicodeHelpersTests).GetTypeInfo().Assembly.GetManifestResourceStream("../../unicode/UnicodeData.txt")).ReadAllLines();
|
||||
|
||||
var assembly = typeof(UnicodeHelpersTests).GetTypeInfo().Assembly;
|
||||
var resourceName = assembly.GetName().Name + ".UnicodeData.txt";
|
||||
string[] allLines = new StreamReader(assembly.GetManifestResourceStream(resourceName)).ReadAllLines();
|
||||
|
||||
foreach (string line in allLines)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue