// Copyright 2021 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "src/base/strings.h"#include <cstdint>#include <cstring>#include <limits>#include "src/base/platform/platform.h"namespacev8{namespacebase{intVSNPrintF(Vector<char>str,constchar*format,va_listargs){returnOS::VSNPrintF(str.begin(),str.length(),format,args);}intSNPrintF(Vector<char>str,constchar*format,...){va_listargs;va_start(args,format);intresult=VSNPrintF(str,format,args);va_end(args);returnresult;}voidStrNCpy(base::Vector<char>dest,constchar*src,size_tn){base::OS::StrNCpy(dest.begin(),dest.length(),src,n);}}// namespace base}// namespace v8