!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/include/clang/Basic/   drwxr-xr-x
Free 6182.17 GB of 6263.37 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PlistSupport.h (3.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
//===- PlistSupport.h - Plist Output Utilities ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_BASIC_PLISTSUPPORT_H
#define LLVM_CLANG_BASIC_PLISTSUPPORT_H

#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstdint>

namespace clang {
namespace markup {

using FIDMap = llvm::DenseMap<FileID, unsigned>;

inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V,
                   FileID FID) {
  FIDMap::iterator I = FIDs.find(FID);
  if (I != FIDs.end())
    return I->second;
  unsigned NewValue = V.size();
  FIDs[FID] = NewValue;
  V.push_back(FID);
  return NewValue;
}

inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V,
                   const SourceManager &SM, SourceLocation L) {
  FileID FID = SM.getFileID(SM.getExpansionLoc(L));
  return AddFID(FIDs, V, FID);
}

inline unsigned GetFID(const FIDMap &FIDs, FileID FID) {
  FIDMap::const_iterator I = FIDs.find(FID);
  assert(I != FIDs.end());
  return I->second;
}

inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM,
                       SourceLocation L) {
  FileID FID = SM.getFileID(SM.getExpansionLoc(L));
  return GetFID(FIDs, FID);
}

inline raw_ostream &Indent(raw_ostream &o, const unsigned indent) {
  for (unsigned i = 0; i < indent; ++i)
    o << ' ';
  return o;
}

inline raw_ostream &EmitPlistHeader(raw_ostream &o) {
  static const char *PlistHeader =
      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
      "<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" "
      "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n"
      "<plist version=\"1.0\">\n"
;
  return 
<< PlistHeader;
}

inline raw_ostream &EmitInteger(raw_ostream &oint64_t value) {
  
<< "<integer>";
  
<< value;
  
<< "</integer>";
  return 
o;
}

inline raw_ostream &EmitString(raw_ostream &oStringRef s) {
  
<< "<string>";
  for (
char c s) {
    switch (
c) {
    default:
      
<< c;
      break;
    case 
'&':
      
<< "&amp;";
      break;
    case 
'<':
      
<< "&lt;";
      break;
    case 
'>':
      
<< "&gt;";
      break;
    case 
'\'':
      
<< "&apos;";
      break;
    case 
'\"':
      
<< "&quot;";
      break;
    }
  }
  
<< "</string>";
  return 
o;
}

inline void EmitLocation(raw_ostream &o, const SourceManager &SM,
                         
SourceLocation L, const FIDMap &FMunsigned indent) {
  if (
L.isInvalid()) return;

  
FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM));

  
Indent(oindent) << "<dict>\n";
  
Indent(oindent) << " <key>line</key>";
  
EmitInteger(oLoc.getExpansionLineNumber()) << '\n';
  
Indent(oindent) << " <key>col</key>";
  
EmitInteger(oLoc.getExpansionColumnNumber()) << '\n';
  
Indent(oindent) << " <key>file</key>";
  
EmitInteger(oGetFID(FMSMLoc)) << '\n';
  
Indent(oindent) << "</dict>\n";
}

inline void EmitRange(raw_ostream &o, const SourceManager &SM,
                      
CharSourceRange R, const FIDMap &FMunsigned indent) {
  if (
R.isInvalid()) return;

  
assert(R.isCharRange() && "cannot handle a token range");
  
Indent(oindent) << "<array>\n";
  
EmitLocation(oSMR.getBegin(), FMindent 1);

  
// The ".getLocWithOffset(-1)" emulates the behavior of an off-by-one bug
  // in Lexer that is already fixed. It is here for backwards compatibility
  // even though it is incorrect.
  
EmitLocation(oSMR.getEnd().getLocWithOffset(-1), FMindent 1);
  
Indent(oindent) << "</array>\n";
}

// namespace markup
// namespace clang

#endif // LLVM_CLANG_BASIC_PLISTSUPPORT_H

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0093 ]--