Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  SkSLModuleDataFile.cpp   Sprache: C

 

/*
 * Copyright 2024 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#include "src/sksl/SkSLModule.h"

#include "include/core/SkString.h"
#include "src/utils/SkGetExecutablePath.h"
#include "src/utils/SkOSPath.h"

#include <fstream>

namespace SkSL {

std::string GetModuleData(ModuleType /*name*/, const char* filename) {
    std::string exePath = SkGetExecutablePath();
    SkString exeDir = SkOSPath::Dirname(exePath.c_str());
    SkString modulePath = SkOSPath::Join(exeDir.c_str(), filename);
    std::ifstream in(std::string{modulePath.c_str()});
    std::string moduleSource{std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>()};
    if (in.rdstate()) {
        SK_ABORT("Error reading %s\n", modulePath.c_str());
    }
    return moduleSource;
}

}  // namespace SkSL

Messung V0.5 in Prozent
C=92 H=91 G=91

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Dauer der Verarbeitung:

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723