String findScriptSourceMapURL(const String& content)
{
    return findMagicComment(content, scriptCommentPattern("sourceMappingURL"));
}
String findStylesheetSourceMapURL(const String& content)
{
    return findMagicComment(content, stylesheetCommentPattern("sourceMappingURL"));
}
String findSourceMapURL(const String& content, MagicCommentType commentType, bool* deprecated)
{
    return findMagicComment(content, "sourceMappingURL", commentType, deprecated);
}
Example #4
0
String findSourceMapURL(const String& content)
{
    return findMagicComment(content, "sourceMappingURL");
}
String16 findSourceMapURL(const String16& content, bool multiline, bool* deprecated)
{
    return findMagicComment(content, "sourceMappingURL", multiline, deprecated);
}
String findSourceMapURL(const String& content, MagicCommentType commentType)
{
    return findMagicComment(content, "sourceMappingURL", commentType);
}
String findStylesheetSourceMapURL(const String& content)
{
    // "/*# <name>=<value> */" and deprecated "/*@"
    return findMagicComment(content, "/\\*[#@][\040\t]sourceMappingURL=[\040\t]*([^\\s\'\"]*)[\040\t]*\\*/"_s);
}